프로젝트

일반

사용자정보

통계
| 브랜치(Branch): | 개정판:

markus / KCOM / Controls / FavoritePanel.xaml @ 284ed1c7

이력 | 보기 | 이력해설 | 다운로드 (23.8 KB)

1 6a19b48d taeseongkim
<UserControl
2
    x:Class="KCOM.Controls.FavoritePanel"
3
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
4
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
5
    xmlns:converter="clr-namespace:KCOM.Common.Converter"
6
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
7
    xmlns:local="clr-namespace:KCOM.Controls"
8
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
9
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
10
    d:DesignHeight="900"
11
    d:DesignWidth="600"
12
    Background="#f1f1f1"
13
    mc:Ignorable="d">
14 fb80055c KangIngu
    <UserControl.Resources>
15 6a19b48d taeseongkim
        <converter:enumStringConverter x:Key="enumStringConverter" />
16
        <converter:EnumStringColorConverter x:Key="enumStringColorConverter" />
17 fb80055c KangIngu
    </UserControl.Resources>
18
    <Grid>
19
        <Grid.RowDefinitions>
20 6a19b48d taeseongkim
            <RowDefinition Height="Auto" />
21
            <RowDefinition Height="*" />
22 fb80055c KangIngu
        </Grid.RowDefinitions>
23 6a19b48d taeseongkim
        <Border
24
            Background="#f5f5f5"
25
            BorderBrush="#e6e6e6"
26
            BorderThickness="0,0,0,1">
27
            <Grid Margin="10">
28 fb80055c KangIngu
                <Grid.RowDefinitions>
29 6a19b48d taeseongkim
                    <RowDefinition Height="Auto" />
30
                    <RowDefinition Height="*" />
31
                    <RowDefinition Height="*" />
32 fb80055c KangIngu
                </Grid.RowDefinitions>
33
                <StackPanel Margin="1" Orientation="Horizontal">
34 6a19b48d taeseongkim
                    <Image Width="18" Source="/KCOM;component/Resources/Images/MenuImage_New/tips.png" />
35
                    <TextBlock
36
                        Margin="1"
37
                        VerticalAlignment="Center"
38
                        FontWeight="Bold"
39
                        Foreground="#3d3d3d"
40
                        Text="You can use a double click to go to the page!" />
41
                    <!--  Text="Viewing : double Click !! All Markup Favorite items are Read-only" />  -->
42 fb80055c KangIngu
43
                </StackPanel>
44 6a19b48d taeseongkim
                <Border
45
                    Grid.Row="1"
46
                    Margin="0,5"
47
                    BorderBrush="#3d3d3d"
48
                    BorderThickness="0,0,0,0">
49 fb80055c KangIngu
                    <Grid>
50
                        <Grid.ColumnDefinitions>
51 6a19b48d taeseongkim
                            <ColumnDefinition Width="5*" />
52
                            <ColumnDefinition Width="5*" />
53 fb80055c KangIngu
                        </Grid.ColumnDefinitions>
54 6a19b48d taeseongkim
                        <TextBlock
55
                            Margin="23,5,5,5"
56
                            HorizontalAlignment="Right"
57
                            VerticalAlignment="Center"
58
                            Text="Search Type :" />
59
                        <telerik:RadComboBox
60
                            x:Name="cbState"
61
                            Grid.Column="1"
62
                            HorizontalAlignment="Stretch"
63
                            HorizontalContentAlignment="Center"
64
                            telerik:StyleManager.Theme="Office2016"
65
                            Loaded="cbState_Loaded"
66
                            SelectedIndex="0"
67
                            SelectionChanged="cbState_SelectionChanged" />
68 fb80055c KangIngu
                    </Grid>
69
                </Border>
70 6a19b48d taeseongkim
                <Border
71
                    Grid.Row="2"
72
                    Margin="0,5"
73
                    BorderBrush="#3d3d3d"
