프로젝트

일반

사용자정보

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

markus / ConvertService / ServiceBase / Markus.Service.StationController / Views / ConvertAddDialog.xaml @ aaed7be2

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

1 43b2e236 semi
<telerik:RadWindow x:Class="Markus.Service.StationController.Views.ConvertAddDialog"
2
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
5 95e7bd84 semi
        xmlns:VM="clr-namespace:Markus.Service.StationController.ViewModel"          
6 2c634aed semi
        Header="Convert Items Insert" Height="300" Width="500" telerik:StyleManager.Theme="VisualStudio2013" >
7 43b2e236 semi
    <telerik:RadWindow.DataContext>
8
        <VM:ConvertAddDialogViewModel/>
9
    </telerik:RadWindow.DataContext>
10 85f68fef semi
    <Grid Height="130" Width="480">
11 43b2e236 semi
        <Grid.Resources>
12
            <ResourceDictionary>
13
                <Style x:Key="InfoStyle" TargetType="{x:Type TextBox}">
14
                    <Setter Property="Margin" Value="5,5,0,0"/>
15
                    <Setter Property="VerticalAlignment" Value="Center"/>
16
                    <Setter Property="Foreground" Value="Black"/>
17
                    <Setter Property="Background" Value="Transparent"/>
18
                    <Setter Property="BorderBrush" Value="Transparent"/>
19
                    <Setter Property="BorderThickness" Value="0"/>
20
                    <Setter Property="IsReadOnly" Value="true"/>
21
                    <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
22
                    <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst"/>
23
                    <Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
24
                    <Setter Property="Template">
25
                        <Setter.Value>
26
                            <ControlTemplate TargetType="{x:Type TextBox}">
27 95e7bd84 semi
                                <Border x:Name="Bd" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="true">
28 43b2e236 semi
                                    <ScrollViewer x:Name="PART_ContentHost" BorderThickness="{TemplateBinding BorderThickness}"
29 95e7bd84 semi
                                                  SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
30 43b2e236 semi
                                </Border>
31
                            </ControlTemplate>
32
                        </Setter.Value>
33
                    </Setter>
34
                </Style>
35
36
                <Style TargetType="TextBlock">
37
                    <Setter Property="FontFamily" Value="Segoe UI Semibold" />
38
                    <Setter Property="VerticalAlignment" Value="Center" />
39
                    <Setter Property="Foreground" Value="#FF7A7A7A" />
40
                </Style>
41
42
                <Style TargetType="TextBox">
43
                    <Setter Property="FontFamily" Value="Segoe UI Semibold" />
44
                    <Setter Property="VerticalAlignment" Value="Center" />
45
                    <Setter Property="Foreground" Value="#FF333333" />
46
                    <Setter Property="BorderBrush" Value="#FFD6D4D4" />
47
                </Style>
48
            </ResourceDictionary>
49
        </Grid.Resources>
50
51
        <Grid x:Name="LayoutRoot" Background="White">
52 2c634aed semi
            <Grid.ColumnDefinitions>
53
                <ColumnDefinition Width="128*"/>
54
                <ColumnDefinition Width="353*"/>
55
            </Grid.ColumnDefinitions>
56 43b2e236 semi
            <Grid.RowDefinitions>
57
                <RowDefinition />
58
                <RowDefinition Height="Auto" />
59
                <RowDefinition Height="Auto" />
60 ad3c4ac3 semi
61 43b2e236 semi
            </Grid.RowDefinitions>
62
63 2c634aed semi
            <Grid Grid.Row="0" Margin="10" Grid.ColumnSpan="2">
64 43b2e236 semi
                <Grid.ColumnDefinitions>
65
                    <ColumnDefinition Width="90" />
66
                    <ColumnDefinition Width="10" />
67 85f68fef semi
                    <ColumnDefinition Width="*"/>
68
                    <ColumnDefinition Width="10" />
69
                    <ColumnDefinition Width="90" />
70
                    <ColumnDefinition Width="10" />
71
                    <ColumnDefinition Width="1.5*"/>
72 43b2e236 semi
                </Grid.ColumnDefinitions>
73
                <Grid.RowDefinitions>
74 ad3c4ac3 semi
                    <RowDefinition Height="12"/>
75 95e7bd84 semi
                    <RowDefinition />
76 ad3c4ac3 semi
                    <RowDefinition Height="12"/>
77 95e7bd84 semi
                    <RowDefinition />
78 43b2e236 semi
                </Grid.RowDefinitions>
79 ad3c4ac3 semi
                <TextBlock Grid.Row="1" Text="Project NO" />
80
                <TextBlock Grid.Row="1" Grid.Column="4" Text="DOCUMENT ID" />
81
                <TextBlock Grid.Row="3" Grid.Column="0" Text="Document URL" />
82
83 aaed7be2 semi
                <telerik:RadComboBox Grid.Row="1" Grid.Column="2" HorizontalAlignment="Stretch"
84
                                         DisplayMemberPath="Project_NOAndProject_Name"
85
                                         ItemsSource="{Binding ProjectNames}" 
