mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 03:48:56 +00:00
64 lines
3.2 KiB
XML
64 lines
3.2 KiB
XML
<metro:MetroWindow x:Class="Artemis.UI.MainWindow"
|
|
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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:local="clr-namespace:Artemis.UI"
|
|
xmlns:metro="http://metro.mahapps.com/winfx/xaml/controls"
|
|
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
|
xmlns:views="clr-namespace:Artemis.UI.Views"
|
|
mc:Ignorable="d"
|
|
GlowBrush="{DynamicResource AccentColorBrush}"
|
|
FontFamily="{StaticResource DefaultFont}"
|
|
Title="" d:DesignHeight="589.868">
|
|
|
|
<materialDesign:DialogHost Identifier="RootDialog">
|
|
<materialDesign:DrawerHost IsLeftDrawerOpen="{Binding ElementName=MenuToggleButton, Path=IsChecked}">
|
|
<materialDesign:DrawerHost.LeftDrawerContent>
|
|
<DockPanel MinWidth="212">
|
|
<ToggleButton Style="{StaticResource MaterialDesignHamburgerToggleButton}"
|
|
DockPanel.Dock="Top"
|
|
HorizontalAlignment="Right" Margin="16"
|
|
IsChecked="{Binding ElementName=MenuToggleButton, Path=IsChecked, Mode=TwoWay}" />
|
|
<ListBox x:Name="DemoItemsListBox" Margin="0 16 0 16" SelectedIndex="0">
|
|
<ListBox.ItemTemplate>
|
|
<DataTemplate>
|
|
<TextBlock Text="{Binding Name}" Margin="32 0 32 0" />
|
|
</DataTemplate>
|
|
</ListBox.ItemTemplate>
|
|
</ListBox>
|
|
</DockPanel>
|
|
</materialDesign:DrawerHost.LeftDrawerContent>
|
|
<DockPanel>
|
|
<materialDesign:ColorZone Padding="16" materialDesign:ShadowAssist.ShadowDepth="Depth2"
|
|
Mode="PrimaryMid" DockPanel.Dock="Top">
|
|
<DockPanel>
|
|
<ToggleButton Style="{StaticResource MaterialDesignHamburgerToggleButton}" IsChecked="False"
|
|
x:Name="MenuToggleButton"/>
|
|
<materialDesign:PopupBox DockPanel.Dock="Right" PlacementMode="BottomAndAlignRightEdges" StaysOpen="False">
|
|
<StackPanel>
|
|
<Button Content="Hello World" />
|
|
<Button Content="Nice Popup" />
|
|
<Button Content="Can't Touch This" IsEnabled="False" />
|
|
<Separator/>
|
|
<Button Content="Goodbye" />
|
|
</StackPanel>
|
|
</materialDesign:PopupBox>
|
|
<TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="22" Text="Artemis"/>
|
|
</DockPanel>
|
|
</materialDesign:ColorZone>
|
|
|
|
<views:MainView></views:MainView>
|
|
|
|
</DockPanel>
|
|
</materialDesign:DrawerHost>
|
|
</materialDesign:DialogHost>
|
|
</metro:MetroWindow>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|