프로젝트

일반

사용자정보

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

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

이력 | 보기 | 이력해설 | 다운로드 (4.6 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:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
6
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
7
        xmlns:mvvmToolkit="clr-namespace:Markus.Mvvm.ToolKit;assembly=Markus.Mvvm.ToolKit"
8
        TextElement.Foreground="{DynamicResource MaterialDesignBody}"
9
        mc:Ignorable="d"
10
        xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
11
        xmlns:local="clr-namespace:Markus.Service.StationController.ViewModel"
12
        Title="Markus Convert Service" Height="450" Width="800" Foreground="{DynamicResource {x:Static SystemColors.MenuHighlightBrushKey}}">
13
    <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
    <Window.DataContext>
22
        <local:MainViewModel/>
23
    </Window.DataContext>
24
    <materialDesign:DialogHost x:Name="m_dialogHost" Identifier="dialogHost" DialogTheme="Light">
25
            <materialDesign:DrawerHost IsLeftDrawerOpen="{Binding Path=IsNavigationDrawerOpen, ElementName=appBar}" LeftDrawerBackground="{DynamicResource MaterialDesignBackground}">
26
                <!--<materialDesign:DrawerHost.LeftDrawerContent>
27
                <materialEx:SideNavigation Items="{Binding NavigationItems,Mode=OneTime}" Width="280"/>
28
                </materialDesign:DrawerHost.LeftDrawerContent>-->
29
            <Grid>
30
                <Grid.ColumnDefinitions>
31
                    <ColumnDefinition Width="Auto"/>
32
                    <ColumnDefinition/>
33
                </Grid.ColumnDefinitions>
34
                <!--<Grid>
35
                    <Grid.ColumnDefinitions>
36
                        <ColumnDefinition Width="Auto" />
37
                        <ColumnDefinition Width="100*" />
38
                    </Grid.ColumnDefinitions>
39
                    <Grid.RowDefinitions>
40
                        <RowDefinition Height="Auto" />
41
                        <RowDefinition Height="*" />
42
                    </Grid.RowDefinitions>
43
                    <materialEx:AppBar x:Name="appBar" Grid.ColumnSpan="2" Title="MARKUS CONVERT SERVICE" ShowNavigationDrawerButton="True">
44
                        <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
                    </materialEx:AppBar>
49
                <Border BorderThickness="0,0,1,0" BorderBrush="{DynamicResource MaterialDesignDivider}">
50
                    <materialEx:SideNavigation SelectedItem="{Binding SelectNavigationItem,Mode=TwoWay}" Items="{Binding NavigationItems,Mode=OneTime}" DataContext="{Binding Mode=OneWay}"/>
51
                </Border>
52
            </Grid>-->
53
                <Grid Grid.Column="1">
54
                    <DataGrid  ItemsSource="{Binding AliveItems}" AutoGenerateColumns="False"
55
                  x:Name="DataGrid" ScrollViewer.CanContentScroll="False">
56
                        <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
                </Grid>
67
            </Grid>
68
        </materialDesign:DrawerHost>
69
        </materialDesign:DialogHost>
70
</Window>
클립보드 이미지 추가 (최대 크기: 500 MB)