main
1<UserControl x:Class="solidware.financials.windows.ui.views.TaxSummaryTab" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:Charting="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit" mc:Ignorable="d">
2 <DockPanel MinWidth="1024" MinHeight="768">
3 <Expander Header="Details" DockPanel.Dock="Left" IsExpanded="True">
4 <StackPanel Margin="5,5,5,5">
5 <GroupBox Header="Income" Margin="5,5,5,5">
6 <StackPanel>
7 <DockPanel>
8 <Label Width="100">Individual:</Label>
9 <Label Content="{Binding Path=Individual.Income.Value}" FontWeight="Bold"></Label>
10 </DockPanel>
11 <DockPanel>
12 <Label Width="100">Family:</Label>
13 <Label Content="{Binding Path=Family.Income.Value}" FontWeight="Bold" Foreground="Green"></Label>
14 </DockPanel>
15 </StackPanel>
16 </GroupBox>
17 <GroupBox Header="Federal Taxes" Margin="5,5,5,5">
18 <StackPanel>
19 <DockPanel>
20 <Label Width="100">Individual:</Label>
21 <Label Content="{Binding Path=Individual.FederalTaxes.Taxes.Value}" FontWeight="Bold" />
22 </DockPanel>
23 <DockPanel>
24 <Label Width="100">Family:</Label>
25 <Label Content="{Binding Path=Family.FederalTaxes.Value}" FontWeight="Bold" Foreground="Red" />
26 </DockPanel>
27 <StackPanel>
28 <Label FontSize="10" FontWeight="Bold">Tax Rates for 2011</Label>
29 <ListView FontSize="10">
30 <ListViewItem>
31 * 15% on the first $41,544 of taxable income, +
32 </ListViewItem>
33 <ListViewItem>
34 * 22% on the next $41,544 of taxable income (on the portion of taxable income between $41,544 and $83,088), +
35 </ListViewItem>
36 <ListViewItem>
37 * 26% on the next $45,712 of taxable income (on the portion of taxable income between $83,088 and $128,800), +
38 </ListViewItem>
39 <ListViewItem>
40 * 29% of taxable income over $128,800.
41 </ListViewItem>
42 </ListView>
43 </StackPanel>
44 </StackPanel>
45 </GroupBox>
46 <GroupBox Header="Provincial Taxes" Margin="5,5,5,5">
47 <StackPanel>
48 <DockPanel>
49 <Label Width="100">Individual:</Label>
50 <Label Content="{Binding Path=Individual.ProvincialTaxes.Taxes.Value}" FontWeight="Bold" />
51 </DockPanel>
52 <DockPanel>
53 <Label Width="100">Family:</Label>
54 <Label Content="{Binding Path=Family.ProvincialTaxes.Value}" FontWeight="Bold" Foreground="Red" />
55 </DockPanel>
56 <StackPanel>
57 <Label FontSize="10" FontWeight="Bold">Tax Rates for 2011</Label>
58 <ListView FontSize="10">
59 <ListViewItem> * 10% of taxable income </ListViewItem>
60 </ListView>
61 </StackPanel>
62 </StackPanel>
63 </GroupBox>
64 </StackPanel>
65 </Expander>
66 <Charting:Chart VerticalContentAlignment="Stretch" DockPanel.Dock="Bottom">
67 <Charting:PieSeries ItemsSource="{Binding Path=Family.Chart}" IndependentValueBinding="{Binding Path=Key}" DependentValueBinding="{Binding Path=Value}"></Charting:PieSeries>
68 </Charting:Chart>
69 </DockPanel>
70</UserControl>