markus / KCOM / Views / RequirementView.xaml @ 3a52c0a7
이력 | 보기 | 이력해설 | 다운로드 (10.3 KB)
1 |
<UserControl x:Class="KCOM.Views.RequirementView" |
---|---|
2 |
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" |
3 |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
4 |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
5 |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
6 |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
7 |
xmlns:local="clr-namespace:KCOM.Controls" FontSize="12" |
8 |
xmlns:behavior="clr-namespace:KCOM.Behaviors" |
9 |
xmlns:viewmodel="clr-namespace:KCOM.ViewModel" |
10 |
xmlns:convert="clr-namespace:KCOM.Converters" LayoutUpdated="UserControl_LayoutUpdated" |
11 |
xmlns:Behaviors="clr-namespace:KCOM.Behaviors" |
12 |
xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" |
13 |
mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="350"> |
14 |
<!--<UserControl.DataContext>
|
15 |
<viewmodel:RequirementViewModel x:Name="ViewModel"/>
|
16 |
</UserControl.DataContext>-->
|
17 |
<i:Interaction.Triggers>
|
18 |
<i:EventTrigger EventName="Loaded"> |
19 |
<i:InvokeCommandAction Command="{Binding LoadedCommand}"/> |
20 |
</i:EventTrigger>
|
21 |
<i:EventTrigger EventName="Unloaded"> |
22 |
<i:InvokeCommandAction Command="{Binding ClosingCommand}"/> |
23 |
</i:EventTrigger>
|
24 |
</i:Interaction.Triggers>
|
25 |
<UserControl.Resources>
|
26 |
<viewmodel:RequirementViewModel x:Key="ViewModel"/> |
27 |
<convert:StringMultiLineConvert x:Key="StringMultiLineConvert"/> |
28 |
</UserControl.Resources>
|
29 |
<UserControl.DataContext>
|
30 |
<Binding Mode="OneWay" Source="{StaticResource ViewModel}"/> |
31 |
</UserControl.DataContext>
|
32 |
<Grid x:Name="grid" Margin="2" LayoutUpdated="Grid_LayoutUpdated"> |
33 |
<Grid.ColumnDefinitions>
|
34 |
<ColumnDefinition Width="*"/> |
35 |
</Grid.ColumnDefinitions>
|
36 |
<Grid.RowDefinitions>
|
37 |
<RowDefinition Height="Auto"/> |
38 |
<RowDefinition Height="Auto"/> |
39 |
<RowDefinition/> |
40 |
</Grid.RowDefinitions>
|
41 |
<Grid HorizontalAlignment="Right"> |
42 |
<Grid.ColumnDefinitions>
|
43 |
<ColumnDefinition/> |
44 |
<ColumnDefinition Width="4"/> |
45 |
<ColumnDefinition/> |
46 |
<ColumnDefinition Width="4"/> |
47 |
<ColumnDefinition/> |
48 |
</Grid.ColumnDefinitions>
|
49 |
<WrapPanel Grid.Row="1" HorizontalAlignment="Left" Orientation="Horizontal" Visibility="Collapsed"> |
50 |
<telerik:RadButton Content="추가" Background="#3d3d3d" Foreground="White" Margin="5,0" MinWidth="60" Command="{Binding AddVPCommentCommand}"/> |
51 |
<telerik:RadToggleButton Width="20" Height="20" Command="{Binding RefreshCommand}" Margin="3"> |
52 |
<Image Stretch="Fill" Source="/KCOM;component/Resources/Images/MenuImage/Refresh.png"/> |
53 |
</telerik:RadToggleButton>
|
54 |
<!--<telerik:RadToggleButton Width="15" Height="15" Command="{Binding RefreshCommand}">
|
55 |
<Image Stretch="Fill" Source="/KCOM;component/Resources/Images/MenuImage/Refresh.png"/>
|
56 |
</telerik:RadToggleButton>-->
|
57 |
</WrapPanel>
|
58 |
</Grid>
|
59 |
|
60 |
<telerik:RadGridView Grid.Row="2" AutoGenerateColumns="False" ItemsSource="{Binding RequirementList}" ShowGroupPanel="False" |
61 |
CanUserFreezeColumns="False" x:Name="Gridview" SelectedItem="{Binding SelectRequirement}" |
62 |
RowIndicatorVisibility="Collapsed" ScrollViewer.HorizontalScrollBarVisibility="Disabled" ColumnWidth="*" |
63 |
IsExpandedBinding="{Binding IsExpanded,Mode=TwoWay}" IsExpandableBinding="{Binding IsExpandable, Mode=TwoWay}" |
64 |
GridLinesVisibility="Horizontal" HorizontalGridLinesBrush="Orange"> |
65 |
<telerik:RadGridView.ChildTableDefinitions>
|
66 |
<telerik:GridViewTableDefinition/> |
67 |
</telerik:RadGridView.ChildTableDefinitions>
|
68 |
<telerik:RadGridView.Columns>
|
69 |
<telerik:GridViewDataColumn Header="Commant" IsReadOnly="True" IsFilterable="True" |
70 |
TextAlignment="Left" TextWrapping="WrapWithOverflow" |
71 |
DataMemberBinding="{Binding mdText,Converter={StaticResource StringMultiLineConvert}}"/> |
72 |
</telerik:RadGridView.Columns>
|
73 |
<telerik:RadGridView.HierarchyChildTemplate>
|
74 |
<DataTemplate>
|
75 |
<Grid Background="#FF999999"> |
76 |
<Grid.RowDefinitions>
|
77 |
<RowDefinition Height="Auto"/> |
78 |
<RowDefinition Height="*"/> |
79 |
</Grid.RowDefinitions>
|
80 |
<Grid.ColumnDefinitions>
|
81 |
<ColumnDefinition Width="10"/> |
82 |
<ColumnDefinition Width="*"/> |
83 |
</Grid.ColumnDefinitions>
|
84 |
<telerik:RadPathButton Width="100" Height="24" HorizontalAlignment="Left" Content="연결 추가" FontSize="12" Grid.ColumnSpan="2" Margin="15,2,2,2" |
85 |
Command="{Binding AddVPCommentCommand, Source={StaticResource ViewModel}}" |
86 |
ContentPlacement="Left" |
87 |
CommandParameter="{Binding RelativeSource={RelativeSource AncestorType=telerik:GridViewRow}}" |
88 |
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" > |
89 |
<telerik:RadPathButton.PathStyle>
|
90 |
<Style TargetType="Path"> |
91 |
<Setter Property="Width" Value="18"/> |
92 |
<Setter Property="Height" Value="18"/> |
93 |
<Setter Property="Fill" Value="#FF0A93E2" /> |
94 |
<Setter Property="Stretch" Value="Fill" /> |
95 |
<Setter Property="HorizontalAlignment" Value="Right" /> |
96 |
<Setter Property="VerticalAlignment" Value="Center" /> |
97 |
</Style>
|
98 |
</telerik:RadPathButton.PathStyle>
|
99 |
</telerik:RadPathButton>
|
100 |
<telerik:RadGridView x:Name="DetailGridView" GroupRenderMode="Flat" Grid.Row="1" |
101 |
BorderThickness="0,1,0,1" Grid.Column="1" |
102 |
GridLinesVisibility="Both" |
103 |
ScrollViewer.HorizontalScrollBarVisibility="Disabled" ColumnWidth="*" |
104 |
CanUserFreezeColumns="False" HorizontalGridLinesBrush="#FFB0AFAF" |
105 |
AutoGenerateColumns="False" behavior:GridViewAutoWidthBehavior.IsEnabled="True" |
106 |
ItemsSource="{Binding VpComments}" |
107 |
ShowGroupPanel="False" SelectedItem="{Binding SelectVPComment, Source={StaticResource ViewModel}}" |
108 |
IsReadOnly="True"> |
109 |
<i:Interaction.Triggers>
|
110 |
<i:EventTrigger EventName="SelectionChanged"> |
111 |
<i:InvokeCommandAction Command="{Binding SelectedVPCommentCommand, Source={StaticResource ViewModel}}"/> |
112 |
</i:EventTrigger>
|
113 |
</i:Interaction.Triggers>
|
114 |
<telerik:RadGridView.Columns>
|
115 |
<telerik:GridViewDataColumn DataMemberBinding="{Binding createdByName}" Width="80" IsFilterable="False" IsReadOnly="True" |
116 |
Header="Create User" /> |
117 |
<telerik:GridViewDataColumn DataMemberBinding="{Binding comment}" TextAlignment="Left" IsReadOnly="True" TextTrimming="CharacterEllipsis" IsFilterable="False" |
118 |
Header="Comment" /> |
119 |
<telerik:GridViewDataColumn DataMemberBinding="{Binding condition}" Header="Condition" Width="64" IsReadOnly="True"> |
120 |
<telerik:GridViewDataColumn.CellTemplate>
|
121 |
<DataTemplate>
|
122 |
<CheckBox IsChecked="{Binding condition, Mode=TwoWay}"/> |
123 |
</DataTemplate>
|
124 |
</telerik:GridViewDataColumn.CellTemplate>
|
125 |
</telerik:GridViewDataColumn>
|
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" |
130 |
Command="{Binding DelVPCommentCommand, Source={StaticResource ViewModel}}" |
131 |
CommandParameter="{Binding RelativeSource={RelativeSource AncestorType=telerik:GridViewRow}}" Background="{x:Null}" BorderBrush="{x:Null}" |
132 |
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>
|
144 |
</UserControl>
|