프로젝트

일반

사용자정보

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

markus / KCOM / Controls / PrintControl.xaml @ f1d6841f

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

1 2b1f30fe taeseongkim
<UserControl
2
    x:Class="KCOM.Control.PrintControl"
3 787a4489 KangIngu
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
4
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
5 2b1f30fe taeseongkim
    xmlns:converter="clr-namespace:KCOM.Common.Converter"
6 787a4489 KangIngu
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
7
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
8
    xmlns:telInput="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input"
9
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
10
    xmlns:telerikGrid="clr-namespace:Telerik.Windows.Controls.GridView;assembly=Telerik.Windows.Controls.GridView"
11 2b1f30fe taeseongkim
    xmlns:wrappanel="clr-namespace:KCOM.WrapPanel"
12
    d:DesignHeight="550"
13
    d:DesignWidth="650"
14
    mc:Ignorable="d">
15
16 787a4489 KangIngu
    <UserControl.Resources>
17 86bff326 taeseongkim
        <converter:BoolToVisibleConverter x:Key="BoolToVisibleConverter" />
18 2b1f30fe taeseongkim
        <Style x:Key="GridViewCellCenterStyle" TargetType="telerik:GridViewCell">
19
            <Setter Property="HorizontalAlignment" Value="Center" />
20 787a4489 KangIngu
        </Style>
21 2b1f30fe taeseongkim
        <!--  좌측 썸네일 스크롤 스타일  -->
22 787a4489 KangIngu
        <Style x:Key="CustomThumbStyle" TargetType="Thumb">
23
            <Setter Property="Template">
24
                <Setter.Value>
25
                    <ControlTemplate TargetType="Thumb">
26 2b1f30fe taeseongkim
                        <Rectangle
27
                            Width="10"
28
                            Height="20"
29
                            Fill="#FF45BAFF" />
30 787a4489 KangIngu
                        <!--<Rectangle Width="10" Height="20" Fill="#FFFF0000"/>-->
31
                    </ControlTemplate>
32
                </Setter.Value>
33
            </Setter>
34
        </Style>
35 2b1f30fe taeseongkim
        <!--  강인구  -->
36 787a4489 KangIngu
37
    </UserControl.Resources>
38
    <Grid x:Name="LayoutRoot" Background="White">
39
        <Grid.ColumnDefinitions>
40 2b1f30fe taeseongkim
            <ColumnDefinition Width="4*" />
41
            <ColumnDefinition Width="6*" />
42 787a4489 KangIngu
        </Grid.ColumnDefinitions>
43
        <Grid.RowDefinitions>
44 2b1f30fe taeseongkim
            <RowDefinition Height="Auto" />
45
            <RowDefinition Height="8*" />
46 787a4489 KangIngu
        </Grid.RowDefinitions>
47
48 2b1f30fe taeseongkim
        <Border
49
            Grid.Row="0"
50
            Grid.ColumnSpan="2"
51
            BorderBrush="#232323"
52
            BorderThickness="0,0,0,0.5">
53
            <!--  오른쪽 상단  -->
54
            <StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
55
                <StackPanel Margin="3" Orientation="Horizontal">
56
                    <TextBlock
57
                        Margin="3"
58
                        VerticalAlignment="Center"
59
                        Text="Slip" />
60
                    <TextBlock
61
                        Margin="3"
62
                        VerticalAlignment="Center"
63
                        FontWeight="ExtraBold"
64
                        Foreground="#007ACC"
65
                        Text="{Binding vpSlip}" />
66 787a4489 KangIngu
                </StackPanel>
67 2b1f30fe taeseongkim
                <StackPanel Margin="3" Orientation="Horizontal">
68
                    <TextBlock
69
                        Margin="3"
70
                        VerticalAlignment="Center"
71
                        Text="VP" />
72
                    <TextBlock
73
                        Margin="3"
74
                        VerticalAlignment="Center"
75
                        FontWeight="ExtraBold"
76
                        Foreground="#007ACC"
77
                        Text="{Binding vpTitle}" />
