markus / KCOM / Views / BiddersSearchView.xaml @ 20bb0e09
이력 | 보기 | 이력해설 | 다운로드 (10.1 KB)
1 | df2e7646 | taeseongkim | <UserControl x:Name="userControl" x:Class="KCOM.Views.BiddersSearchView" |
---|---|---|---|
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:BiddersSearchViewModel 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 BiddersList}" |
||
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 SelectedBiddersCommand, 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="Equipment Name" Width="*" IsReadOnly="True" IsFilterable="True" |
||
78 | TextAlignment="Left" HeaderTextAlignment="Center" |
||
79 | DataMemberBinding="{Binding equipmentName}"/> |
||
80 | <telerik:GridViewDataColumn Header="No" Width="Auto" IsReadOnly="True" IsFilterable="True" |
||
81 | TextAlignment="Left" HeaderTextAlignment="Center" |
||
82 | DataMemberBinding="{Binding no}"/> |
||
83 | <telerik:GridViewDataColumn Header="Description 1" Width="Auto" IsReadOnly="True" IsFilterable="True" |
||
84 | TextAlignment="Left" HeaderTextAlignment="Center" |
||
85 | DataMemberBinding="{Binding description1}"/> |
||
86 | <telerik:GridViewDataColumn Header="Description 2" Width="Auto" IsReadOnly="True" IsFilterable="True" |
||
87 | TextAlignment="Left" HeaderTextAlignment="Center" |
||
88 | DataMemberBinding="{Binding description2}"/> |
||
89 | <telerik:GridViewDataColumn Header="Description 3" Width="Auto" IsReadOnly="True" IsFilterable="True" |
||
90 | TextAlignment="Left" HeaderTextAlignment="Center" |
||
91 | DataMemberBinding="{Binding description3}"/> |
||
92 | <telerik:GridViewDataColumn Header="Unit" Width="Auto" IsReadOnly="True" IsFilterable="True" |
||
93 | TextAlignment="Left" HeaderTextAlignment="Center" |
||
94 | DataMemberBinding="{Binding unit}"/> |
||
95 | <telerik:GridViewDataColumn Header="Data" Width="Auto" IsReadOnly="True" IsFilterable="True" |
||
96 | TextAlignment="Left" HeaderTextAlignment="Center" |
||
97 | DataMemberBinding="{Binding data}"/> |
||
98 | <telerik:GridViewDataColumn HeaderTextAlignment="Center" CellStyle="{DynamicResource CellTopStretchStyle}" |
||
99 | Header="VP Comment" Width="562" DataMemberBinding="{Binding VpComments}" IsReadOnly="True"> |
||
100 | <telerik:GridViewDataColumn.CellTemplate>
|
||
101 | <DataTemplate>
|
||
102 | <Grid>
|
||
103 | <Grid.RowDefinitions>
|
||
104 | <RowDefinition Height="Auto"/> |
||
105 | <RowDefinition/> |
||
106 | </Grid.RowDefinitions>
|
||
107 | <telerik:RadGridView
|
||
108 | 37bd9e47 | taeseongkim | AutoGenerateColumns="False" telerik:StyleManager.Theme="Office2016" |
109 | df2e7646 | taeseongkim | ItemsSource="{Binding VpComments}" |
110 | ShowGroupPanel="False" GridLinesVisibility="Vertical" |
||
111 | GroupRenderMode="Flat" CanUserFreezeColumns="False" |
||
112 | CanUserReorderColumns="False" VerticalAlignment="Top" HorizontalAlignment="Left" |
||
113 | CanUserSelect="False" SelectionMode="Single" SelectionUnit="Cell" |
||
114 | RowIndicatorVisibility="Collapsed" ScrollViewer.HorizontalScrollBarVisibility="Disabled" |
||
115 | HorizontalGridLinesBrush="Orange"> |
||
116 | <telerik:RadGridView.Columns>
|
||
117 | <telerik:GridViewDataColumn IsFilterable="False" DataMemberBinding="{Binding createdByName}" HeaderTextAlignment="Center" Width="120" IsReadOnly="True" |
||
118 | Header="Create User" /> |
||
119 | <telerik:GridViewDataColumn DataMemberBinding="{Binding comment}" HeaderTextAlignment="Center" Width="*" TextAlignment="Left" IsReadOnly="True" TextTrimming="CharacterEllipsis" IsFilterable="False" |
||
120 | Header="Comment" /> |
||
121 | <telerik:GridViewDataColumn IsFilterable="False" TextAlignment="Center" DataMemberBinding="{Binding condition,Mode=TwoWay}" HeaderTextAlignment="Center" Header="Condition" Width="90" IsReadOnly="True"> |
||
122 | <telerik:GridViewDataColumn.CellStyle>
|
||
123 | <Style TargetType="telerik:GridViewCell"> |
||
124 | <Setter Property="VerticalContentAlignment" Value="Center"/> |
||
125 | <Setter Property="HorizontalContentAlignment" Value="Center"/> |
||
126 | <Setter Property="Margin" Value="0"/> |
||
127 | <Setter Property="Padding" Value="0"/> |
||
128 | </Style>
|
||
129 | </telerik:GridViewDataColumn.CellStyle>
|
||
130 | </telerik:GridViewDataColumn>
|
||
131 | </telerik:RadGridView.Columns>
|
||
132 | </telerik:RadGridView>
|
||
133 | <Border Grid.Row="1" Background="Gray"/> |
||
134 | </Grid>
|
||
135 | </DataTemplate>
|
||
136 | </telerik:GridViewDataColumn.CellTemplate>
|
||
137 | </telerik:GridViewDataColumn>
|
||
138 | </telerik:RadGridView.Columns>
|
||
139 | </telerik:RadGridView>
|
||
140 | </Grid>
|
||
141 | </UserControl> |