74
                    BorderThickness="0,0,0,0">
75 fb80055c KangIngu
                    <Grid>
76
                        <Grid.ColumnDefinitions>
77 6a19b48d taeseongkim
                            <ColumnDefinition Width="Auto" />
78
                            <ColumnDefinition Width="*" />
79 fb80055c KangIngu
                        </Grid.ColumnDefinitions>
80
81 6a19b48d taeseongkim
                        <StackPanel
82
                            Grid.Column="1"
83
                            HorizontalAlignment="Right"
84
                            Orientation="Horizontal">
85
                            <telerik:RadButton
86
                                x:Name="btnFavoriteReg"
87
                                MinWidth="60"
88
                                Margin="5,0"
89
                                Padding="5"
90
                                Background="#3d3d3d"
91
                                Click="FavoriteInternel_Save"
92
                                Content="ADD"
93
                                Foreground="White" />
94
                            <telerik:RadButton
95
                                x:Name="btnFavoriteEdit"
96
                                MinWidth="60"
97
                                Margin="5,0"
98
                                Padding="5"
99
                                Background="#3d3d3d"
100
                                Click="FavoriteInternel_Edit"
101
                                Content="EDIT"
102
                                Foreground="White" />
103
                            <telerik:RadButton
104
                                x:Name="btnFavoriteDel"
105
                                MinWidth="60"
106
                                Margin="5,0,0,0"
107
                                Padding="5"
108
                                Background="#3d3d3d"
109
                                Click="FavoriteInternel_Del"
110
                                Content="DELETE"
111
                                Foreground="White" />
112 fb80055c KangIngu
                        </StackPanel>
113
                    </Grid>
114
                </Border>
115
            </Grid>
116
        </Border>
117 6a19b48d taeseongkim
        <telerik:RadListBox
118
            x:Name="lstFavoriteInternal"
119
            Grid.Row="1"
120
            Margin="0,0"
121
            VerticalAlignment="Stretch"
122
            VerticalContentAlignment="Stretch"
123
            telerik:StyleManager.Theme="Office2013"
124
            Background="#f1f1f1"
125
            BorderThickness="0"
126
            FontSize="10"
127
            ItemsSource="{Binding FavoriteSet}"
128
            ScrollViewer.HorizontalScrollBarVisibility="Disabled"
129
            ScrollViewer.VerticalScrollBarVisibility="Visible"
130
            SelectedIndex="1">
131 fb80055c KangIngu
            <telerik:RadListBox.Resources>
132
                <Style TargetType="telerik:RadListBoxItem">
133
                    <Setter Property="Template">
134
                        <Setter.Value>
135
                            <ControlTemplate TargetType="telerik:RadListBoxItem">
136 6a19b48d taeseongkim
                                <Border
137
                                    Name="Border"
138
                                    Padding="2"
139
                                    SnapsToDevicePixels="True">
140
                                    <ContentPresenter />
141 fb80055c KangIngu
                                </Border>
142
                                <ControlTemplate.Triggers>
143
                                    <Trigger Property="IsSelected" Value="true">
144
                                        <!--<Setter TargetName="Border" Property="Background"
145
                                            Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"/>-->
146 6a19b48d taeseongkim
                                        <Setter TargetName="Border" Property="Background" Value="#FFFFFF" />
147
                                        <Setter TargetName="Border" Property="BorderThickness" Value="1" />
148
                                        <Setter TargetName="Border" Property="BorderBrush" Value="#3d3d3d" />
149 fb80055c KangIngu
                                    </Trigger>
150
                                </ControlTemplate.Triggers>
151
                            </ControlTemplate>
152
                        </Setter.Value>
153
                    </Setter>
154
                </Style>
155
            </telerik:RadListBox.Resources>
156
            <telerik:RadListBox.ItemTemplate>
157
                <DataTemplate>
158 6a19b48d taeseongkim
                    <Grid
159
                        Margin="0,5"