78 787a4489 KangIngu
                </StackPanel>
79 2b1f30fe taeseongkim
                <StackPanel Margin="3" Orientation="Horizontal">
80
                    <TextBlock
81
                        Margin="3"
82
                        VerticalAlignment="Center"
83
                        Text="Pages" />
84
                    <TextBlock
85
                        Margin="3"
86
                        VerticalAlignment="Center"
87
                        FontWeight="ExtraBold"
88
                        Foreground="#007ACC"
89
                        Text="{Binding PagesCount}" />
90 787a4489 KangIngu
                </StackPanel>
91
            </StackPanel>
92
        </Border>
93
94 2b1f30fe taeseongkim
        <Border
95
            Grid.Row="1"
96
            Grid.Column="0"
97
            BorderBrush="#232323"
98
            BorderThickness="0,0,0,0">
99
            <telerik:GroupBox
100
                Margin="3"
101
                telerik:StyleManager.Theme="Office2016"
102
                Header="Preview : Composite">
103 787a4489 KangIngu
                <Grid>
104
                    <Grid.RowDefinitions>
105 2b1f30fe taeseongkim
                        <RowDefinition Height="30" />
106
                        <RowDefinition Height="*" />
107
                        <RowDefinition Height="30" />
108
                        <RowDefinition Height="50" />
109 787a4489 KangIngu
                    </Grid.RowDefinitions>
110
                    <!--<Border Grid.Row="1" Background="#5F5F5F" MinWidth="200">-->
111 2b1f30fe taeseongkim
                    <Border
112
                        Grid.Row="1"
113
                        MinWidth="200"
114
                        Background="#5F5F5F">
115
                        <!--  잠시 제외 뷰어 부분  -->
116 53deabaf taeseongkim
                        <Viewbox x:Name="PrintView">
117 787a4489 KangIngu
                            <!--<Canvas x:Name="printCanvas" Background="{Binding Source={x:Static local:DataModel.Instance}, Path=BackgroundImage, Mode=OneWay}">-->
118
                            <!--<Canvas x:Name="printCanvas" Background="{Binding Path=Back_Image}">-->
119 2b1f30fe taeseongkim
                            <Canvas x:Name="printCanvas" />
120 787a4489 KangIngu
                        </Viewbox>
121
                    </Border>
122 2b1f30fe taeseongkim
                    <telerik:RadBusyIndicator
123
                        Name="indicator"
124
                        Grid.Row="1"
125
                        telerik:StyleManager.Theme="Office2016"
126
                        IsIndeterminate="True" />
127 787a4489 KangIngu
                    <Border Grid.Row="3">
128
                        <Grid>
129
                            <Grid.ColumnDefinitions>
130 2b1f30fe taeseongkim
                                <ColumnDefinition Width="6*" />
131
                                <ColumnDefinition Width="4*" />
132 787a4489 KangIngu
                            </Grid.ColumnDefinitions>
133 2b1f30fe taeseongkim
                            <telerik:RadSlider
134
                                x:Name="sliderPages"
135
                                Margin="5"
136
                                HorizontalAlignment="Stretch"
137
                                VerticalAlignment="Center"
138
                                telerik:StyleManager.Theme="Office2016"
139
                                Cursor="Hand"
140
                                DragCompleted="sliderPages_DragCompleted"
141
                                DragStarted="sliderPages_DragStarted"
142
                                HandlesVisibility="Visible"
143
                                IsMoveToPointEnabled="True"
144
                                IsSnapToTickEnabled="True"
145
                                Maximum="{Binding Path=PagesCount}"
146
                                MiddleThumbClickMode="None"
147
                                Minimum="1"
148
                                SmallChange="1"
149
                                ThumbStyle="{StaticResource CustomThumbStyle}"
150
                                TickFrequency="1"
151
                                ValueChanged="sliderPages_ValueChanged"
152
                                Value="{Binding Path=CurrentValue}" />
153
                            <TextBlock
154
                                Grid.Column="1"
155
                                Margin="4"
156
                                VerticalAlignment="Center"
