csharpc-sharpdotnetxamlavaloniauicross-platformcross-platform-xamlavaloniaguimulti-platformuser-interfacedotnetcore
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
2.3 KiB
62 lines
2.3 KiB
<UserControl xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:viewModels="using:ControlCatalog.ViewModels"
|
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
|
x:Class="ControlCatalog.Pages.WindowCustomizationsPage"
|
|
x:DataType="viewModels:MainWindowViewModel"
|
|
x:CompileBindings="True">
|
|
<StackPanel>
|
|
|
|
<StackPanel
|
|
Spacing="10"
|
|
Margin="25"
|
|
IsEnabled="{OnFormFactor false, Desktop=true}">
|
|
|
|
<TextBlock Classes="h2"
|
|
Text="Desktop properties"
|
|
Margin="4" />
|
|
|
|
<CheckBox Content="Extend Client Area to Decorations"
|
|
IsChecked="{Binding ExtendClientAreaEnabled}" />
|
|
|
|
<DockPanel IsEnabled="{Binding ExtendClientAreaEnabled}">
|
|
|
|
<CheckBox Content="Title Bar"
|
|
IsChecked="{Binding SystemTitleBarEnabled}"
|
|
DockPanel.Dock="Left" />
|
|
|
|
<Slider Minimum="-1"
|
|
Maximum="200"
|
|
Value="{Binding TitleBarHeight}"
|
|
IsEnabled="{Binding SystemTitleBarEnabled}"
|
|
Margin="8,-10" />
|
|
|
|
</DockPanel>
|
|
|
|
<CheckBox Content="Prefer System Chrome"
|
|
IsChecked="{Binding PreferSystemChromeEnabled}"
|
|
IsEnabled="{Binding ExtendClientAreaEnabled}" />
|
|
|
|
<CheckBox Content="Can Resize"
|
|
IsChecked="{Binding CanResize}" />
|
|
|
|
<CheckBox Content="Can Minimize"
|
|
IsChecked="{Binding CanMinimize}" />
|
|
|
|
<CheckBox Content="Can Maximize"
|
|
IsChecked="{Binding CanMaximize}"
|
|
IsEnabled="{Binding CanResize}" />
|
|
|
|
</StackPanel>
|
|
|
|
<StackPanel Spacing="10" Margin="25" IsEnabled="{OnFormFactor false, Mobile=true}">
|
|
<TextBlock Classes="h2" Text="Mobile properties" Margin="4" />
|
|
<CheckBox Content="Is System Bar Visible" IsChecked="{Binding IsSystemBarVisible}" />
|
|
<CheckBox Content="Display Edge To Edge" IsChecked="{Binding DisplayEdgeToEdge}" />
|
|
<TextBlock Text="{Binding SafeAreaPadding, StringFormat='Safe Area Padding: {0}'}" />
|
|
</StackPanel>
|
|
|
|
</StackPanel>
|
|
</UserControl>
|
|
|