markus / KCOM / Views / RequirementSearchView.xaml @ 37bd9e47
이력 | 보기 | 이력해설 | 다운로드 (8.57 KB)
1 |
<UserControl x:Name="userControl" x:Class="KCOM.Views.RequirementSearchView" |
---|---|
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:controls ="clr-namespace:KCOM.Controls" |
11 |
xmlns:convert="clr-namespace:KCOM.Converters" |
12 |
xmlns:Behaviors="clr-namespace:KCOM.Behaviors" |
13 |
xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" |
14 |
mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="1000" DataContext="{DynamicResource ViewModel}"> |
15 |
<UserControl.Resources>
|
16 |
<convert:GridSelectMultiValueConverter x:Key="GridSelectMultiValueConvert"/> |
17 |
<convert:IListToIListCountConverter x:Key="IListToIListCountConverter"/> |
18 |
<viewmodel:RequirementSearchViewModel x:Key="ViewModel"/> |
19 |
<convert:StringMultiLineConvert x:Key="StringMultiLineConvert"/> |
20 |
</UserControl.Resources>
|
21 |
<i:Interaction.Triggers>
|
22 |
<i:EventTrigger EventName="Loaded"> |
23 |
<i:InvokeCommandAction Command="{Binding LoadedCommand}"/> |
24 |
</i:EventTrigger>
|
25 |
<i:EventTrigger EventName="Unloaded"> |
26 |
<i:InvokeCommandAction Command="{Binding ClosingCommand}"/> |
27 |
</i:EventTrigger>
|
28 |
</i:Interaction.Triggers>
|
29 |
<Grid Background="White"> |
30 |
<Grid.RowDefinitions>
|
31 |
<RowDefinition Height="Auto"/> |
32 |
</Grid.RowDefinitions>
|
33 |
<Grid.Resources>
|
34 |
<Style TargetType="telerik:GridViewCell" x:Key="CellTopStretchStyle"> |
35 |
<Setter Property="VerticalContentAlignment" Value="Top"/> |
36 |
<Setter Property="HorizontalContentAlignment" Value="Stretch"/> |
37 |
<Setter Property="Margin" Value="0"/> |
38 |
<Setter Property="Padding" Value="0"/> |
39 |
</Style>
|
40 |
<Style TargetType="telerik:GridViewCell" x:Key="CellCenterStyle"> |
41 |
<Setter Property="VerticalContentAlignment" Value="Center"/> |
42 |
<Setter Property="HorizontalContentAlignment" Value="Center"/> |
43 |
<Setter Property="Margin" Value="0"/> |
44 |
<Setter Property="Padding" Value="0"/> |
45 |
</Style>
|
46 |
</Grid.Resources>
|
47 |
<telerik:RadGridView
|
48 |
AutoGenerateColumns="False" telerik:StyleManager.Theme="Office2016" |
49 |
ItemsSource="{Binding RequirementList}" |
50 |
ShowGroupPanel="False" |
51 |
GroupRenderMode="Flat" CanUserFreezeColumns="False" ShowColumnFooters="False" |
52 |
CanUserReorderColumns="False" |
53 |
CanUserSelect="False" Height="{Binding ActualHeight, ElementName=userControl, Mode=OneWay}" |
54 |
x:Name="Gridview" SelectionMode="Single" SelectionUnit="Cell" VerticalAlignment="Top" |
55 |
RowIndicatorVisibility="Collapsed" ScrollViewer.HorizontalScrollBarVisibility="Disabled" |
56 |
ScrollViewer.VerticalScrollBarVisibility="Visible" |
57 |
GridLinesVisibility="Both" HorizontalGridLinesBrush="Orange"> |
58 |
<i:Interaction.Behaviors>
|
59 |
<Behaviors:ColumnFilterBehavior DefaultOperator="Contains"/> |
60 |
</i:Interaction.Behaviors>
|
61 |
<telerik:RadGridView.Columns>
|
62 |
<telerik:GridViewColumn IsReadOnly="True" IsFilterable="True" Header="선택" Width="42" HeaderTextAlignment="Center"> |
63 |
<telerik:GridViewColumn.CellTemplate>
|
64 |
<DataTemplate>
|
65 |
<telerik:RadToggleButton Content="선택" |
66 |
Command="{Binding SelectedRequirmentCommand, Source={StaticResource ViewModel}}"> |
67 |
<telerik:RadToggleButton.CommandParameter>
|
68 |
<MultiBinding Converter="{StaticResource GridSelectMultiValueConvert}"> |
69 |
<Binding RelativeSource="{RelativeSource Mode=FindAncestor, AncestorType=telerik:RadWindow}"/> |
70 |
<Binding/> <!--Row 전체가 바인딩됨--> |
71 |
</MultiBinding>
|
72 |
</telerik:RadToggleButton.CommandParameter>
|
73 |
</telerik:RadToggleButton>
|
74 |
</DataTemplate>
|
75 |
</telerik:GridViewColumn.CellTemplate>
|
76 |
</telerik:GridViewColumn>
|
77 |
<telerik:GridViewDataColumn Header="MR 내용" Width="*" IsReadOnly="True" IsFilterable="True" |
78 |
TextAlignment="Left" TextWrapping="WrapWithOverflow" HeaderTextAlignment="Center" |
79 |
DataMemberBinding="{Binding mdText,Converter={StaticResource StringMultiLineConvert}}"> |
80 |
</telerik:GridViewDataColumn>
|
81 |
<telerik:GridViewDataColumn HeaderTextAlignment="Center" CellStyle="{DynamicResource CellTopStretchStyle}" |
82 |
Header="VP Comment" Width="562" DataMemberBinding="{Binding VpComments}" IsReadOnly="True"> |
83 |
<telerik:GridViewDataColumn.CellTemplate>
|
84 |
<DataTemplate>
|
85 |
<Grid>
|
86 |
<Grid.RowDefinitions>
|
87 |
<RowDefinition Height="Auto"/> |
88 |
<RowDefinition/> |
89 |
</Grid.RowDefinitions>
|
90 |
<telerik:RadGridView
|
91 |
AutoGenerateColumns="False" telerik:StyleManager.Theme="Office2016" |
92 |
ItemsSource="{Binding VpComments}" |
93 |
ShowGroupPanel="False" GridLinesVisibility="Vertical" |
94 |
GroupRenderMode="Flat" CanUserFreezeColumns="False" |
95 |
CanUserReorderColumns="False" VerticalAlignment="Top" HorizontalAlignment="Left" |
96 |
CanUserSelect="False" SelectionMode="Single" SelectionUnit="Cell" |
97 |
RowIndicatorVisibility="Collapsed" ScrollViewer.HorizontalScrollBarVisibility="Disabled" |
98 |
HorizontalGridLinesBrush="Orange"> |
99 |
<telerik:RadGridView.Columns>
|
100 |
<telerik:GridViewDataColumn IsFilterable="False" DataMemberBinding="{Binding createdByName}" HeaderTextAlignment="Center" Width="120" IsReadOnly="True" |
101 |
Header="Create User" /> |
102 |
<telerik:GridViewDataColumn DataMemberBinding="{Binding comment}" HeaderTextAlignment="Center" Width="*" TextAlignment="Left" IsReadOnly="True" TextTrimming="CharacterEllipsis" IsFilterable="False" |
103 |
Header="Comment" /> |
104 |
<telerik:GridViewDataColumn IsFilterable="False" TextAlignment="Center" DataMemberBinding="{Binding condition,Mode=TwoWay}" HeaderTextAlignment="Center" Header="Condition" Width="90" IsReadOnly="True"> |
105 |
<telerik:GridViewDataColumn.CellStyle>
|
106 |
<Style TargetType="telerik:GridViewCell"> |
107 |
<Setter Property="VerticalContentAlignment" Value="Center"/> |
108 |
<Setter Property="HorizontalContentAlignment" Value="Center"/> |
109 |
<Setter Property="Margin" Value="0"/> |
110 |
<Setter Property="Padding" Value="0"/> |
111 |
</Style>
|
112 |
</telerik:GridViewDataColumn.CellStyle>
|
113 |
</telerik:GridViewDataColumn>
|
114 |
</telerik:RadGridView.Columns>
|
115 |
</telerik:RadGridView>
|
116 |
<Border Grid.Row="1" Background="Gray"/> |
117 |
</Grid>
|
118 |
</DataTemplate>
|
119 |
</telerik:GridViewDataColumn.CellTemplate>
|
120 |
</telerik:GridViewDataColumn>
|
121 |
</telerik:RadGridView.Columns>
|
122 |
</telerik:RadGridView>
|
123 |
</Grid>
|
124 |
</UserControl>
|