157
                                Text="{Binding Value, StringFormat='Page No:{0}', ElementName=sliderPages}" />
158 787a4489 KangIngu
                        </Grid>
159
                    </Border>
160
161
                    <Border Grid.Row="2">
162
                        <!--<StackPanel Orientation="Horizontal" HorizontalAlignment="Right">-->
163
                        <Grid>
164
                            <Grid.ColumnDefinitions>
165 2b1f30fe taeseongkim
                                <ColumnDefinition Width="6*" />
166
                                <ColumnDefinition Width="4*" />
167 787a4489 KangIngu
                            </Grid.ColumnDefinitions>
168
169 2b1f30fe taeseongkim
                            <ProgressBar
170
                                Name="ProgressState"
171
                                Margin="3"
172
                                telerik:StyleManager.Theme="Office2016" />
173 787a4489 KangIngu
                        </Grid>
174
                    </Border>
175 2b1f30fe taeseongkim
                    <TextBlock
176
                        x:Name="testMsg"
177
                        Grid.Row="1"
178
                        Height="23"
179
                        Margin="100,164,0,0"
180
                        HorizontalAlignment="Left"
181
                        VerticalAlignment="Top"
182
                        Foreground="Red" />
183 787a4489 KangIngu
                </Grid>
184
            </telerik:GroupBox>
185
        </Border>
186
187 2b1f30fe taeseongkim
        <Border
188
            Grid.Row="1"
189
            Grid.Column="1"
190
            BorderBrush="#232323"
191
            BorderThickness="0,0,0,0">
192 787a4489 KangIngu
            <Grid>
193
                <Grid.RowDefinitions>
194 2b1f30fe taeseongkim
                    <RowDefinition Height="100" />
195
                    <RowDefinition Height="60" />
196
                    <RowDefinition Height="80" />
197
                    <RowDefinition Height="80" />
198
                    <RowDefinition Height="7*" />
199 787a4489 KangIngu
                </Grid.RowDefinitions>
200
201 2b1f30fe taeseongkim
                <telerik:GroupBox
202
                    Margin="3"
203
                    telerik:StyleManager.Theme="Office2016"
204
                    Header="Print Option">
205 787a4489 KangIngu
                    <Grid>
206
                        <Grid.RowDefinitions>
207
                            <RowDefinition Height="Auto" />
208 2b1f30fe taeseongkim
                            <RowDefinition Height="Auto" MinHeight="50" />
209 787a4489 KangIngu
                        </Grid.RowDefinitions>
210
                        <!--<StackPanel HorizontalAlignment="Stretch" Orientation="Horizontal">
211
                            <telerik:RadRadioButton Content="Current page" telerik:StyleManager.Theme="Office2016" Margin="2"/>
212
                            <telerik:RadRadioButton Content="Range of print" telerik:StyleManager.Theme="Office2016" Margin="2"/>
213
                            <telerik:RadRadioButton Content="User defined" telerik:StyleManager.Theme="Office2016" Margin="2"/>
214
                            <telerik:RadRadioButton Content="All pages" telerik:StyleManager.Theme="Office2016" Margin="2"/>
215
                        </StackPanel>-->
216 2b1f30fe taeseongkim
                        <StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
217
                            <CheckBox
218
                                x:Name="chkOnlyRedColor"
219
                                Grid.Row="0"
220
                                Margin="0,5,4,0"
221
                                HorizontalAlignment="Right"
222
                                VerticalAlignment="Center"
223
                                telerik:StyleManager.Theme="Office2016"
224
                                Checked="chkOnlyRedColor_Checked"
225
                                FontSize="10"
226
                                FontWeight="Bold"
227
                                Foreground="Black"
228
                                IsChecked="True"
229
                                Unchecked="chkOnlyRedColor_Checked">
230
                                <CheckBox.Content>
231
                                    <TextBlock
232
                                        Margin="0,-2,0,0"
233
                                        FontSize="12"
234
                                        Text="Only Red Color" />
235
                                </CheckBox.Content>
236
                            </CheckBox>
237
                            <CheckBox
