|
| 1 | +<hc:GlowWindow x:Class="HandyDoc.MainWindow" |
| 2 | + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 3 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 4 | + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| 5 | + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| 6 | + xmlns:hc="https://handyorg.github.io/handycontrol" |
| 7 | + xmlns:ui="http://schemas.modernwpf.com/2019" xmlns:controls="http://schemas.modernwpf.com/toolkit/controls" |
| 8 | + mc:Ignorable="d" Loaded="Window_Loaded" |
| 9 | + Title="HandyDoc v2.0" ActiveGlowColor="{DynamicResource PrimaryColor}" |
| 10 | + WindowStartupLocation="CenterScreen" |
| 11 | + ShowTitle="True" |
| 12 | + Height="450" |
| 13 | + Width="800"> |
| 14 | + <hc:GlowWindow.NonClientAreaContent> |
| 15 | + <Grid> |
| 16 | + <Grid.ColumnDefinitions> |
| 17 | + <ColumnDefinition/> |
| 18 | + <ColumnDefinition/> |
| 19 | + </Grid.ColumnDefinitions> |
| 20 | + <Button HorizontalAlignment="Right" Grid.Column="1" Click="ButtonConfig_OnClick" Name="ButtonConfig" Style="{StaticResource ButtonIcon}" Foreground="{DynamicResource PrimaryTextBrush}" hc:IconElement.Geometry="{StaticResource ConfigGeometry}"/> |
| 21 | + <Popup AllowsTransparency="True" Grid.Column="1" PlacementTarget="{Binding ElementName=ButtonConfig}" HorizontalOffset="-35" Name="PopupConfig" VerticalOffset="6" StaysOpen="False"> |
| 22 | + <Border Background="{DynamicResource SecondaryRegionBrush}" CornerRadius="4" Margin="16" Effect="{StaticResource EffectShadow2}"> |
| 23 | + <StackPanel Margin="10" Button.Click="ButtonSkins_OnClick" HorizontalAlignment="Center"> |
| 24 | + <Button Tag="{x:Static hc:ApplicationTheme.Light}" Style="{StaticResource ButtonCustom}"> |
| 25 | + <Border Background="White" Width="32" Height="21" CornerRadius="2" BorderThickness="1" BorderBrush="{DynamicResource BorderBrush}"/> |
| 26 | + </Button> |
| 27 | + <Button Margin="0,10" Tag="{x:Static hc:ApplicationTheme.Dark}" Style="{StaticResource ButtonCustom}"> |
| 28 | + <Border Background="Black" Width="32" Height="21" CornerRadius="2" BorderThickness="1" BorderBrush="{DynamicResource BorderBrush}"/> |
| 29 | + </Button> |
| 30 | + </StackPanel> |
| 31 | + </Border> |
| 32 | + </Popup> |
| 33 | + </Grid> |
| 34 | + </hc:GlowWindow.NonClientAreaContent> |
| 35 | + <hc:TransitioningContentControl TransitionMode="Fade"> |
| 36 | + <ui:NavigationViewNonVirtualizing Name="navView" SelectionChanged="navView_SelectionChanged" IsBackButtonVisible="Collapsed" IsSettingsVisible="False" PaneDisplayMode="Left" > |
| 37 | + <ui:NavigationViewNonVirtualizing.AutoSuggestBox> |
| 38 | + <ui:AutoSuggestBox x:Name="autoBox" QueryIcon="Find" QuerySubmitted="controlsSearchBox_QuerySubmitted" TextChanged="controlsSearchBox_TextChanged" PlaceholderText="Search..."/> |
| 39 | + </ui:NavigationViewNonVirtualizing.AutoSuggestBox> |
| 40 | + <Grid> |
| 41 | + <Grid.RowDefinitions> |
| 42 | + <RowDefinition Height="auto"/> |
| 43 | + <RowDefinition/> |
| 44 | + </Grid.RowDefinitions> |
| 45 | + <ComboBox Name="cmbLang" ui:ControlHelper.PlaceholderText="Default Language is English" SelectionChanged="ComboBox_SelectionChanged" Margin="10" MinWidth="200" Style="{StaticResource DefaultComboBoxStyle}"> |
| 46 | + <ComboBoxItem Content="English"/> |
| 47 | + <ComboBoxItem Content="Chinese"/> |
| 48 | + </ComboBox> |
| 49 | + <controls:MarkdownTextBlock Grid.Row="1" Name="mdText"/> |
| 50 | + </Grid> |
| 51 | + </ui:NavigationViewNonVirtualizing> |
| 52 | + </hc:TransitioningContentControl> |
| 53 | +</hc:GlowWindow> |
0 commit comments