160
                        Background="White"
161
                        MouseLeftButtonDown="lstFavoriteInternal_ItemDoubleClickEvent">
162 fb80055c KangIngu
                        <Grid.RowDefinitions>
163 6a19b48d taeseongkim
                            <RowDefinition Height="30" />
164
                            <RowDefinition Height="Auto" />
165 fb80055c KangIngu
                        </Grid.RowDefinitions>
166
                        <Border Grid.Row="0" Background="{Binding FLAG, Converter={StaticResource enumStringColorConverter}}">
167 6a19b48d taeseongkim
                            <StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
168
                                <TextBlock
169
                                    VerticalAlignment="Center"
170
                                    FontSize="12"
171
                                    FontWeight="Bold"
172
                                    Foreground="White"
173
                                    Text="{Binding FLAG, Converter={StaticResource enumStringConverter}}" />
174 fb80055c KangIngu
                                <!--<TextBlock Text=" / " Foreground="White"  FontWeight="Bold" VerticalAlignment="Center" FontSize="12"/>
175
                                <TextBlock Text="{Binding PAGE_NO, StringFormat={}{0} Page}" Foreground="White"  FontWeight="Bold" VerticalAlignment="Center" FontSize="12"/>-->
176
                            </StackPanel>
177
                        </Border>
178
179
                        <Grid Grid.Row="1" Margin="5">
180
                            <Grid.RowDefinitions>
181 6a19b48d taeseongkim
                                <RowDefinition />
182
                                <RowDefinition />
183
                                <RowDefinition />
184
                                <RowDefinition />
185 fb80055c KangIngu
                            </Grid.RowDefinitions>
186
                            <StackPanel Orientation="Horizontal">
187
                                <!--<TextBlock Text="Doc No : " FontWeight="SemiBold" FontSize="12"/>
188
                                <TextBlock Text="{Binding DOCUMENT_NO}" Margin="5,0" FontSize="12"/>-->
189
                            </StackPanel>
190
                            <Grid Grid.Row="1" Margin="2,5">
191
                                <Grid.ColumnDefinitions>
192 6a19b48d taeseongkim
                                    <ColumnDefinition />
193
                                    <ColumnDefinition />
194
                                    <ColumnDefinition />
195
                                    <ColumnDefinition />
196 fb80055c KangIngu
                                </Grid.ColumnDefinitions>
197 6a19b48d taeseongkim
                                <TextBlock
198
                                    Grid.Column="0"
199
                                    FontSize="12"
200
                                    FontWeight="SemiBold"
201
                                    Text="Page No : " />
202
                                <TextBlock
203
                                    Grid.Column="1"
204
                                    Margin="5,0"
205
                                    FontSize="12"
206
                                    Text="{Binding PAGE_NO}" />
207
                                <TextBlock
208
                                    Grid.Column="2"
209
                                    FontSize="12"
210
                                    FontWeight="SemiBold"
211
                                    Text="Rev No : " />
212
                                <TextBlock
213
                                    Grid.Column="3"
214
                                    Margin="5,0"
215
                                    FontSize="12"
216
                                    Text="{Binding REVISION}" />
217 fb80055c KangIngu
                            </Grid>
218 6a19b48d taeseongkim
                            <StackPanel
219
                                Grid.Row="2"
220
                                Margin="2,5"
221
                                Orientation="Horizontal">
222
                                <TextBlock
223
                                    FontSize="12"
224
                                    FontWeight="SemiBold"
225
                                    Text="Description : " />
226 fb80055c KangIngu
                            </StackPanel>
227 6a19b48d taeseongkim
                            <TextBox
228
                                Grid.Row="3"
229
                                Margin="2,5"
230
                                Background="Transparent"
231
                                BorderThickness="0"
232
                                FontSize="12"
233
                                Foreground="Black"
234
                                IsHitTestVisible="False"
235
                                ScrollViewer.HorizontalScrollBarVisibility="Disabled"