238
                                x:Name="chkOnlyMarkup"
239
                                Grid.Row="0"
240
                                Margin="0,5,4,0"
241
                                HorizontalAlignment="Right"
242
                                VerticalAlignment="Center"
243
                                telerik:StyleManager.Theme="Office2016"
244
                                Checked="chkOnlyMarkup_Checked"
245
                                FontSize="10"
246
                                FontWeight="Bold"
247
                                Foreground="Black"
248
                                IsChecked="True"
249
                                Unchecked="chkOnlyMarkup_Checked">
250 787a4489 KangIngu
                                <CheckBox.Content>
251 2b1f30fe taeseongkim
                                    <TextBlock
252
                                        Margin="0,-2,0,0"
253
                                        FontSize="12"
254
                                        Text="Commented Page only" />
255 787a4489 KangIngu
                                </CheckBox.Content>
256
                            </CheckBox>
257
                            <!--<CheckBox IsChecked="True" HorizontalAlignment="Right"
258 2b1f30fe taeseongkim
                                          VerticalAlignment="Center"  FontSize="10" FontWeight="Bold" telerik:StyleManager.Theme="Office2016"
259 787a4489 KangIngu
                                          Margin="0,5,4,0" Foreground="Black" Grid.Row="0">
260
                                <CheckBox.Content>
261
                                    <TextBlock Text="User Color" Margin="0,-2,0,0" FontSize="12"/>
262
                                </CheckBox.Content>
263
                            </CheckBox>-->
264
                        </StackPanel>
265
266 2b1f30fe taeseongkim
                        <StackPanel Grid.Row="1" Orientation="Horizontal">
267
                            <telerik:RadRadioButton
268
                                Name="btCurrentPages"
269
                                Grid.Row="1"
270
                                Margin="5"
271
                                telerik:StyleManager.Theme="Office2016"
272
                                Checked="PageSelect_Checked"
273
                                Content="Current"
274
                                IsChecked="True"
275
                                Tag="Current" />
276
                            <telerik:RadRadioButton
277
                                Name="btRagePages"
278
                                Grid.Row="1"
279
                                Grid.Column="1"
280
                                Margin="5"
281
                                telerik:StyleManager.Theme="Office2016"
282
                                Checked="PageSelect_Checked"
283
                                Content="Range of Print"
284
                                Tag="RangePrint" />
285
                            <telerik:RadRadioButton
286
                                Grid.Row="1"
287
                                Grid.Column="2"
288
                                Margin="5"
289
                                telerik:StyleManager.Theme="Office2016"
290
                                Checked="PageSelect_Checked"
291
                                Content="User defined"
292
                                Tag="UserDefined" />
293
                            <telerik:RadRadioButton
294
                                Grid.Row="1"
295
                                Grid.Column="3"
296
                                Margin="5"
297
                                telerik:StyleManager.Theme="Office2016"
298
                                Checked="PageSelect_Checked"
299
                                Content="All Pages"
300
                                Tag="AllPrint" />
301 787a4489 KangIngu
                        </StackPanel>
302
303
                    </Grid>
304
                </telerik:GroupBox>
305 2b1f30fe taeseongkim
                <!--  프린트 범위  -->
306
                <telerik:GroupBox
307
                    x:Name="Selected_Print"
308
                    Grid.Row="1"
309
                    Margin="3"
310
                    telerik:StyleManager.Theme="Office2016"
311
                    Header="Selected Print">
312 787a4489 KangIngu
                    <Grid>
313 2b1f30fe taeseongkim
                        <telerik:RadComboBox
314
                            x:Name="cbPrint"
315
                            Width="300"
316
                            HorizontalAlignment="Left"
317
                            telerik:StyleManager.Theme="Office2016" />
318 787a4489 KangIngu
                    </Grid>
319
                </telerik:GroupBox>
320
321 2b1f30fe taeseongkim
                <telerik:GroupBox
322
                    Grid.Row="2"
323
                    Margin="3"
324
                    telerik:StyleManager.Theme="Office2016"
325
                    Header="Print Range">
