213 lines
8.6 KiB
XML
213 lines
8.6 KiB
XML
<Page
|
|
x:Class="WPFluent.Gallery.Views.Pages.DashboardPage"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:local="clr-namespace:WPFluent.Gallery.Views.Pages"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:ui="https://github.com/ShrlAlgo/WPFluent"
|
|
Title="Dashboard Page"
|
|
Margin="0,32,0,0"
|
|
d:DataContext="{d:DesignInstance local:DashboardPage,
|
|
IsDesignTimeCreatable=False}"
|
|
ui:Design.Background="{DynamicResource ApplicationBackgroundBrush}"
|
|
ui:Design.Foreground="{DynamicResource TextFillColorPrimaryBrush}"
|
|
Foreground="{DynamicResource TextFillColorPrimaryBrush}"
|
|
mc:Ignorable="d">
|
|
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<Border
|
|
Grid.Row="0"
|
|
Height="200"
|
|
CornerRadius="8">
|
|
<Border.Background>
|
|
<ImageBrush
|
|
ImageSource="pack://application:,,,/WPFluent.Gallery;component/wpfui.png"
|
|
RenderOptions.BitmapScalingMode="HighQuality"
|
|
Stretch="UniformToFill" />
|
|
</Border.Background>
|
|
<Border CornerRadius="8">
|
|
<Border.Background>
|
|
<RadialGradientBrush>
|
|
<GradientStop Offset="0" Color="#1F000000" />
|
|
<GradientStop Offset="1" Color="#4F000000" />
|
|
</RadialGradientBrush>
|
|
</Border.Background>
|
|
<Grid>
|
|
<StackPanel
|
|
Margin="48,0"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Background="Transparent">
|
|
<ui:TextBlock
|
|
FontTypography="Title"
|
|
Text="Fluent UI" />
|
|
<ui:TextBlock
|
|
FontTypography="Subtitle"
|
|
Text="Windows Presentation Foundation" />
|
|
<ui:TextBlock
|
|
FontTypography="BodyStrong"
|
|
Text="Build Fluent experiences on Windows using WPF UI." />
|
|
</StackPanel>
|
|
<ui:TextBlock
|
|
Margin="12"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Bottom"
|
|
FontTypography="Caption"
|
|
Text="Created by shrlalgo" />
|
|
</Grid>
|
|
</Border>
|
|
</Border>
|
|
|
|
<!--<controls:GalleryNavigationPresenter
|
|
Grid.Row="1"
|
|
Margin="0,24,0,0"
|
|
Padding="0"
|
|
ItemsSource="{Binding ViewModel.NavigationCards, Mode=OneWay}" />-->
|
|
|
|
<Grid Grid.Row="1" Margin="0,24,0,0">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<ui:CardAction
|
|
Grid.Row="0"
|
|
Grid.Column="0"
|
|
Margin="0,0,4,0"
|
|
Padding="0"
|
|
VerticalAlignment="Stretch"
|
|
Command="{Binding ViewModel.CardClickCommand, Mode=OneWay}"
|
|
CommandParameter="BasicInput"
|
|
IsChevronVisible="False">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Image
|
|
Width="60"
|
|
Margin="24,0,0,0"
|
|
Source="pack://application:,,,/WPFluent.Gallery;component/Assets/WinUiGallery/Button.png" />
|
|
|
|
<StackPanel
|
|
Grid.Column="1"
|
|
Margin="24"
|
|
VerticalAlignment="Center">
|
|
<ui:TextBlock
|
|
Margin="0"
|
|
FontTypography="BodyStrong"
|
|
Text="Basic input"
|
|
TextWrapping="WrapWithOverflow" />
|
|
<ui:TextBlock
|
|
Appearance="Secondary"
|
|
Foreground="{DynamicResource TextFillColorSecondaryBrush}"
|
|
Text="Buttons, CheckBoxes, Sliders..."
|
|
TextWrapping="WrapWithOverflow" />
|
|
</StackPanel>
|
|
</Grid>
|
|
</ui:CardAction>
|
|
|
|
<ui:CardAction
|
|
Grid.Row="0"
|
|
Grid.Column="1"
|
|
Margin="4,0,4,0"
|
|
Padding="0"
|
|
VerticalAlignment="Stretch"
|
|
Command="{Binding ViewModel.CardClickCommand, Mode=OneWay}"
|
|
CommandParameter="DialogsAndFlyouts"
|
|
IsChevronVisible="False">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Image
|
|
Width="60"
|
|
Margin="24,0,0,0"
|
|
Source="pack://application:,,,/WPFluent.Gallery;component/Assets/WinUiGallery/Flyout.png" />
|
|
|
|
<StackPanel
|
|
Grid.Column="1"
|
|
Margin="24"
|
|
VerticalAlignment="Center">
|
|
<ui:TextBlock
|
|
Margin="0"
|
|
FontTypography="BodyStrong"
|
|
Text="Dialogs & Flyouts"
|
|
TextWrapping="WrapWithOverflow" />
|
|
<ui:TextBlock
|
|
Appearance="Secondary"
|
|
Foreground="{DynamicResource TextFillColorSecondaryBrush}"
|
|
Text="Contextual notifications."
|
|
TextWrapping="WrapWithOverflow" />
|
|
</StackPanel>
|
|
</Grid>
|
|
</ui:CardAction>
|
|
|
|
<ui:CardAction
|
|
Grid.Row="0"
|
|
Grid.Column="2"
|
|
Margin="4,0,4,0"
|
|
Padding="0"
|
|
VerticalAlignment="Stretch"
|
|
Command="{Binding ViewModel.CardClickCommand, Mode=OneWay}"
|
|
CommandParameter="Navigation"
|
|
IsChevronVisible="False">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Image
|
|
Width="60"
|
|
Margin="24,0,0,0"
|
|
Source="pack://application:,,,/WPFluent.Gallery;component/Assets/WinUiGallery/MenuBar.png" />
|
|
|
|
<StackPanel
|
|
Grid.Column="1"
|
|
Margin="24"
|
|
VerticalAlignment="Center">
|
|
<ui:TextBlock
|
|
Margin="0"
|
|
FontTypography="BodyStrong"
|
|
Text="Navigation"
|
|
TextWrapping="WrapWithOverflow" />
|
|
<ui:TextBlock
|
|
Appearance="Secondary"
|
|
Foreground="{DynamicResource TextFillColorSecondaryBrush}"
|
|
Text="Managing the displayed pages."
|
|
TextWrapping="WrapWithOverflow" />
|
|
</StackPanel>
|
|
</Grid>
|
|
</ui:CardAction>
|
|
</Grid>
|
|
|
|
<StackPanel Grid.Row="2" Margin="0,24,0,0">
|
|
<TextBlock
|
|
FontSize="18"
|
|
FontWeight="DemiBold"
|
|
Text="Learn more" />
|
|
<ui:HyperlinkButton
|
|
Margin="8,0,0,0"
|
|
Padding="4"
|
|
Content="GitHub"
|
|
NavigateUri="https://github.com/shrlalgo"
|
|
ToolTip="https://github.com/shrlalgo" />
|
|
</StackPanel>
|
|
</Grid>
|
|
</Page>
|