Visual improvements
This commit is contained in:
@@ -42,7 +42,7 @@ namespace DebtMgr.Converters
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (doubleValue < 0.001 && doubleValue > -0.001)
|
if (doubleValue < 0.001 && doubleValue > -0.001)
|
||||||
return new SolidColorBrush(Colors.Green);
|
return new SolidColorBrush(Colors.Black);
|
||||||
|
|
||||||
if (doubleValue > 0)
|
if (doubleValue > 0)
|
||||||
return new SolidColorBrush(Colors.Green);
|
return new SolidColorBrush(Colors.Green);
|
||||||
|
|||||||
@@ -34,6 +34,10 @@ namespace DebtMgr.Helper
|
|||||||
96, // These decides the dpi factors
|
96, // These decides the dpi factors
|
||||||
96,// The can be changed when we'll have preview options.
|
96,// The can be changed when we'll have preview options.
|
||||||
PixelFormats.Pbgra32);
|
PixelFormats.Pbgra32);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
bitmap.Render(uiElement);
|
bitmap.Render(uiElement);
|
||||||
|
|
||||||
SaveUsingBitmapTargetRenderer(fileName, bitmap, encoder);
|
SaveUsingBitmapTargetRenderer(fileName, bitmap, encoder);
|
||||||
|
|||||||
@@ -104,7 +104,7 @@
|
|||||||
<Separator Style="{StaticResource {x:Static ToolBar.SeparatorStyleKey}}" />
|
<Separator Style="{StaticResource {x:Static ToolBar.SeparatorStyleKey}}" />
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
<Grid Grid.Column="2">
|
<Grid Grid.Column="2" Name="RightPanel">
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="Auto"></RowDefinition>
|
<RowDefinition Height="Auto"></RowDefinition>
|
||||||
<RowDefinition Height="Auto"></RowDefinition>
|
<RowDefinition Height="Auto"></RowDefinition>
|
||||||
|
|||||||
@@ -108,9 +108,9 @@ namespace DebtMgr.View
|
|||||||
|
|
||||||
private void PrintContextMenu_OnClick(object sender, RoutedEventArgs e)
|
private void PrintContextMenu_OnClick(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
//var targetElement = TransactionHistoryListView;
|
var targetElement = RightPanel;
|
||||||
|
|
||||||
//PrintHelper.SaveUsingEncoder("test.png", targetElement);
|
PrintHelper.SaveUsingEncoder("test.png", targetElement);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -517,7 +517,7 @@ namespace DebtMgr.ViewModel
|
|||||||
// Remember selection
|
// Remember selection
|
||||||
var rememberSelection = PersonListViewSelectedItem?.Id;
|
var rememberSelection = PersonListViewSelectedItem?.Id;
|
||||||
|
|
||||||
var personList = App.Database.GetAllWithChildren<Person>();
|
var personList = App.Database.GetAllWithChildren<Person>().OrderBy(x => x.FirstName).ThenBy(x => x.LastName).ToList();
|
||||||
PersonListViewItemSource = personList;
|
PersonListViewItemSource = personList;
|
||||||
|
|
||||||
var overallBalance = personList.Sum(x => x.Total);
|
var overallBalance = personList.Sum(x => x.Total);
|
||||||
|
|||||||
Reference in New Issue
Block a user