326 787a4489 KangIngu
                    <Grid x:Name="rangeView">
327 2b1f30fe taeseongkim
                        <!--  Current Grid Start  -->
328
                        <Grid
329
                            Name="GridCurrentPage"
330
                            Margin="0,0,0,0"
331
                            HorizontalAlignment="Center"
332
                            VerticalAlignment="Center"
333
                            Visibility="Visible">
334 787a4489 KangIngu
                            <StackPanel>
335 2b1f30fe taeseongkim
                                <TextBlock Text="Print out the page currently displayed on the screen !" />
336
                                <StackPanel
337
                                    Margin="5"
338
                                    HorizontalAlignment="Center"
339
                                    Orientation="Horizontal">
340
                                    <TextBlock Text="Current Page : " />
341
                                    <TextBlock
342
                                        FontWeight="Bold"
343
                                        Foreground="#FF45BAFF"
344
                                        Text="{Binding Value, StringFormat=' {0}', ElementName=sliderPages}" />
345 787a4489 KangIngu
                                </StackPanel>
346
                            </StackPanel>
347
                        </Grid>
348 2b1f30fe taeseongkim
                        <!--  Current Grid End  -->
349
                        <!--  Range of Print Start  -->
350
                        <Grid
351
                            Name="GridRangePages"
352
                            Margin="0,0,0,0"
353
                            HorizontalAlignment="Center"
354
                            VerticalAlignment="Center"
355
                            Visibility="Collapsed">
356 787a4489 KangIngu
                            <Grid.ColumnDefinitions>
357 2b1f30fe taeseongkim
                                <ColumnDefinition Width="Auto" />
358
                                <ColumnDefinition />
359
                                <ColumnDefinition />
360
                                <ColumnDefinition />
361 787a4489 KangIngu
                            </Grid.ColumnDefinitions>
362 2b1f30fe taeseongkim
                            <TextBlock VerticalAlignment="Center" Text="Select Page Number : " />
363
                            <telInput:RadNumericUpDown
364
                                Name="stPageNo"
365
                                Grid.Column="1"
366
                                telerik:StyleManager.Theme="Office2016"
367
                                Minimum="1"
368
                                NumberDecimalDigits="0"
369
                                ValueChanged="PageNo_ValueChanged" />
370
                            <TextBlock
371
                                Grid.Column="2"
372
                                VerticalAlignment="Center"
373
                                Text="~" />
374
                            <telInput:RadNumericUpDown
375
                                Name="edPageNo"
376
                                Grid.Column="3"
377
                                telerik:StyleManager.Theme="Office2016"
378
                                Minimum="1"
379
                                NumberDecimalDigits="0"
380
                                ValueChanged="PageNo_ValueChanged" />
381 787a4489 KangIngu
                        </Grid>
382 2b1f30fe taeseongkim
                        <!--  Range of Print End  -->
383
                        <!--  User defined Start  -->
384
                        <Grid
385
                            Name="GridDefinePages"
386
                            Margin="0,0,0,0"
387
                            HorizontalAlignment="Stretch"
388
                            VerticalAlignment="Center"
389
                            Visibility="Collapsed">
390 787a4489 KangIngu
                            <Border>
391
                                <Grid>
392
                                    <Grid.ColumnDefinitions>
393 2b1f30fe taeseongkim
                                        <ColumnDefinition Width="Auto" />
394
                                        <ColumnDefinition Width="3*" />
395
                                        <ColumnDefinition Width="2*" />
396 787a4489 KangIngu
                                    </Grid.ColumnDefinitions>
397
                                    <Grid.RowDefinitions>
398 2b1f30fe taeseongkim
                                        <RowDefinition Height="Auto" />
399
                                        <RowDefinition Height="Auto" />
400 787a4489 KangIngu
                                    </Grid.RowDefinitions>
401 2b1f30fe taeseongkim
                                    <TextBlock
402
                                        Margin="10,0"
403
                                        VerticalAlignment="Center"
404
                                        Text="Input Page Number" />
405
                                    <TextBox
406
                                        Name="txtDefinedPages"
