markus / ConvertService / ServiceBase / Markus.Service.StationController / Views / ConvertAddDialog.xaml @ aaed7be2
이력 | 보기 | 이력해설 | 다운로드 (8.56 KB)
1 |
<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 |
xmlns:VM="clr-namespace:Markus.Service.StationController.ViewModel" |
6 |
Header="Convert Items Insert" Height="300" Width="500" telerik:StyleManager.Theme="VisualStudio2013" > |
7 |
<telerik:RadWindow.DataContext>
|
8 |
<VM:ConvertAddDialogViewModel/> |
9 |
</telerik:RadWindow.DataContext>
|
10 |
<Grid Height="130" Width="480"> |
11 |
<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 |
<Border x:Name="Bd" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="true"> |
28 |
<ScrollViewer x:Name="PART_ContentHost" BorderThickness="{TemplateBinding BorderThickness}" |
29 |
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/> |
30 |
</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 |
<Grid.ColumnDefinitions>
|
53 |
<ColumnDefinition Width="128*"/> |
54 |
<ColumnDefinition Width="353*"/> |
55 |
</Grid.ColumnDefinitions>
|
56 |
<Grid.RowDefinitions>
|
57 |
<RowDefinition /> |
58 |
<RowDefinition Height="Auto" /> |
59 |
<RowDefinition Height="Auto" /> |
60 |
|
61 |
</Grid.RowDefinitions>
|
62 |
|
63 |
<Grid Grid.Row="0" Margin="10" Grid.ColumnSpan="2"> |
64 |
<Grid.ColumnDefinitions>
|
65 |
<ColumnDefinition Width="90" /> |
66 |
<ColumnDefinition Width="10" /> |
67 |
<ColumnDefinition Width="*"/> |
68 |
<ColumnDefinition Width="10" /> |
69 |
<ColumnDefinition Width="90" /> |
70 |
<ColumnDefinition Width="10" /> |
71 |
<ColumnDefinition Width="1.5*"/> |
72 |
</Grid.ColumnDefinitions>
|
73 |
<Grid.RowDefinitions>
|
74 |
<RowDefinition Height="12"/> |
75 |
<RowDefinition /> |
76 |
<RowDefinition Height="12"/> |
77 |
<RowDefinition /> |
78 |
</Grid.RowDefinitions>
|
79 |
<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 |
<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 |
<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 |
|
115 |
<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 |
|
126 |
</Grid>
|
127 |
|
128 |
<StackPanel Orientation="Horizontal" Grid.Row="1" HorizontalAlignment="Right" Margin="0 0 0 10" Grid.Column="1"> |
129 |
|
130 |
<telerik:RadButton Content=" SEND" MinWidth="50" Margin="8 0" VerticalAlignment="Center" |
131 |
Command="{Binding ConverAdd_OKCommand , Mode=TwoWay}" /> |
132 |
|
133 |
<telerik:RadButton Content="CANCEL" MinWidth="80" Margin="0 0 10 0" VerticalAlignment="Center" IsCancel="True" Name="Close" /> |
134 |
</StackPanel>
|
135 |
|
136 |
</Grid>
|
137 |
</Grid>
|
138 |
</telerik:RadWindow>
|