| 1 | <Page |
| 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" x:Class="UI.Views.IndexPage" |
| 8 | xmlns:base="clr-namespace:UI.Controls.Base" xmlns:select="clr-namespace:UI.Controls.Select" |
| 9 | mc:Ignorable="d" |
| 10 | d:DesignHeight="450" d:DesignWidth="800" |
| 11 | Title="IndexPage" |
| 12 | Foreground="{DynamicResource StandardTextBrush}" Background="Transparent"> |
| 13 | <Page.ContextMenu> |
| 14 | <ContextMenu> |
| 15 | <MenuItem Header="刷新" Command="{Binding RefreshCommand}"/> |
| 16 | </ContextMenu> |
| 17 | </Page.ContextMenu> |
| 18 | <StackPanel Margin="20"> |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | <TextBlock Text="概览" FontSize="18" Margin="0,5,0,20"/> |
| 33 | <Tabbar:Tabbar Width="100" HorizontalAlignment="Left" Data="{Binding TabbarData}" SelectedIndex="{Binding TabbarSelectedIndex,Mode=TwoWay}"/> |
| 34 | <TextBlock Text="最为频繁" FontSize="14" Margin="0,10,0,10" Foreground="{DynamicResource SubTextBrush}"/> |
| 35 | <Grid> |
| 36 | <Grid.ColumnDefinitions> |
| 37 | <ColumnDefinition Width="6*"/> |
| 38 | <ColumnDefinition Width="10"/> |
| 39 | <ColumnDefinition Width="4*"/> |
| 40 | </Grid.ColumnDefinitions> |
| 41 | <Grid HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,10,10"> |
| 42 | <base:Icon IconType="OEM" FontSize="80" Opacity=".1"/> |
| 43 | </Grid> |
| 44 | <Grid Grid.Column="2" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,10,10"> |
| 45 | <base:Icon IconType="WebSearch" FontSize="80" Opacity=".05" Foreground="{DynamicResource ThemeBrush}"/> |
| 46 | </Grid> |
| 47 | |
| 48 | <Border CornerRadius="10" Padding="10"> |
| 49 | <Border.Background> |
| 50 | <SolidColorBrush Color="{DynamicResource SettingPanelBgColor}" Opacity=".7"/> |
| 51 | </Border.Background> |
| 52 | <StackPanel> |
| 53 | <Border HorizontalAlignment="Left" Padding="10,5" CornerRadius="6"> |
| 54 | <Border.Background> |
| 55 | <SolidColorBrush Color="{DynamicResource HoverBackgroundColor}" Opacity=".5"/> |
| 56 | </Border.Background> |
| 57 | <StackPanel Orientation="Horizontal" TextElement.Foreground="{DynamicResource SubTextBrush}"> |
| 58 | <base:Icon VerticalAlignment="Center" IconType="Apps"/> |
| 59 | <TextBlock FontSize="10" VerticalAlignment="Center" Text="应用" Margin="5,0,0,0"/> |
| 60 | </StackPanel> |
| 61 | </Border> |
| 62 | <Charts:Charts IconSize="20" Margin="0,5,0,0" IsCanScroll="False" Data="{Binding WeekData}" ChartsType="List" ShowLimit="{Binding FrequentUseNum}" IsLoading="{Binding IsLoading,Mode=TwoWay}" ClickCommand="{Binding ToDetailCommand}" ItemMenu="{Binding AppContextMenu}"/> |
| 63 | </StackPanel> |
| 64 | </Border> |
| 65 | |
| 66 | <Border Grid.Column="2" Padding="10" CornerRadius="10"> |
| 67 | <Border.Background> |
| 68 | <SolidColorBrush Color="{DynamicResource ThemeColor}" Opacity=".1"/> |
| 69 | </Border.Background> |
| 70 | <Grid> |
| 71 | <Grid.RowDefinitions> |
| 72 | <RowDefinition Height="auto"/> |
| 73 | <RowDefinition Height="*"/> |
| 74 | </Grid.RowDefinitions> |
| 75 | <Border HorizontalAlignment="Left" Padding="10,5" CornerRadius="6"> |
| 76 | <Border.Background> |
| 77 | <SolidColorBrush Color="{DynamicResource ThemeColor}" Opacity=".2"/> |
| 78 | </Border.Background> |
| 79 | <StackPanel Orientation="Horizontal" TextElement.Foreground="{DynamicResource ThemeBrush}"> |
| 80 | <base:Icon VerticalAlignment="Center" IconType="Website"/> |
| 81 | <TextBlock FontSize="10" VerticalAlignment="Center" Text="网站" Margin="5,0,0,0"/> |
| 82 | </StackPanel> |
| 83 | </Border> |
| 84 | |
| 85 | <Charts:Charts IconSize="18" Grid.Row="1" Margin="0,5,0,0" IsCanScroll="False" ClickCommand="{Binding ToDetailCommand}" Data="{Binding WebFrequentUseData}" ChartsType="List" IsLoading="{Binding IsLoading,Mode=TwoWay}" ItemMenu="{Binding WebSiteContextMenu}"> |
| 86 | <Charts:Charts.Resources> |
| 87 | <SolidColorBrush x:Key="ListItemIconBgBrush" Color="{StaticResource ThemeColor}" Opacity=".2"/> |
| 88 | <SolidColorBrush x:Key="ChartTypeListProgressBarBrush" Color="{StaticResource ThemeColor}" Opacity=".6"/> |
| 89 | </Charts:Charts.Resources> |
| 90 | </Charts:Charts> |
| 91 | </Grid> |
| 92 | </Border> |
| 93 | </Grid> |
| 94 | <StackPanel Orientation="Horizontal" Margin="0,20,0,0"> |
| 95 | <TextBlock Text="更多" FontSize="14" VerticalAlignment="Center" Foreground="{DynamicResource SubTextBrush}"/> |
| 96 | <select:Select Margin="10,0,0,0" VerticalAlignment="Center" Padding="10,5" IsShowIcon="False" SelectedItem="{Binding MoreType,Mode=TwoWay}" Options="{Binding MoreTypeOptions}"/> |
| 97 | </StackPanel> |
| 98 | |
| 99 | <TabControl |
| 100 | SelectedIndex="{Binding MoreType.Id}" |
| 101 | BorderThickness="0" |
| 102 | Margin="0,10,0,0" |
| 103 | Padding="0" |
| 104 | Background="Transparent" |
| 105 | > |
| 106 | <TabControl.Resources> |
| 107 | <Style TargetType="TabItem"> |
| 108 | <Setter Property="Template"> |
| 109 | <Setter.Value> |
| 110 | <ControlTemplate TargetType="TabItem"> |
| 111 | </ControlTemplate> |
| 112 | </Setter.Value> |
| 113 | </Setter> |
| 114 | </Style> |
| 115 | |
| 116 | </TabControl.Resources> |
| 117 | <TabItem> |
| 118 | <Charts:Charts Data="{Binding AppMoreData}" ItemMenu="{Binding AppContextMenu}" ChartsType="Card" ShowLimit="{Binding MoreNum}" IsLoading="{Binding IsLoading,Mode=TwoWay}" ClickCommand="{Binding ToDetailCommand}"/> |
| 119 | </TabItem> |
| 120 | <TabItem> |
| 121 | <Grid> |
| 122 | <Charts:Charts Data="{Binding WebMoreData}" ClickCommand="{Binding ToDetailCommand}" ChartsType="Card" ShowLimit="{Binding MoreNum}" IsLoading="{Binding IsLoading,Mode=TwoWay}" ItemMenu="{Binding WebSiteContextMenu}"/> |
| 123 | </Grid> |
| 124 | </TabItem> |
| 125 | </TabControl> |
| 126 | |
| 127 | |
| 128 | |
| 129 | </StackPanel> |
| 130 | </Page> |