407
                                        Grid.Column="1"
408
                                        Margin="2"
409
                                        Text="{Binding Path=DefinedPagesStrings, Mode=TwoWay, ValidatesOnExceptions=True, NotifyOnValidationError=True}"
410
                                        TextChanged="txtDefinedPages_TextChanged" />
411
                                    <telerik:RadButton
412
                                        x:Name="btnClearDefinedPages"
413
                                        Grid.Column="2"
414
                                        Margin="2"
415
                                        telerik:StyleManager.Theme="Office2016"
416
                                        Click="btnClearDefinedPages_Click"
417
                                        Content="Clear" />
418
                                    <TextBlock
419
                                        Grid.Row="1"
420
                                        Grid.ColumnSpan="3"
421
                                        Margin="5,5"
422
                                        HorizontalAlignment="Center">
423 787a4489 KangIngu
                                        <TextBlock.Inlines>
424
                                            <Run>Enter page numbers and / or page ranges</Run>
425 2b1f30fe taeseongkim
                                            <LineBreak />
426 787a4489 KangIngu
                                            <Run>separated by commas</Run>
427
                                            <Underline>
428 2b1f30fe taeseongkim
                                                <Run FontSize="11" Foreground="Red">[For example, 1,3,5-12]</Run>
429 787a4489 KangIngu
                                            </Underline>
430
                                        </TextBlock.Inlines>
431
                                    </TextBlock>
432
                                </Grid>
433
                            </Border>
434
                        </Grid>
435 2b1f30fe taeseongkim
                        <!--  User defined  Start  -->
436
                        <!--  All Pages Start  -->
437
                        <Grid
438
                            Name="GridAllPages"
439
                            Grid.Row="2"
440
                            Margin="0,0,0,0"
441
                            HorizontalAlignment="Center"
442
                            VerticalAlignment="Center"
443
                            Visibility="Collapsed">
444 787a4489 KangIngu
                            <StackPanel>
445 2b1f30fe taeseongkim
                                <TextBlock
446
                                    Text="Indicates all of the pages in the current document are to be printed."
447
                                    TextAlignment="Center"
448
                                    TextWrapping="Wrap" />
449
                                <StackPanel
450
                                    Margin="3"
451
                                    HorizontalAlignment="Center"
452
                                    Orientation="Horizontal">
453
                                    <TextBlock Foreground="#FF006AC1" Text="Document Pages : " />
454
                                    <TextBlock
455
                                        FontWeight="Bold"
456
                                        Foreground="#FF45BAFF"
457
                                        Text="{Binding Path=PagesCount}" />
458 787a4489 KangIngu
                                </StackPanel>
459
                            </StackPanel>
460
                        </Grid>
461 2b1f30fe taeseongkim
                        <!--  All Pages End  -->
462 787a4489 KangIngu
                    </Grid>
463
                </telerik:GroupBox>
464 2b1f30fe taeseongkim
                <!--  프린트 범위  -->
465 787a4489 KangIngu
466 2b1f30fe taeseongkim
                <telerik:GroupBox
467
                    Grid.Row="3"
468
                    Margin="3"
469
                    telerik:StyleManager.Theme="Office2016"
470
                    Header="Commented Pages(Click To Select Page)">
471
                    <ListBox
472
                        x:Name="CommentPageList"
473
                        telerik:StyleManager.Theme="Office2016"
474
                        Foreground="Black"
475
                        ScrollViewer.HorizontalScrollBarVisibility="Auto"
476
                        SelectionChanged="CommentPageList_SelectionChanged">
477 787a4489 KangIngu
                        <ListBox.ItemsPanel>
478
                            <ItemsPanelTemplate>
479 2b1f30fe taeseongkim
                                <wrappanel:WrapPanel VerticalAlignment="Center" Orientation="Horizontal" />
480 787a4489 KangIngu
                            </ItemsPanelTemplate>
481
                        </ListBox.ItemsPanel>
482
                        <ListBox.ItemTemplate>
483
                            <DataTemplate>
484 2b1f30fe taeseongkim
                                <Border