236
                                Text="{Binding DESCRIPTION}"
237
                                TextWrapping="WrapWithOverflow" />
238 fb80055c KangIngu
                        </Grid>
239
                    </Grid>
240
                    <!--<Grid MouseLeftButtonDown="lstFavoriteInternal_ItemDoubleClickEvent" Margin="0,5">
241
                            <Grid.RowDefinitions>
242
                                <RowDefinition Height="5*"/>
243
                                <RowDefinition Height="5*"/>
244
                            </Grid.RowDefinitions>
245
                            <Border Grid.Row="0" Margin="5" BorderBrush="#3d3d3d" BorderThickness="0.5">
246
                                <Grid>
247
                                    <Grid.ColumnDefinitions>
248
                                        <ColumnDefinition Width="5*"/>
249
                                        <ColumnDefinition Width="5*"/>
250
                                    </Grid.ColumnDefinitions>
251
                                    <Grid.RowDefinitions>
252
                                        <RowDefinition Height="*"/>
253
                                    </Grid.RowDefinitions>
254
                                    <Border>
255
                                        <Grid>
256
                                            <Grid.RowDefinitions>
257
                                                <RowDefinition />
258
                                                <RowDefinition />
259
                                                <RowDefinition />
260
                                                <RowDefinition Height="Auto" />
261
                                            </Grid.RowDefinitions>
262
                                            <Grid.ColumnDefinitions>
263
                                                <ColumnDefinition Width="Auto" />
264
                                                <ColumnDefinition />
265
                                            </Grid.ColumnDefinitions>
266
                                            <TextBlock Margin="3"
267
                                                                                   VerticalAlignment="Center"
268
                                                                                   Foreground="#0094FF"
269
                                                                                   Text="Project" />
270
                                            <TextBlock Grid.Row="1"
271
                                                                                   Margin="3"
272
                                                                                   VerticalAlignment="Center"
273
                                                                                   Foreground="#0094FF"
274
                                                                                   Text="SLIP" />
275
                                            <TextBlock Grid.Row="2"
276
                                                                                   Margin="3"
277
                                                                                   VerticalAlignment="Center"
278
                                                                                   Foreground="#0094FF"
279
                                                                                   Text="VP" />
280
                                            <TextBlock Grid.Column="1"
281
                                                                                   Margin="0,0,0,0"
282
                                                                                   VerticalAlignment="Center"
283
                                                                                   Foreground="#3d3d3d"
284
                                                                                   Text="{Binding PROJECT_NO}" />
285
                                            <TextBlock Grid.Row="1"
286
                                                                                   Grid.Column="1"
287
                                                                                   Margin="0,0,0,0"
288
                                                                                   VerticalAlignment="Center"
289
                                                                                   Foreground="#3d3d3d"
290
                                                                                   Text="{Binding GROUP_NO}" />
291
                                            <TextBlock Grid.Row="2"
292
                                                                                   Grid.Column="1"
293
                                                                                   Margin="0,0,0,0"
294
                                                                                   VerticalAlignment="Center"
295
                                                                                   Foreground="#3d3d3d"
296
                                                                                   Text="{Binding DOCUMENT_NO}" />
297
                                        </Grid>
298
                                    </Border>
299
                                    <Border Grid.Column="1">
300
                                        <Grid>
301
                                            <Grid.RowDefinitions>
302
                                                <RowDefinition />
303
                                                <RowDefinition />
304
                                                <RowDefinition />
305
                                            </Grid.RowDefinitions>
306
                                            <Grid.ColumnDefinitions>
307
                                                <ColumnDefinition Width="Auto" />
308
                                                <ColumnDefinition Width="*" />
309
                                            </Grid.ColumnDefinitions>
310
                                            <TextBlock VerticalAlignment="Center"
311
                                                                                   Foreground="#0094FF"
312
                                                                                   Text="Scope" />