86
                                         SelectedItem="{Binding ProjectNumberFilter}"
87
                                         AllowMultipleSelection="False"
88
                                         BorderBrush="{Binding Project_NO_Border}"
89
                                         EmptyText="Project_NO : Project_Name" />
90 ad3c4ac3 semi
                <TextBox Text="{Binding ConverAdd_DOCUMENT_ID, Mode=TwoWay,  UpdateSourceTrigger=PropertyChanged}" Grid.Row="1" Grid.Column="6" BorderBrush="{Binding DOCUMENT_ID_Border}"/>
91
                <TextBox Text="{Binding ConverAdd_DOCUMENT_URL,  Mode=TwoWay,  UpdateSourceTrigger=PropertyChanged }" Grid.Row="3" Grid.Column="2" Grid.ColumnSpan="5" BorderBrush="{Binding DOCUMENT_URL_Border}" />
92
93
                <DockPanel Grid.Column="2" Grid.Row="0">
94
                    <StackPanel Orientation="Horizontal" DockPanel.Dock="Top">
95
                        <Grid Width="12" Height="12">
96
                            <Ellipse Width="12" Height="12" Fill="{Binding Project_NO_Color}" HorizontalAlignment="Center" VerticalAlignment="Center" ></Ellipse>
97
                            <TextBlock Foreground="White" FontWeight="Heavy" FontSize="8" HorizontalAlignment="Center" VerticalAlignment="Center" TextAlignment="Center"  
98
                                           ToolTip="{Binding ElementName=ErrorAdorner, Path=AdornedElement.(Validation.Errors)[0].ErrorContent}" >!</TextBlock>
99
                        </Grid>
100
                        <TextBlock  HorizontalAlignment="Left" VerticalAlignment="Top" Text="ProjectNO empty" FontSize="9" Foreground="{Binding Project_NO_Color}" />
101
                    </StackPanel>
102
                </DockPanel>
103
                <DockPanel Grid.Column="6" Grid.Row="0">
104
                    <StackPanel Orientation="Horizontal" DockPanel.Dock="Top">
105
                        <Grid Width="12" Height="12">
106
                            <Ellipse Width="12" Height="12" HorizontalAlignment="Center" VerticalAlignment="Center"
107
                                     Fill="{Binding DOCUMENT_ID_Color}"/>
108
                            <TextBlock Foreground="White" FontWeight="Heavy" FontSize="8" HorizontalAlignment="Center" VerticalAlignment="Center" TextAlignment="Center"  
109
                                           ToolTip="{Binding ElementName=ErrorAdorner, Path=AdornedElement.(Validation.Errors)[0].ErrorContent}" >!</TextBlock>
110
                        </Grid>
111
                        <TextBlock  HorizontalAlignment="Left" VerticalAlignment="Top" Text="DOCUMENT ID empty" FontSize="9" Foreground="{Binding DOCUMENT_ID_Color}" />
112
                    </StackPanel>
113
                </DockPanel>
114 aaed7be2 semi
115 ad3c4ac3 semi
                <DockPanel Grid.Column="2" Grid.Row="2" Grid.ColumnSpan="5" >
116
                    <StackPanel Orientation="Horizontal" DockPanel.Dock="Top">
117
                        <Grid Width="12" Height="12">
118
                            <Ellipse Width="12" Height="12" Fill="{Binding DOCUMENT_URL_Color}" HorizontalAlignment="Center" VerticalAlignment="Center" />
119
                            <TextBlock Foreground="White" FontWeight="Heavy" FontSize="8" HorizontalAlignment="Center" VerticalAlignment="Center" TextAlignment="Center"  
120
                                           ToolTip="{Binding ElementName=ErrorAdorner, Path=AdornedElement.(Validation.Errors)[0].ErrorContent}"  >!</TextBlock>
121
                        </Grid>
122
                        <TextBlock  HorizontalAlignment="Left" VerticalAlignment="Top" Text="DOCUMENT URL empty" FontSize="9" Foreground="{Binding DOCUMENT_URL_Color}" />
123
                    </StackPanel>
124
                </DockPanel>
125 2c634aed semi
126 43b2e236 semi
            </Grid>
127 ad3c4ac3 semi
128 2c634aed semi
            <StackPanel Orientation="Horizontal" Grid.Row="1" HorizontalAlignment="Right" Margin="0 0 0 10" Grid.Column="1">
129 43b2e236 semi
130
                <telerik:RadButton Content=" SEND" MinWidth="50" Margin="8 0" VerticalAlignment="Center"
131
                                                           Command="{Binding ConverAdd_OKCommand , Mode=TwoWay}" />
132
133 8c128693 semi
                <telerik:RadButton Content="CANCEL" MinWidth="80" Margin="0 0 10 0" VerticalAlignment="Center" IsCancel="True" Name="Close" />
134 43b2e236 semi
            </StackPanel>
135
136
        </Grid>
137
    </Grid>
138
</telerik:RadWindow>
클립보드 이미지 추가 (최대 크기: 500 MB)