markus / ConvertService / ServiceBase / Markus.Service.StationController / MainWindow.xaml @ 67df8dcd
이력 | 보기 | 이력해설 | 다운로드 (5.18 KB)
1 |
<Window x:Class="Markus.Service.StationController.MainWindow" |
---|---|
2 |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
3 |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
4 |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
5 |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
6 |
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" |
7 |
mc:Ignorable="d" d:DataContext="{d:DesignInstance vm:MainViewModel, IsDesignTimeCreatable=true}" |
8 |
xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" |
9 |
xmlns:vm="clr-namespace:Markus.Service.StationController.ViewModel" |
10 |
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes" |
11 |
xmlns:localData="clr-namespace:Markus.Service.StationController.Data" |
12 |
Title="Markus Convert Service" Height="450" Width="800" d:DesignHeight="450" d:DesignWidth="800"> |
13 |
<Window.Background>
|
14 |
<ImageBrush/> |
15 |
</Window.Background>
|
16 |
<i:Interaction.Triggers>
|
17 |
<i:EventTrigger EventName="Loaded"> |
18 |
<i:InvokeCommandAction Command="{Binding LoadedCommand}"/> |
19 |
</i:EventTrigger>
|
20 |
<i:EventTrigger EventName="Closing"> |
21 |
<i:InvokeCommandAction Command="{Binding ClosingCommand}"/> |
22 |
</i:EventTrigger>
|
23 |
</i:Interaction.Triggers>
|
24 |
<Window.DataContext>
|
25 |
<vm:MainViewModel/> |
26 |
</Window.DataContext>
|
27 |
<materialDesign:DialogHost x:Name="m_dialogHost" Identifier="dialogHost"> |
28 |
<materialDesign:DrawerHost IsLeftDrawerOpen="{Binding ElementName=MenuToggleButton, Path=IsChecked}"> |
29 |
<materialDesign:DrawerHost.LeftDrawerContent>
|
30 |
<DockPanel MinWidth="212"> |
31 |
<ToggleButton Style="{StaticResource MaterialDesignHamburgerToggleButton}" |
32 |
DockPanel.Dock="Top" |
33 |
HorizontalAlignment="Right" Margin="16" |
34 |
IsChecked="{Binding ElementName=MenuToggleButton, Path=IsChecked, Mode=TwoWay}" /> |
35 |
<ListBox x:Name="MenuListBox" Margin="0 16 0 16" SelectedIndex="0" |
36 |
ItemsSource="{Binding NavigationItems}" SelectedItem="{Binding SelectNavigationItem}"> |
37 |
<i:Interaction.Triggers>
|
38 |
<i:EventTrigger EventName="PreviewMouseLeftButtonUp"> |
39 |
<i:InvokeCommandAction Command="{Binding ListboxItemMouseUpCommand}"/> |
40 |
</i:EventTrigger>
|
41 |
</i:Interaction.Triggers>
|
42 |
<ListBox.ItemTemplate>
|
43 |
<DataTemplate DataType="localData:NavigationItem"> |
44 |
<TextBlock Text="{Binding Name}" Margin="32 0 32 0" /> |
45 |
</DataTemplate>
|
46 |
</ListBox.ItemTemplate>
|
47 |
</ListBox>
|
48 |
</DockPanel>
|
49 |
</materialDesign:DrawerHost.LeftDrawerContent>
|
50 |
<Grid>
|
51 |
<Grid.RowDefinitions>
|
52 |
<RowDefinition Height="Auto"/> |
53 |
<RowDefinition/> |
54 |
</Grid.RowDefinitions>
|
55 |
<materialDesign:ColorZone Padding="16" materialDesign:ShadowAssist.ShadowDepth="Depth2" |
56 |
Mode="PrimaryMid"> |
57 |
<DockPanel>
|
58 |
<ToggleButton Style="{StaticResource MaterialDesignHamburgerToggleButton}" IsChecked="{Binding IsMenuOpen}" |
59 |
x:Name="MenuToggleButton"/> |
60 |
<Grid>
|
61 |
<Grid.ColumnDefinitions>
|
62 |
<ColumnDefinition Width="Auto"/> |
63 |
<ColumnDefinition/> |
64 |
</Grid.ColumnDefinitions>
|
65 |
<TextBlock Style="{StaticResource MaterialDesignSubheadingTextBlock}" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="10,0,0,0" >Markus Convert Management</TextBlock> |
66 |
<TextBlock Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Center" |
67 |
Text="{Binding SelectNavigationItem.Description}" |
68 |
Style="{StaticResource MaterialDesignDisplay1TextBlock}"/> |
69 |
</Grid>
|
70 |
</DockPanel>
|
71 |
</materialDesign:ColorZone>
|
72 |
<!--<Grid Grid.Row="1">
|
73 |
<Grid.RowDefinitions>
|
74 |
<RowDefinition Height="*" />
|
75 |
</Grid.RowDefinitions>-->
|
76 |
<!--<ScrollViewer Grid.Row="1" Width="{Binding ActualWidth, Mode=OneWay, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}"
|
77 |
HorizontalScrollBarVisibility="Auto"
|
78 |
VerticalScrollBarVisibility="Auto">-->
|
79 |
<ContentControl Grid.Row="1" Content="{Binding SelectNavigationItem.Content}"/> |
80 |
<!--</ScrollViewer>-->
|
81 |
<!--</Grid>-->
|
82 |
</Grid>
|
83 |
</materialDesign:DrawerHost>
|
84 |
</materialDesign:DialogHost>
|
85 |
</Window>
|
86 |
|