313
                                            <TextBlock Grid.Row="1"
314
                                                                                   VerticalAlignment="Center"
315
                                                                                   Foreground="#0094FF"
316
                                                                                   Text="CreateTime" />
317 6a19b48d taeseongkim
                    -->
318 fb80055c KangIngu
                    <!--
319
                                                                            <TextBlock Grid.Row="2"
320
                                                                            VerticalAlignment="Center"
321
                                                                            Foreground="#0094FF"
322
                                                                            Text="REV" />
323 6a19b48d taeseongkim
                    -->
324 fb80055c KangIngu
                    <!--
325

326
                                            <TextBox Grid.Column="1"
327
                                                                                 Margin="0,0,0,0"
328
                                                                                 BorderThickness="0" Background="Transparent"
329
                                                                                 IsHitTestVisible="False"
330
                                                                                 Text="{Binding FLAG,
331
                                                                                                Converter={StaticResource enumStringConverter}}"
332
                                                                                 TextAlignment="Center" />
333
                                            <TextBlock Grid.Row="1"
334
                                                                                   Grid.Column="1"
335
                                                                                   Margin="0,0,0,0"
336
                                                                                   HorizontalAlignment="Center"
337
                                                                                   VerticalAlignment="Center"
338
                                                                                   Foreground="#3d3d3d"
339
                                                                                   Text="{Binding CREATE_TIME}" />
340 6a19b48d taeseongkim
                    -->
341 fb80055c KangIngu
                    <!--
342
                                                                            <TextBlock Grid.Row="2"
343
                                                                            Grid.Column="1"
344
                                                                            Margin="0,0,0,0"
345
                                                                            HorizontalAlignment="Center"
346
                                                                            VerticalAlignment="Center"
347
                                                                            Foreground="#3d3d3d"
348
                                                                            Text="{Binding RevNo}" />
349 6a19b48d taeseongkim
                    -->
350 fb80055c KangIngu
                    <!--
351

352
                                            <Border Grid.Row="2" Grid.ColumnSpan="2">
353
                                                <Grid>
354
                                                    <Grid.ColumnDefinitions>
355
                                                        <ColumnDefinition />
356
                                                        <ColumnDefinition />
357
                                                        <ColumnDefinition />
358
                                                        <ColumnDefinition />
359
                                                    </Grid.ColumnDefinitions>
360

361
                                                    <TextBlock Margin="0,0,0,0"
362
                                                                                           VerticalAlignment="Center"
363
                                                                                           Foreground="#0094FF"
364
                                                                                           Text="REV" />
365
                                                    <TextBlock Grid.Column="2"
366
                                                                                           Margin="0,0,0,0"
367
                                                                                           VerticalAlignment="Center"
368
                                                                                           Foreground="#0094FF"
369
                                                                                           Text="Page" />
370
                                                    <TextBlock Grid.Column="1"
371
                                                                                           Margin="0,0,0,0"
372
                                                                                           HorizontalAlignment="Left"
373
                                                                                           VerticalAlignment="Center"
374
                                                                                           Foreground="#3d3d3d"
375
                                                                                           Text="{Binding REVISION}" />
376
                                                    <TextBlock Grid.Column="3"
377
                                                                                           Margin="0,0,0,0"
378
                                                                                           HorizontalAlignment="Left"
379
                                                                                           VerticalAlignment="Center"
380
                                                                                           Foreground="#3d3d3d"
381
                                                                                           Text="{Binding PAGE_NO}" />
382
                                                </Grid>
383
                                            </Border>
384
                                        </Grid>
385
                                    </Border>
386
                                </Grid>
387
                            </Border>
388
                        </Grid>-->
389
                </DataTemplate>
390
            </telerik:RadListBox.ItemTemplate>
391
392
        </telerik:RadListBox>
393
    </Grid>
394
</UserControl>
클립보드 이미지 추가 (최대 크기: 500 MB)