개정판 b92f142f
convert service 수정
Controller 수정
Change-Id: I38994fcc4d4452d638ea74b27cc8638f4157e17a
ConvertService/ServiceBase/Markus.Service.StationController/MainWindow.xaml | ||
---|---|---|
7 | 7 |
mc:Ignorable="d" d:DataContext="{d:DesignInstance vm:MainViewModel, IsDesignTimeCreatable=true}" |
8 | 8 |
xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" |
9 | 9 |
xmlns:vm="clr-namespace:Markus.Service.StationController.ViewModel" |
10 |
xmlns:packIcon="clr-namespace:Markus.Mvvm.ToolKit.PackIcon;assembly=Markus.Mvvm.ToolKit"
|
|
10 |
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
|
11 | 11 |
xmlns:localData="clr-namespace:Markus.Service.StationController.Data" |
12 | 12 |
Title="Markus Convert Service" Height="450" Width="800" d:DesignHeight="450" d:DesignWidth="800"> |
13 | 13 |
<Window.Background> |
... | ... | |
24 | 24 |
<Window.DataContext> |
25 | 25 |
<vm:MainViewModel/> |
26 | 26 |
</Window.DataContext> |
27 |
<Grid> |
|
28 |
<Grid> |
|
29 |
<Grid.RowDefinitions> |
|
30 |
<RowDefinition Height="Auto"/> |
|
31 |
<RowDefinition/> |
|
32 |
</Grid.RowDefinitions> |
|
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> |
|
33 | 50 |
<Grid> |
34 |
<Grid.ColumnDefinitions> |
|
35 |
<ColumnDefinition Width="Auto"/> |
|
36 |
<ColumnDefinition Width="Auto"/> |
|
37 |
<ColumnDefinition/> |
|
38 |
</Grid.ColumnDefinitions> |
|
39 |
<telerik:RadToggleButton IsThreeState="False" Width="50"> |
|
40 |
<telerik:RadToggleButton.Content> |
|
41 |
<packIcon:PackIcon Kind="Bike"/> |
|
42 |
</telerik:RadToggleButton.Content> |
|
43 |
<telerik:RadToggleButton.Style> |
|
44 |
<Style TargetType="telerik:RadToggleButton"> |
|
45 |
<Setter Property="telerik:StyleManager.Theme" Value="{x:Null}"/> |
|
46 |
<Setter Property="Background" Value="Transparent"/> |
|
47 |
<Setter Property="BorderThickness" Value="0"/> |
|
48 |
<Style.Triggers> |
|
49 |
<DataTrigger Binding="{Binding IsChecked}" Value="false"> |
|
50 |
<Setter Property="Content" Value="Menu"/> |
|
51 |
</DataTrigger> |
|
52 |
<DataTrigger Binding="{Binding IsChecked}" Value="true"> |
|
53 |
<Setter Property="Content" Value="close"/> |
|
54 |
</DataTrigger> |
|
55 |
</Style.Triggers> |
|
56 |
</Style> |
|
57 |
</telerik:RadToggleButton.Style> |
|
58 |
</telerik:RadToggleButton> |
|
59 |
<TextBlock Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="10,0,0,0" Style="{StaticResource TitleTextBoxStyle}" >Markus Convert Management</TextBlock> |
|
60 |
<TextBlock Grid.Column="2" VerticalAlignment="Center" HorizontalAlignment="Center" |
|
61 |
Text="{Binding SelectNavigationItem.Description}"/> |
|
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="Auto" /> |
|
75 |
<RowDefinition Height="*" /> |
|
76 |
</Grid.RowDefinitions> |
|
77 |
<ScrollViewer Grid.Row="1" |
|
78 |
HorizontalScrollBarVisibility="Auto" |
|
79 |
VerticalScrollBarVisibility="Auto"> |
|
80 |
<ContentControl Content="{Binding SelectNavigationItem.Content}"/> |
|
81 |
</ScrollViewer> |
|
82 |
</Grid> |
|
62 | 83 |
</Grid> |
63 |
<ContentControl Grid.Row="1" Content="{Binding SelectNavigationItem.Content}"/> |
|
64 |
<Grid/> |
|
65 |
</Grid> |
|
66 |
<Grid Background="#807A7A7A"> |
|
67 |
<Grid.ColumnDefinitions> |
|
68 |
<ColumnDefinition Width="Auto"/> |
|
69 |
<ColumnDefinition Width="*"/> |
|
70 |
</Grid.ColumnDefinitions> |
|
71 |
<telerik:RadListBox/> |
|
72 |
</Grid> |
|
73 |
</Grid> |
|
84 |
</materialDesign:DrawerHost> |
|
85 |
</materialDesign:DialogHost> |
|
74 | 86 |
</Window> |
75 | 87 |
|
내보내기 Unified diff