mainpage.xaml
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
xmlns:commons="clr-namespace:System.Windows;assembly=System.Windows.Controls"
xmlns:toolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows"
xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data"
mc:Ignorable="d"
x:Class="SpendAnalyzer.MainPage"
xmlns:theming="clr-namespace:System.Windows.Controls.Theming;assembly=System.Windows.Controls.Theming.Toolkit"
FontFamily="Arial"
theming:ImplicitStyleManager.ApplyMode="Auto">
TargetType="ToggleButton">
Storyboard.TargetName="BackgroundGradient"
Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
Storyboard.TargetName="BackgroundGradient"
Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
Storyboard.TargetName="BackgroundGradient"
Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Color)">
Storyboard.TargetName="BackgroundGradient"
Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[3].(GradientStop.Color)">
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}">
Background="#FF448DCA" />
Margin="{TemplateBinding Padding}"
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
Content="{TemplateBinding Content}"
ContentTemplate="{TemplateBinding ContentTemplate}" />
RadiusX="3"
RadiusY="3"
IsHitTestVisible="false"
Opacity="0" />
StrokeThickness="1"
RadiusX="2"
RadiusY="2"
Margin="1"
IsHitTestVisible="false"
Opacity="0" />
FontSize="18"
FontWeight="Bold" />
Style="{StaticResource ResetButtonStyle}"
IsEnabled="False"
Click="ResetBtn_Click">
Style="{StaticResource PeriodButtonStyle}"
Margin="-1, 0, 0, 0"
Checked="Button1Mo_Checked">
Margin="-1, 0, 0, 0"
Checked="Button3Mo_Checked">
Margin="-1, 0, 0, 0"
Checked="Button6Mo_Checked">
Margin="-1, 0, 0, 0"
Checked="Button12Mo_Checked">
Margin="-1, 0, 0, 0"
Checked="Button24Mo_Checked">
Margin="-1, 0, 0, 0"
Checked="ButtonYearToDate_Checked">
VerticalAlignment="Center"
Margin="5, 0">
Text="{Binding DateTimeRange, Converter={StaticResource PeriodValueConverter}}"
Margin="0, 0, 5, 0"
VerticalAlignment="Center" />
Padding="4"
VerticalAlignment="Center"
Click="ViewPrevBtn_Click">
Fill="{StaticResource GrayColor}" />
Padding="4"
VerticalAlignment="Center"
Click="ViewNextBtn_Click">
Fill="{StaticResource GrayColor}" />
Background="#FFDEE3E5" />
StrokeThickness="1" />
Stroke="{StaticResource GrayDarkColor}"
VerticalAlignment="Bottom" />
FontWeight="Normal"
HorizontalAlignment="Center"/>
Style="{StaticResource PanelLineStyle}"
Grid.Row="1" />
FontWeight="Normal"
HorizontalAlignment="Right" VerticalAlignment="Top" Grid.Row="2"
/>
Style="{StaticResource PanelLineStyle}"
Grid.Row="4" />
Margin="20, 0"
Style="{StaticResource PanelLineStyle}" />
Content="-"
FontSize="17"
Padding="0"
FontWeight="Bold"
Width="18"
Height="18"
Click="ShowTransactionsBtn_Click">
Style="{StaticResource PanelTextBlockStyle}" />
Style="{StaticResource PanelTextBlockStyle}" />
Padding="20, 13">
IsReadOnly="True"
Height="400"
HeadersVisibility="All"
LoadingRow="TransactionsDataGrid_LoadingRow">
VerticalAlignment="Center"
Margin="5, 0" />
VerticalAlignment="Center"
Margin="0,0,5, 0" />
>
Content="-"
FontSize="17"
Padding="0"
FontWeight="Bold"
Width="18"
Height="18"
Click="ShowHistory_Click">
Style="{StaticResource PanelTextBlockStyle}" />
Padding="20, 13" x:Name="brdSpendHistory">
x:Name="SpendingHistoryStatisticsPanel"
VerticalAlignment="Bottom"
FontSize="12"
HorizontalAlignment="Stretch">
Stretch="None"
Margin="0, 4, 0, 0"
StrokeDashArray="4.0,2.0"
Stroke="Green"
StrokeThickness="2.0" />
Grid.Row="1"
Margin="0,3,0,0"
Orientation="Horizontal">
Stretch="None"
Margin="5, 0, 0, 0"
StrokeDashArray="1.0,2.0"
Stroke="#FFB552B4"
StrokeThickness="2" />
Grid.Row="2"
Grid.ColumnSpan="4"
Style="{StaticResource PanelLineStyle}" />
Margin="0,3,0,0" />
Margin="0,3,0,0" />
Margin="0,3,0,0" />
Margin="0,3,0,0" />
Text="$"
Grid.Column="2"
Grid.Row="1"
Margin="0,3,0,0" />
Grid.Row="3"
Margin="0,3,0,0" />
Grid.Row="4"
Margin="0,3,0,0" />
Grid.Row="5"
Margin="0,3,0,0" />
Grid.Column="3"
Margin="0,3,0,0" />
HorizontalAlignment="Right"
Text="{Binding AvgPurchaseAmount, Converter={StaticResource MyCurrencyConverter}}"
Grid.Column="3"
Grid.Row="1"
Margin="0,3,0,0" />
Grid.Column="3"
Grid.Row="3"
Margin="0,3,0,0" />
Grid.Column="3"
Grid.Row="4"
Margin="0,3,0,0" />
Grid.Column="3"
Grid.Row="5"
Margin="0,3,0,0" />
Grid.RowSpan="2"
d:IsHidden="True">
HorizontalAlignment="Center">
Foreground="White"
FontSize="15"
VerticalAlignment="Center" />
