프로젝트

일반

사용자정보

통계
| 브랜치(Branch): | 개정판:

markus / ConvertService / ServiceBase / Markus.Service.StationController / MainWindow.xaml @ 45f9a2ad

이력 | 보기 | 이력해설 | 다운로드 (4.6 KB)

1 53c9637d taeseongkim
<Window x:Class="Markus.Service.StationController.MainWindow"
2 ed79bff0 taeseongkim
        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:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
6 53c9637d taeseongkim
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
7 45f9a2ad taeseongkim
        xmlns:mvvmToolkit="clr-namespace:Markus.Mvvm.ToolKit;assembly=Markus.Mvvm.ToolKit"
8 53c9637d taeseongkim
        TextElement.Foreground="{DynamicResource MaterialDesignBody}"
9 ed79bff0 taeseongkim
        mc:Ignorable="d"
10 45f9a2ad taeseongkim
        xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
11 ed79bff0 taeseongkim
        xmlns:local="clr-namespace:Markus.Service.StationController.ViewModel"
12
        Title="Markus Convert Service" Height="450" Width="800" Foreground="{DynamicResource {x:Static SystemColors.MenuHighlightBrushKey}}">
13 45f9a2ad taeseongkim
    <i:Interaction.Triggers>
14
        <i:EventTrigger  EventName="Loaded">
15
            <i:InvokeCommandAction Command="{Binding LoadedCommand}"/>
16
        </i:EventTrigger>
17
        <i:EventTrigger  EventName="Closing">
18
            <i:InvokeCommandAction Command="{Binding ClosingCommand}"/>
19
        </i:EventTrigger>
20
    </i:Interaction.Triggers>
21 ed79bff0 taeseongkim
    <Window.DataContext>
22
        <local:MainViewModel/>
23
    </Window.DataContext>
24 45f9a2ad taeseongkim
    <materialDesign:DialogHost x:Name="m_dialogHost" Identifier="dialogHost" DialogTheme="Light">
25 ed79bff0 taeseongkim
            <materialDesign:DrawerHost IsLeftDrawerOpen="{Binding Path=IsNavigationDrawerOpen, ElementName=appBar}" LeftDrawerBackground="{DynamicResource MaterialDesignBackground}">
26 a537d79a taeseongkim
                <!--<materialDesign:DrawerHost.LeftDrawerContent>
27 ed79bff0 taeseongkim
                <materialEx:SideNavigation Items="{Binding NavigationItems,Mode=OneTime}" Width="280"/>
28 a537d79a taeseongkim
                </materialDesign:DrawerHost.LeftDrawerContent>-->
29 92442e4a taeseongkim
            <Grid>
30
                <Grid.ColumnDefinitions>
31
                    <ColumnDefinition Width="Auto"/>
32
                    <ColumnDefinition/>
33
                </Grid.ColumnDefinitions>
34 566f0526 taeseongkim
                <!--<Grid>
35 ed79bff0 taeseongkim
                    <Grid.ColumnDefinitions>
36 a537d79a taeseongkim
                        <ColumnDefinition Width="Auto" />
37 ed79bff0 taeseongkim
                        <ColumnDefinition Width="100*" />
38
                    </Grid.ColumnDefinitions>
39
                    <Grid.RowDefinitions>
40
                        <RowDefinition Height="Auto" />
41
                        <RowDefinition Height="*" />
42
                    </Grid.RowDefinitions>
43 92442e4a taeseongkim
                    <materialEx:AppBar x:Name="appBar" Grid.ColumnSpan="2" Title="MARKUS CONVERT SERVICE" ShowNavigationDrawerButton="True">
44 ed79bff0 taeseongkim
                        <Button Style="{StaticResource MaterialDesignToolForegroundButton}" Margin="8,0" ToolTip="Material Design Exentions on GitHub">
45
                        </Button>
46
                        <Button Style="{StaticResource MaterialDesignToolForegroundButton}" Margin="8,0" ToolTip="Documentation">
47
                        </Button>
48 92442e4a taeseongkim
                    </materialEx:AppBar>
49
                <Border BorderThickness="0,0,1,0" BorderBrush="{DynamicResource MaterialDesignDivider}">
50 566f0526 taeseongkim
                    <materialEx:SideNavigation SelectedItem="{Binding SelectNavigationItem,Mode=TwoWay}" Items="{Binding NavigationItems,Mode=OneTime}" DataContext="{Binding Mode=OneWay}"/>
51 92442e4a taeseongkim
                </Border>
52 566f0526 taeseongkim
            </Grid>-->
53 92442e4a taeseongkim
                <Grid Grid.Column="1">
54 a537d79a taeseongkim
                    <DataGrid  ItemsSource="{Binding AliveItems}" AutoGenerateColumns="False"
55 53c9637d taeseongkim
                  x:Name="DataGrid" ScrollViewer.CanContentScroll="False">
56 a537d79a taeseongkim
                        <DataGrid.Columns>
57
                            <materialDesign:MaterialDataGridTextColumn Header="Convert ID" Binding="{Binding ConvertID}"/>
58
                            <materialDesign:MaterialDataGridTextColumn Header="Project No" Binding="{Binding ProjectNumber}"/>
59
                            <materialDesign:MaterialDataGridTextColumn Header="Status" Binding="{Binding ConvertState}"/>
60
                            <materialDesign:MaterialDataGridTextColumn Header="Current Page" Binding="{Binding CurrentPageNo}"/>
61
                            <materialDesign:MaterialDataGridTextColumn Header="TotalPage" Binding="{Binding TotalPage}"/>
62
                            <materialDesign:MaterialDataGridTextColumn Header="Originfile" Binding="{Binding OriginfilePath}"/>
63
                            <materialDesign:MaterialDataGridTextColumn Header="Output Path" Binding="{Binding ConvertPath}"/>
64
                        </DataGrid.Columns>
65
                    </DataGrid>
66 ed79bff0 taeseongkim
                </Grid>
67
            </Grid>
68 92442e4a taeseongkim
        </materialDesign:DrawerHost>
69 ed79bff0 taeseongkim
        </materialDesign:DialogHost>
70 53c9637d taeseongkim
</Window>
클립보드 이미지 추가 (최대 크기: 500 MB)