개정판 b10671a4
layout 변경
Change-Id: Iee33e49e17ec1fd14b2820f01f619a99ae17147e
KCOM/Views/RequirementView.xaml | ||
---|---|---|
11 | 11 |
xmlns:convert="clr-namespace:KCOM.Converters" |
12 | 12 |
xmlns:Behaviors="clr-namespace:KCOM.Behaviors" |
13 | 13 |
xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" |
14 |
mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="350" DataContext="{DynamicResource ViewModel}">
|
|
14 |
mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="1000" DataContext="{DynamicResource ViewModel}">
|
|
15 | 15 |
<UserControl.Resources> |
16 | 16 |
<viewmodel:RequirementViewModel x:Key="ViewModel"/> |
17 | 17 |
<convert:StringMultiLineConvert x:Key="StringMultiLineConvert"/> |
... | ... | |
24 | 24 |
<i:InvokeCommandAction Command="{Binding ClosingCommand}"/> |
25 | 25 |
</i:EventTrigger> |
26 | 26 |
</i:Interaction.Triggers> |
27 |
<Grid x:Name="grid" Margin="2"> |
|
28 |
<Grid.ColumnDefinitions> |
|
29 |
<ColumnDefinition Width="*"/> |
|
30 |
</Grid.ColumnDefinitions> |
|
31 |
<Grid.RowDefinitions> |
|
32 |
<RowDefinition Height="Auto"/> |
|
33 |
<RowDefinition Height="Auto"/> |
|
34 |
<RowDefinition/> |
|
35 |
</Grid.RowDefinitions> |
|
36 |
<Grid HorizontalAlignment="Right" Visibility="Collapsed"> |
|
37 |
<Grid.ColumnDefinitions> |
|
38 |
<ColumnDefinition/> |
|
39 |
<ColumnDefinition Width="4"/> |
|
40 |
<ColumnDefinition/> |
|
41 |
<ColumnDefinition Width="4"/> |
|
42 |
<ColumnDefinition/> |
|
43 |
</Grid.ColumnDefinitions> |
|
44 |
<WrapPanel Grid.Row="1" HorizontalAlignment="Left" Orientation="Horizontal"> |
|
45 |
<telerik:RadButton Content="추가" Background="#3d3d3d" Foreground="White" Margin="5,0" MinWidth="60" Command="{Binding AddVPCommentCommand}"/> |
|
46 |
<telerik:RadToggleButton Width="20" Height="20" Command="{Binding RefreshCommand}" Margin="3"> |
|
47 |
<Image Stretch="Fill" Source="/KCOM;component/Resources/Images/MenuImage/Refresh.png"/> |
|
48 |
</telerik:RadToggleButton> |
|
49 |
|
|
50 |
<telerik:RadToggleButton Width="15" Height="15" Command="{Binding RefreshCommand}"> |
|
51 |
<Image Stretch="Fill" Source="/KCOM;component/Resources/Images/MenuImage/Refresh.png"/> |
|
52 |
</telerik:RadToggleButton> |
|
53 |
|
|
54 |
</WrapPanel> |
|
55 |
</Grid> |
|
56 |
|
|
57 |
<telerik:RadGridView Grid.Row="2" AutoGenerateColumns="False" ItemsSource="{Binding RequirementList}" ShowGroupPanel="False" |
|
27 |
<telerik:RadLayoutControl ScrollViewer.VerticalScrollBarVisibility="Disabled" ScrollViewer.HorizontalScrollBarVisibility="Disabled" SelectedItem="{x:Null}"> |
|
28 |
<telerik:LayoutControlExpanderGroup IsExpandable="False" telerik:StyleManager.Theme="Office2016"> |
|
29 |
<telerik:RadGridView telerik:StyleManager.Theme="Office2016" AutoGenerateColumns="False" ItemsSource="{Binding RequirementList}" ShowGroupPanel="False" |
|
58 | 30 |
CanUserFreezeColumns="False" x:Name="Gridview" SelectedItem="{Binding SelectRequirement}" |
59 |
RowIndicatorVisibility="Collapsed" ScrollViewer.HorizontalScrollBarVisibility="Disabled" ColumnWidth="*"
|
|
31 |
RowIndicatorVisibility="Collapsed" ScrollViewer.HorizontalScrollBarVisibility="Disabled" |
|
60 | 32 |
IsExpandedBinding="{Binding IsExpanded,Mode=TwoWay}" IsExpandableBinding="{Binding IsExpandable, Mode=TwoWay}" |
61 | 33 |
GridLinesVisibility="Horizontal" HorizontalGridLinesBrush="Orange"> |
62 |
<i:Interaction.Behaviors> |
|
63 |
<Behaviors:ColumnFilterBehavior DefaultOperator="Contains"/> |
|
64 |
</i:Interaction.Behaviors> |
|
65 |
<telerik:RadGridView.ChildTableDefinitions> |
|
66 |
<telerik:GridViewTableDefinition/> |
|
67 |
</telerik:RadGridView.ChildTableDefinitions> |
|
68 |
<telerik:RadGridView.Columns> |
|
69 |
<telerik:GridViewDataColumn Header="Commant" IsReadOnly="True" IsFilterable="True" |
|
34 |
<i:Interaction.Behaviors> |
|
35 |
<Behaviors:ColumnFilterBehavior DefaultOperator="Contains"/> |
|
36 |
</i:Interaction.Behaviors> |
|
37 |
<telerik:RadGridView.Columns> |
|
38 |
<telerik:GridViewDataColumn Header="Commant" IsReadOnly="True" IsFilterable="True" |
|
70 | 39 |
TextAlignment="Left" TextWrapping="WrapWithOverflow" |
71 | 40 |
DataMemberBinding="{Binding mdText,Converter={StaticResource StringMultiLineConvert}}"> |
72 |
<!--<telerik:GridViewDataColumn.CellTemplate> |
|
73 |
<DataTemplate> |
|
74 |
<controls:ExtendTextBox Text="{Binding mdText,Converter={StaticResource StringMultiLineConvert}}"/> |
|
75 |
</DataTemplate> |
|
76 |
</telerik:GridViewDataColumn.CellTemplate>--> |
|
77 |
</telerik:GridViewDataColumn> |
|
78 |
</telerik:RadGridView.Columns> |
|
79 |
<telerik:RadGridView.HierarchyChildTemplate> |
|
80 |
<DataTemplate> |
|
81 |
<Grid Background="#FF999999"> |
|
82 |
<Grid.RowDefinitions> |
|
83 |
<RowDefinition Height="Auto"/> |
|
84 |
<RowDefinition Height="*"/> |
|
85 |
</Grid.RowDefinitions> |
|
86 |
<Grid.ColumnDefinitions> |
|
87 |
<ColumnDefinition Width="10"/> |
|
88 |
<ColumnDefinition Width="*"/> |
|
89 |
</Grid.ColumnDefinitions> |
|
90 |
<telerik:RadPathButton Width="100" Height="24" HorizontalAlignment="Left" Content="연결 추가" FontSize="12" Grid.ColumnSpan="2" Margin="15,2,2,2" |
|
41 |
</telerik:GridViewDataColumn> |
|
42 |
</telerik:RadGridView.Columns> |
|
43 |
</telerik:RadGridView> |
|
44 |
</telerik:LayoutControlExpanderGroup> |
|
45 |
<telerik:LayoutControlSplitter/> |
|
46 |
<Grid > |
|
47 |
<Grid.RowDefinitions> |
|
48 |
<RowDefinition Height="Auto"/> |
|
49 |
<RowDefinition Height="Auto"/> |
|
50 |
</Grid.RowDefinitions> |
|
51 |
<StackPanel> |
|
52 |
<telerik:RadPathButton Width="100" HorizontalAlignment="Left" Content="연결 추가" FontSize="12" Grid.ColumnSpan="2" Margin="15,2,2,2" |
|
91 | 53 |
Command="{Binding AddVPCommentCommand, Source={StaticResource ViewModel}}" |
92 |
ContentPlacement="Left" |
|
54 |
ContentPlacement="Left" telerik:StyleManager.Theme="Office2016"
|
|
93 | 55 |
CommandParameter="{Binding RelativeSource={RelativeSource AncestorType=telerik:GridViewRow}}" |
94 | 56 |
PathGeometry="m4,7l0,2l3,0l0,3l2,0l0,-3l3,0l0,-2l-3,0l0,-3l-2,0l0,3l-3,0zm4,9c-4.41828,0 -8,-3.58172 -8,-8c0,-4.41828 3.58172,-8 8,-8c4.41828,0 8,3.58172 8,8c0,4.41828 -3.58172,8 -8,8zm0,0" > |
95 |
<telerik:RadPathButton.PathStyle> |
|
96 |
<Style TargetType="Path"> |
|
97 |
<Setter Property="Width" Value="18"/> |
|
98 |
<Setter Property="Height" Value="18"/> |
|
99 |
<Setter Property="Fill" Value="#FF0A93E2" /> |
|
100 |
<Setter Property="Stretch" Value="Fill" /> |
|
101 |
<Setter Property="HorizontalAlignment" Value="Right" /> |
|
102 |
<Setter Property="VerticalAlignment" Value="Center" /> |
|
103 |
</Style> |
|
104 |
</telerik:RadPathButton.PathStyle> |
|
105 |
</telerik:RadPathButton> |
|
106 |
<telerik:RadGridView x:Name="DetailGridView" GroupRenderMode="Flat" Grid.Row="1" |
|
107 |
BorderThickness="0,1,0,1" Grid.Column="1" |
|
57 |
<telerik:RadPathButton.PathStyle> |
|
58 |
<Style TargetType="Path"> |
|
59 |
<Setter Property="Width" Value="18"/> |
|
60 |
<Setter Property="Height" Value="18"/> |
|
61 |
<Setter Property="Fill" Value="#FF0A93E2" /> |
|
62 |
<Setter Property="Stretch" Value="Fill" /> |
|
63 |
<Setter Property="HorizontalAlignment" Value="Right" /> |
|
64 |
<Setter Property="VerticalAlignment" Value="Center" /> |
|
65 |
</Style> |
|
66 |
</telerik:RadPathButton.PathStyle> |
|
67 |
</telerik:RadPathButton> |
|
68 |
</StackPanel> |
|
69 |
<telerik:RadGridView x:Name="DetailGridView" GroupRenderMode="Flat" Grid.Row="1" |
|
70 |
BorderThickness="0,1,0,1" Grid.Column="1" telerik:StyleManager.Theme="Office2016" |
|
108 | 71 |
GridLinesVisibility="Both" |
109 |
ScrollViewer.HorizontalScrollBarVisibility="Disabled" ColumnWidth="*"
|
|
72 |
ScrollViewer.HorizontalScrollBarVisibility="Disabled" ColumnWidth="Auto"
|
|
110 | 73 |
CanUserFreezeColumns="False" HorizontalGridLinesBrush="#FFB0AFAF" |
111 | 74 |
AutoGenerateColumns="False" behavior:GridViewAutoWidthBehavior.IsEnabled="True" |
112 |
ItemsSource="{Binding VpComments}" |
|
75 |
ItemsSource="{Binding SelectRequirement.VpComments}"
|
|
113 | 76 |
ShowGroupPanel="False" SelectedItem="{Binding SelectVPComment, Source={StaticResource ViewModel}}" |
114 |
IsReadOnly="True"> |
|
115 |
<i:Interaction.Triggers>
|
|
116 |
<i:EventTrigger EventName="SelectionChanged">
|
|
117 |
<i:InvokeCommandAction Command="{Binding SelectedVPCommentCommand, Source={StaticResource ViewModel}}"/>
|
|
118 |
</i:EventTrigger>
|
|
119 |
</i:Interaction.Triggers>
|
|
120 |
<telerik:RadGridView.Columns>
|
|
121 |
<telerik:GridViewDataColumn DataMemberBinding="{Binding createdByName}" Width="80" IsFilterable="False" IsReadOnly="True"
|
|
77 |
IsReadOnly="True" VerticalAlignment="Top">
|
|
78 |
<i:Interaction.Triggers> |
|
79 |
<i:EventTrigger EventName="SelectionChanged"> |
|
80 |
<i:InvokeCommandAction Command="{Binding SelectedVPCommentCommand, Source={StaticResource ViewModel}}"/> |
|
81 |
</i:EventTrigger> |
|
82 |
</i:Interaction.Triggers> |
|
83 |
<telerik:RadGridView.Columns> |
|
84 |
<telerik:GridViewDataColumn DataMemberBinding="{Binding createdByName}" Width="120" IsFilterable="False" IsReadOnly="True"
|
|
122 | 85 |
Header="Create User" /> |
123 |
<telerik:GridViewDataColumn DataMemberBinding="{Binding comment}" TextAlignment="Left" IsReadOnly="True" TextTrimming="CharacterEllipsis" IsFilterable="False"
|
|
86 |
<telerik:GridViewDataColumn DataMemberBinding="{Binding comment}" Width="200" TextAlignment="Left" IsReadOnly="True" TextTrimming="CharacterEllipsis" IsFilterable="False"
|
|
124 | 87 |
Header="Comment" /> |
125 |
<telerik:GridViewDataColumn DataMemberBinding="{Binding condition,Mode=TwoWay}" Header="Condition" Width="64" IsReadOnly="True"/>
|
|
126 |
<telerik:GridViewDataColumn Width="24" IsFilterable="False" IsReadOnly="True">
|
|
127 |
<telerik:GridViewDataColumn.CellTemplate>
|
|
128 |
<DataTemplate>
|
|
129 |
<telerik:RadPathButton ToolTip="Delete Comment" Height="22" Width="22"
|
|
88 |
<telerik:GridViewDataColumn DataMemberBinding="{Binding condition,Mode=TwoWay}" Header="Condition" Width="Auto" IsReadOnly="True"/>
|
|
89 |
<telerik:GridViewDataColumn Width="Auto" Header="연결 제거" IsFilterable="False" IsReadOnly="True">
|
|
90 |
<telerik:GridViewDataColumn.CellTemplate> |
|
91 |
<DataTemplate> |
|
92 |
<telerik:RadPathButton ToolTip="Delete Comment" Height="22" Width="22" |
|
130 | 93 |
Command="{Binding DelVPCommentCommand, Source={StaticResource ViewModel}}" |
131 | 94 |
CommandParameter="{Binding RelativeSource={RelativeSource AncestorType=telerik:GridViewRow}}" Background="{x:Null}" BorderBrush="{x:Null}" |
132 | 95 |
PathGeometry="M108.319,108.319c-2.106,2.107-5.523,2.106-7.632-0.001l-0.003-0.003L70.159,77.79L39.63,108.318 c-2.106,2.108-5.523,2.107-7.634,0c-2.104-2.106-2.105-5.523,0-7.633l30.528-30.528l-30.54-30.541 c-2.106-2.104-2.106-5.521,0-7.631c2.105-2.107,5.522-2.107,7.633-0.001l30.541,30.541l30.528-30.527 c2.105-2.105,5.523-2.105,7.633,0c2.109,2.106,2.107,5.524,0,7.633L77.791,70.157l30.527,30.528 C110.427,102.794,110.427,106.212,108.319,108.319 M119.767,119.767c27.396-27.397,27.396-71.818,0-99.217 C92.37-6.849,47.947-6.85,20.547,20.548c-27.397,27.398-27.396,71.819,0.001,99.22C47.947,147.166,92.368,147.165,119.767,119.767"> |
133 |
</telerik:RadPathButton> |
|
134 |
</DataTemplate> |
|
135 |
</telerik:GridViewDataColumn.CellTemplate> |
|
136 |
</telerik:GridViewDataColumn> |
|
137 |
</telerik:RadGridView.Columns> |
|
138 |
</telerik:RadGridView> |
|
139 |
</Grid> |
|
140 |
</DataTemplate> |
|
141 |
</telerik:RadGridView.HierarchyChildTemplate> |
|
142 |
</telerik:RadGridView> |
|
143 |
</Grid> |
|
96 |
</telerik:RadPathButton> |
|
97 |
</DataTemplate> |
|
98 |
</telerik:GridViewDataColumn.CellTemplate> |
|
99 |
</telerik:GridViewDataColumn> |
|
100 |
</telerik:RadGridView.Columns> |
|
101 |
</telerik:RadGridView> |
|
102 |
</Grid> |
|
103 |
</telerik:RadLayoutControl> |
|
144 | 104 |
</UserControl> |
내보내기 Unified diff