485
                                    Width="20"
486
                                    Height="20"
487
                                    Background="#FF45BA44"
488
                                    BorderBrush="#232323"
489
                                    BorderThickness="0.5">
490
                                    <TextBlock
491
                                        Margin="2"
492
                                        HorizontalAlignment="Center"
493
                                        VerticalAlignment="Center"
494
                                        Foreground="White"
495
                                        Text="{Binding PageNumber}" />
496 787a4489 KangIngu
                                </Border>
497
                            </DataTemplate>
498
                        </ListBox.ItemTemplate>
499
                    </ListBox>
500
                </telerik:GroupBox>
501
502
                <Border Grid.Row="4" Margin="3">
503
                    <Grid>
504
                        <Grid.RowDefinitions>
505 2b1f30fe taeseongkim
                            <RowDefinition Height="8.5*" />
506
                            <RowDefinition Height="1.5*" />
507 787a4489 KangIngu
                        </Grid.RowDefinitions>
508 2b1f30fe taeseongkim
                        <telerik:GroupBox
509
                            Grid.Row="0"
510
                            Margin="0"
511
                            telerik:StyleManager.Theme="Office2016"
512
                            Header="Commented User list">
513
                            <telerik:RadGridView
514
                                x:Name="gridViewMarkup"
515
                                Grid.Row="0"
516
                                Margin="2"
517
                                telerik:StyleManager.Theme="Office2016"
518
                                AutoGenerateColumns="False"
519
                                Background="White"
520
                                BorderBrush="#232323"
521
                                BorderThickness="0.5"
522
                                CanUserDeleteRows="True"
523
                                CanUserInsertRows="False"
524
                                EditTriggers="TextInput"
525
                                IsBusy="False"
526
                                IsFilteringAllowed="False"
527
                                RowIndicatorVisibility="Collapsed"
528
                                ScrollViewer.VerticalScrollBarVisibility="Auto"
529
                                SelectionChanged="gridViewMarkup_SelectionChanged"
530
                                SelectionMode="Multiple"
531
                                SelectionUnit="FullRow"
532
                                ShowGroupFooters="False"
533
                                ShowGroupPanel="False">
534 787a4489 KangIngu
                                <telerik:RadGridView.Columns>
535
                                    <telerik:GridViewSelectColumn />
536 2b1f30fe taeseongkim
                                    <telerik:GridViewDataColumn Header="Color" IsReadOnly="True">
537 787a4489 KangIngu
                                        <telerik:GridViewDataColumn.CellTemplate>
538
                                            <DataTemplate>
539
                                                <Grid Background="AliceBlue">
540 3abe8d4e taeseongkim
                                                    <!--<Rectangle Fill="{Binding DisplayColor, Converter={StaticResource StringToColorBrushConverter}}" />-->
541 787a4489 KangIngu
                                                    <Rectangle Fill="{Binding DisplayColor}" />
542 2b1f30fe taeseongkim
                                                    <TextBlock Foreground="#00000000" Text="Color" />
543 787a4489 KangIngu
                                                </Grid>
544
                                            </DataTemplate>
545
                                        </telerik:GridViewDataColumn.CellTemplate>
546
                                    </telerik:GridViewDataColumn>
547
548 2b1f30fe taeseongkim
                                    <telerik:GridViewDataColumn
549
                                        Width="1*"
550
                                        DataMemberBinding="{Binding Depatment}"
551
                                        Header="Department"
552
                                        IsReadOnly="True" />
553
                                    <telerik:GridViewDataColumn
554
                                        Width="1*"
555
                                        DataMemberBinding="{Binding UserName}"
556
                                        Header="User Name"
557
                                        IsReadOnly="True" />
558
                                    <telerik:GridViewDataColumn
559
                                        Width="0.5*"
560
                                        DataMemberBinding="{Binding PageCount}"
561
                                        Header="Pages"
562
                                        IsReadOnly="True" />
563
                                    <telerik:GridViewDataColumn
564
                                        Width="1*"
565
                                        DataMemberBinding="{Binding Description}"
