Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <UserControl x:Class="SpendAnalyzer.PieChartPanel"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:app="clr-namespace:SpendAnalyzer"
- xmlns:toolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
- xmlns:datavis="clr-namespace:System.Windows.Controls.DataVisualization;assembly=System.Windows.Controls.DataVisualization.Toolkit"
- xmlns:chartingToolkit="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit"
- xmlns:System_Windows_Controls_DataVisualization_Charting_Primitives="clr-namespace:System.Windows.Controls.DataVisualization.Charting.Primitives;assembly=System.Windows.Controls.DataVisualization.Toolkit"
- xmlns:theming="clr-namespace:System.Windows.Controls.Theming;assembly=System.Windows.Controls.Theming.Toolkit"
- xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data"
- Width="Auto"
- Height="Auto">
- <UserControl.Resources>
- <app:USDollarAmountValueConverter x:Key="USDollarAmountValueConverter" />
- <app:AdditionalIconVisibilityConverter x:Key="AdditionalIconVisibilityConverter" />
- <SolidColorBrush Color="#FF576166" x:Key="GrayColor" />
- <app:BudgetDiffExpenseConverter x:Key="BudgetDiffExpenseConverter" />
- <app:BudgetDiffExpenseColorConverter x:Key="BudgetDiffExpenseColorConverter" />
- <app:AmountValueConverter x:Key="AmountValueConverter" />
- <app:BudgetValueConverter x:Key="BudgetValueConverter"></app:BudgetValueConverter>
- <app:VarianceValueConverter x:Key="VarianceValueConverter"></app:VarianceValueConverter>
- <app:NonZeroBudgetDiffExpenseConverter x:Key="NonZeroBudgetDiffExpenseConverter"></app:NonZeroBudgetDiffExpenseConverter>
- <!-- LegendItemStyle1 -->
- <Style x:Key="LegendItemStyle1" TargetType="chartingToolkit:LegendItem">
- <Setter Property="IsTabStop" Value="False" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="chartingToolkit:LegendItem">
- <Grid Margin="0, 6">
- <Line Stroke="Gray"
- StrokeDashArray="1.0, 2.0"
- X1="500"
- Stretch="None"
- StrokeThickness="1"
- VerticalAlignment="Bottom" />
- <toolkit:DockPanel>
- <StackPanel Orientation="Horizontal" Background="White">
- <Rectangle Width="10"
- Height="10"
- Fill="{Binding DataContext.Background}"
- Margin="0, 0, 6, 0"/>
- <Image Source="/Resources/additional.png"
- Stretch="none"
- VerticalAlignment="Center"
- Margin="-2, 0, 2, 0"
- Visibility="{Binding DataContext.Text, Converter={StaticResource AdditionalIconVisibilityConverter}}"/>
- <HyperlinkButton Foreground="#FF3283B6"
- FontSize="12"
- VerticalAlignment="Bottom"
- Content="{TemplateBinding Content}">
- </HyperlinkButton>
- </StackPanel>
- <Border Background="White"
- VerticalAlignment="Bottom"
- HorizontalAlignment="Right" >
- <TextBlock FontSize="12" Text="$ 12,123" />
- </Border>
- </toolkit:DockPanel>
- </Grid>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <ControlTemplate x:Key="GrowPieDataPoint" TargetType="chartingToolkit:PieDataPoint">
- <Path Data="{TemplateBinding Geometry}"
- Fill="{TemplateBinding Background}"
- Stroke="{TemplateBinding BorderBrush}"
- StrokeThickness="0"
- MouseEnter="Path_MouseEnter"
- MouseLeave="Path_MouseLeave"
- MouseLeftButtonUp="Path_MouseLeftButtonUp"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement