| 1 | <control:TPage |
| 2 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 3 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 4 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| 5 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| 6 | xmlns:local="clr-namespace:UI.Views" |
| 7 | xmlns:Charts="clr-namespace:UI.Controls.Charts" xmlns:Tabbar="clr-namespace:UI.Controls.Tabbar" xmlns:DatePickerBar="clr-namespace:UI.Controls.DatePickerBar" xmlns:select="clr-namespace:UI.Controls.Select" x:Class="UI.Views.DataPage" |
| 8 | xmlns:control="clr-namespace:UI.Controls" |
| 9 | mc:Ignorable="d" |
| 10 | d:DesignHeight="450" d:DesignWidth="800" |
| 11 | Title="IndexPage" Foreground="{DynamicResource StandardTextBrush}" IsFillPage="True"> |
| 12 | <Grid Margin="20"> |
| 13 | <Grid.RowDefinitions> |
| 14 | <RowDefinition Height="auto"/> |
| 15 | <RowDefinition Height="auto"/> |
| 16 | <RowDefinition Height="*"/> |
| 17 | |
| 18 | </Grid.RowDefinitions> |
| 19 | |
| 20 | <StackPanel Orientation="Horizontal" Margin="0,5,0,20" > |
| 21 | <TextBlock Text="详细" FontSize="18" VerticalAlignment="Center"/> |
| 22 | <select:Select Margin="10,0,0,0" VerticalAlignment="Top" Padding="10,5" IsShowIcon="False" SelectedItem="{Binding ShowType,Mode=TwoWay}" Options="{Binding ShowTypeOptions}"/> |
| 23 | </StackPanel> |
| 24 | <Tabbar:Tabbar Width="145" HorizontalAlignment="Left" Grid.Row="1" Data="{Binding TabbarData}" SelectedIndex="{Binding TabbarSelectedIndex,Mode=TwoWay}"/> |
| 25 | |
| 26 | |
| 27 | <TabControl |
| 28 | Grid.Row="2" |
| 29 | SelectedIndex="{Binding TabbarSelectedIndex}" |
| 30 | BorderThickness="0" |
| 31 | Margin="0,13,0,0" |
| 32 | Padding="0" |
| 33 | Background="Transparent" |
| 34 | > |
| 35 | <TabControl.Resources> |
| 36 | <Style TargetType="TabItem"> |
| 37 | <Setter Property="Template"> |
| 38 | <Setter.Value> |
| 39 | <ControlTemplate TargetType="TabItem"> |
| 40 | </ControlTemplate> |
| 41 | </Setter.Value> |
| 42 | </Setter> |
| 43 | </Style> |
| 44 | |
| 45 | </TabControl.Resources> |
| 46 | <TabItem> |
| 47 | <Grid> |
| 48 | <Grid.RowDefinitions> |
| 49 | <RowDefinition Height="auto"/> |
| 50 | <RowDefinition Height="*"/> |
| 51 | |
| 52 | </Grid.RowDefinitions> |
| 53 | <select:DateSelect Date="{Binding DayDate,Mode=TwoWay}"/> |
| 54 | |
| 55 | |
| 56 | <Charts:Charts IsShowBadge="True" IsSearch="True" Grid.Row="1" ItemMenu="{Binding AppContextMenu}" Data="{Binding Data}" ChartsType="List" Margin="0,20,0,0" ClickCommand="{Binding ToDetailCommand}"/> |
| 57 | </Grid> |
| 58 | </TabItem> |
| 59 | <TabItem> |
| 60 | <Grid> |
| 61 | <Grid.RowDefinitions> |
| 62 | <RowDefinition Height="auto"/> |
| 63 | <RowDefinition Height="*"/> |
| 64 | |
| 65 | </Grid.RowDefinitions> |
| 66 | |
| 67 | <select:DateSelect Date="{Binding MonthDate,Mode=TwoWay}" SelectType="Month"/> |
| 68 | <Charts:Charts IsShowBadge="True" IsSearch="True" Grid.Row="1" ItemMenu="{Binding AppContextMenu}" Data="{Binding MonthData}" ChartsType="List" Margin="0,20,0,0" ClickCommand="{Binding ToDetailCommand}"/> |
| 69 | </Grid> |
| 70 | </TabItem> |
| 71 | <TabItem> |
| 72 | <Grid> |
| 73 | <Grid.RowDefinitions> |
| 74 | <RowDefinition Height="auto"/> |
| 75 | <RowDefinition Height="*"/> |
| 76 | |
| 77 | </Grid.RowDefinitions> |
| 78 | |
| 79 | <select:DateSelect Date="{Binding YearDate,Mode=TwoWay}" SelectType="Year"/> |
| 80 | |
| 81 | <Charts:Charts IsShowBadge="True" IsSearch="True" Grid.Row="1" ItemMenu="{Binding AppContextMenu}" Data="{Binding YearData}" ChartsType="List" Margin="0,20,0,0" ClickCommand="{Binding ToDetailCommand}"/> |
| 82 | </Grid> |
| 83 | </TabItem> |
| 84 | </TabControl> |
| 85 | |
| 86 | |
| 87 | |
| 88 | </Grid> |
| 89 | </control:TPage> |