566
                                        Header="Descriptions"
567
                                        IsReadOnly="True" />
568 787a4489 KangIngu
569
                                </telerik:RadGridView.Columns>
570
                            </telerik:RadGridView>
571
                        </telerik:GroupBox>
572
                        <Border Grid.Row="1">
573
                            <Grid>
574
                                <Grid.ColumnDefinitions>
575 2b1f30fe taeseongkim
                                    <ColumnDefinition />
576
                                    <ColumnDefinition />
577
                                    <ColumnDefinition />
578
                                    <ColumnDefinition />
579
                                    <!--  강인구 추가(Export)  -->
580
                                    <ColumnDefinition />
581 787a4489 KangIngu
582
                                </Grid.ColumnDefinitions>
583 2b1f30fe taeseongkim
                                <Border
584
                                    Grid.Row="4"
585
                                    Grid.Column="0"
586
                                    Grid.ColumnSpan="2"
587
                                    Margin="0">
588 787a4489 KangIngu
                                    <Grid>
589
                                        <Grid.ColumnDefinitions>
590 2b1f30fe taeseongkim
                                            <ColumnDefinition Width="7*" />
591
                                            <ColumnDefinition Width="3*" />
592 787a4489 KangIngu
                                        </Grid.ColumnDefinitions>
593
                                    </Grid>
594
                                </Border>
595 2b1f30fe taeseongkim
                                <telerik:RadButton
596
                                    x:Name="btnWholePrint"
597
                                    Grid.Row="4"
598
                                    Grid.Column="2"
599
                                    Margin="0"
600
                                    telerik:StyleManager.Theme="Office2016"
601
                                    Background="#FF45BAFF"
602
                                    Click="PrintMethod"
603
                                    Content="Print"
604
                                    Foreground="White" />
605
                                <!--  강인구 추가(Export)  -->
606
                                <telerik:RadButton
607
                                    x:Name="btnWholeExport"
608
                                    Grid.Row="4"
609
                                    Grid.Column="2"
610
                                    Margin="0"
611
                                    telerik:StyleManager.Theme="Office2016"
612
                                    Background="#FF45BAFF"
613
                                    Click="ExportMethod"
614
                                    Content="Export"
615
                                    Foreground="White"
616
                                    Visibility="Collapsed" />
617 787a4489 KangIngu
618 2b1f30fe taeseongkim
                                <Border
619
                                    Grid.Row="4"
620
                                    Grid.Column="0"
621
                                    Grid.ColumnSpan="2"
622
                                    Margin="0">
623 787a4489 KangIngu
                                    <Grid>
624
                                        <Grid.RowDefinitions>
625 2b1f30fe taeseongkim
                                            <RowDefinition />
626
                                            <RowDefinition />
627 787a4489 KangIngu
                                        </Grid.RowDefinitions>
628
                                        <Grid.ColumnDefinitions>
629 2b1f30fe taeseongkim
                                            <ColumnDefinition Width="7*" />
630
                                            <ColumnDefinition Width="3*" />
631 787a4489 KangIngu
                                        </Grid.ColumnDefinitions>
632
                                    </Grid>
633
                                </Border>
634
                            </Grid>
635
                        </Border>
636
                    </Grid>
637
                </Border>
638
            </Grid>
639
        </Border>
640 2b1f30fe taeseongkim
        <telerik:RadBusyIndicator
641
            x:Name="printIndy"
642
            Grid.RowSpan="3"
643
            Grid.ColumnSpan="2"
644
            VerticalAlignment="Stretch"
645
            telerik:StyleManager.Theme="Office2016"
646
            BorderThickness="0"
647
            BusyContent="Printing. . ."
648
            DisplayAfter="0:0:0.3"
649
            IsBusy="False"
650
            Visibility="{Binding IsBusy, Converter={StaticResource BoolToVisibleConverter}, RelativeSource={RelativeSource Self}}" />
651 787a4489 KangIngu
    </Grid>
652
</UserControl>
클립보드 이미지 추가 (최대 크기: 500 MB)