프로젝트

일반

사용자정보

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

markus / KCOM / Views / MainMenu.xaml @ dbddfdd0

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

1
<UserControl
2
    x:Class="KCOM.Views.MainMenu"
3
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
4
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
5
    xmlns:Angle="clr-namespace:MarkupToPDF.Controls.Angle;assembly=MarkupToPDF"
6
    xmlns:ZoomAndPan="clr-namespace:ZoomAndPan;assembly=ZoomAndPan"
7
    xmlns:common="clr-namespace:KCOM.Common"
8
    xmlns:controls="clr-namespace:KCOM.Controls"
9
    xmlns:converter="clr-namespace:KCOM.Common.Converter"
10
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
11
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
12
    xmlns:messanger="clr-namespace:KCOM.Messenger"
13
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
14
    xmlns:telerikGrid="clr-namespace:Telerik.Windows.Controls.GridView;assembly=Telerik.Windows.Controls.GridView"
15
    xmlns:toggle="clr-namespace:ToggleSwitch;assembly=ToggleSwitch"
16
    d:DesignHeight="768"
17
    d:DesignWidth="1200"
18
    IsTabStop="True"
19
    mc:Ignorable="d">
20
    <UserControl.Resources>
21
        <converter:ZeroToCollapsedConverter x:Key="ZeroToCollapsedConverter" />
22
        <Style x:Key="GridViewHeaderStyle" TargetType="{x:Type telerikGrid:GridViewHeaderCell}">
23
            <Setter Property="VerticalContentAlignment" Value="Center" />
24
            <Setter Property="HorizontalContentAlignment" Value="Center" />
25
            <Setter Property="BorderThickness" Value="0" />
26
            <Setter Property="Background">
27
                <Setter.Value>
28
                    <SolidColorBrush Opacity="0.5" Color="Black" />
29
                </Setter.Value>
30
            </Setter>
31
            <!--<Setter Property="Background" Value="Black"/>-->
32
            <Setter Property="BorderBrush" Value="White" />
33
            <Setter Property="Foreground" Value="White" />
34
            <Setter Property="telerik:StyleManager.Theme" Value="Office2013" />
35
            <!--<Setter Property="FontWeight" Value="Black"/>-->
36
        </Style>
37
        <Style x:Key="GridViewAlign" TargetType="{x:Type telerikGrid:GridViewCell}">
38
            <Setter Property="HorizontalContentAlignment" Value="Center" />
39
            <Setter Property="TextBlock.TextDecorations">
40
                <Setter.Value>
41
                    <TextDecorationCollection>
42
                        <TextDecoration Location="Underline" />
43
                        <TextDecoration Location="Overline" />
44
                        <TextDecoration PenThicknessUnit="FontRecommended">
45
                            <TextDecoration.Pen>
46
                                <Pen Thickness="1.0">
47
                                    <Pen.Brush>
48
                                        <LinearGradientBrush Opacity="0.5" StartPoint="0,0.5" EndPoint="1,0.5">
49
                                            <GradientStop Offset="0" Color="Yellow" />
50
                                            <GradientStop Offset="1" Color="Red" />
51
                                        </LinearGradientBrush>
52
                                    </Pen.Brush>
53
                                </Pen>
54
                            </TextDecoration.Pen>
55
                        </TextDecoration>
56
                    </TextDecorationCollection>
57
                </Setter.Value>
58
            </Setter>
59
        </Style>
60
        <converter:PDFVisibleConverter x:Key="PDFVisibleConverter" />
61
        <converter:ConsolidationBackgroudConverter x:Key="ConsolidationBackgroudConverter" />
62
        <converter:StringToColorBrushConverter x:Key="StringToColorBrushConverter" />
63
        <converter:StringToColorConverter x:Key="StringToColorConverter" />
64
        <converter:AvoidStringConverter x:Key="AvoidStringConverter" />
65
        <converter:TeamConsolidateStringConverter x:Key="TeamConsoliStringConverter" />
66
        <converter:ConsolidationStringConverter x:Key="ConsoliStringConverter" />
67
        <converter:BoolToVisibleConverter x:Key="BoolToVisibleConverter" />
68
        <converter:PreviewerVisibleConverter x:Key="previewerVisibleConverter" />
69
        <ControlTemplate x:Key="RadSplitContainerControlTemplate" TargetType="{x:Type telerik:RadSplitContainer}">
70
            <Grid>
71
                <Border
72
                    x:Name="border"
73
                    Padding="{TemplateBinding Padding}"
74
                    Background="{TemplateBinding Background}"
75
                    BorderBrush="{TemplateBinding BorderBrush}"
76
                    BorderThickness="{TemplateBinding BorderThickness}">
77
                    <ItemsPresenter />
78
                </Border>
79
                <telerik:RadGridResizer
80
                    x:Name="DockResizer"
81
                    HorizontalAlignment="Left"
82
                    VerticalAlignment="Stretch"
83
                    Cursor="SizeWE"
84
                    Focusable="False"
85
                    Placement="Left"
86
                    ShowsPreview="True"
87
                    Visibility="Collapsed" />
88
                <VisualStateManager.VisualStateGroups>
89
                    <VisualStateGroup x:Name="ResizerStates">
90
                        <VisualState x:Name="ResizerLeft">
91
                            <Storyboard>
92
                                <ObjectAnimationUsingKeyFrames
93
                                    Storyboard.TargetName="DockResizer"
94
                                    Storyboard.TargetProperty="Visibility"
95
                                    Duration="0">
96
                                    <DiscreteObjectKeyFrame KeyTime="0">
97
                                        <DiscreteObjectKeyFrame.Value>
98
                                            <Visibility>Visible</Visibility>
99
                                        </DiscreteObjectKeyFrame.Value>
100
                                    </DiscreteObjectKeyFrame>
101
                                </ObjectAnimationUsingKeyFrames>
102
                                <DoubleAnimation
103
                                    BeginTime="0"
104
                                    Storyboard.TargetName="DockResizer"
105
                                    Storyboard.TargetProperty="MinWidth"
106
                                    From="4"
107
                                    To="4" />
108
                                <ObjectAnimationUsingKeyFrames
109
                                    Storyboard.TargetName="border"
110
                                    Storyboard.TargetProperty="Margin"
111
                                    Duration="0">
112
                                    <DiscreteObjectKeyFrame KeyTime="0">
113
                                        <DiscreteObjectKeyFrame.Value>
114
                                            <Thickness>4,0,0,0</Thickness>
115
                                        </DiscreteObjectKeyFrame.Value>
116
                                    </DiscreteObjectKeyFrame>
117
                                </ObjectAnimationUsingKeyFrames>
118
                            </Storyboard>
119
                        </VisualState>
120
                        <VisualState x:Name="ResizerTop">
121
                            <Storyboard>
122
                                <ObjectAnimationUsingKeyFrames
123
                                    Storyboard.TargetName="DockResizer"
124
                                    Storyboard.TargetProperty="Visibility"
125
                                    Duration="0">
126
                                    <DiscreteObjectKeyFrame KeyTime="0">
127
                                        <DiscreteObjectKeyFrame.Value>
128
                                            <Visibility>Visible</Visibility>
129
                                        </DiscreteObjectKeyFrame.Value>
130
                                    </DiscreteObjectKeyFrame>
131
                                </ObjectAnimationUsingKeyFrames>
132
                                <ObjectAnimationUsingKeyFrames
133
                                    Storyboard.TargetName="DockResizer"
134
                                    Storyboard.TargetProperty="VerticalAlignment"
135
                                    Duration="0">
136
                                    <DiscreteObjectKeyFrame KeyTime="0">
137
                                        <DiscreteObjectKeyFrame.Value>
138
                                            <VerticalAlignment>Top</VerticalAlignment>
139
                                        </DiscreteObjectKeyFrame.Value>
140
                                    </DiscreteObjectKeyFrame>
141
                                </ObjectAnimationUsingKeyFrames>
142
                                <ObjectAnimationUsingKeyFrames
143
                                    Storyboard.TargetName="DockResizer"
144
                                    Storyboard.TargetProperty="HorizontalAlignment"
145
                                    Duration="0">
146
                                    <DiscreteObjectKeyFrame KeyTime="0">
147
                                        <DiscreteObjectKeyFrame.Value>
148
                                            <HorizontalAlignment>Stretch</HorizontalAlignment>
149
                                        </DiscreteObjectKeyFrame.Value>
150
                                    </DiscreteObjectKeyFrame>
151
                                </ObjectAnimationUsingKeyFrames>
152
                                <ObjectAnimationUsingKeyFrames
153
                                    Storyboard.TargetName="DockResizer"
154
                                    Storyboard.TargetProperty="Placement"
155
                                    Duration="0">
156
                                    <DiscreteObjectKeyFrame KeyTime="0">
157
                                        <DiscreteObjectKeyFrame.Value>
158
                                            <Dock>Top</Dock>
159
                                        </DiscreteObjectKeyFrame.Value>
160
                                    </DiscreteObjectKeyFrame>
161
                                </ObjectAnimationUsingKeyFrames>
162
                                <DoubleAnimation
163
                                    BeginTime="0"
164
                                    Storyboard.TargetName="DockResizer"
165
                                    Storyboard.TargetProperty="MinHeight"
166
                                    From="4"
167
                                    To="4" />
168
                                <ObjectAnimationUsingKeyFrames
169
                                    Storyboard.TargetName="border"
170
                                    Storyboard.TargetProperty="Margin"
171
                                    Duration="0">
172
                                    <DiscreteObjectKeyFrame KeyTime="0">
173
                                        <DiscreteObjectKeyFrame.Value>
174
                                            <Thickness>0,4,0,0</Thickness>
175
                                        </DiscreteObjectKeyFrame.Value>
176
                                    </DiscreteObjectKeyFrame>
177
                                </ObjectAnimationUsingKeyFrames>
178
                            </Storyboard>
179
                        </VisualState>
180
                        <VisualState x:Name="ResizerRight">
181
                            <Storyboard>
182
                                <ObjectAnimationUsingKeyFrames
183
                                    Storyboard.TargetName="DockResizer"
184
                                    Storyboard.TargetProperty="Visibility"
185
                                    Duration="0">
186
                                    <DiscreteObjectKeyFrame KeyTime="0">
187
                                        <DiscreteObjectKeyFrame.Value>
188
                                            <Visibility>Visible</Visibility>
189
                                        </DiscreteObjectKeyFrame.Value>
190
                                    </DiscreteObjectKeyFrame>
191
                                </ObjectAnimationUsingKeyFrames>
192
                                <DoubleAnimation
193
                                    BeginTime="0"
194
                                    Storyboard.TargetName="DockResizer"
195
                                    Storyboard.TargetProperty="MinWidth"
196
                                    From="4"
197
                                    To="4" />
198
                                <ObjectAnimationUsingKeyFrames
199
                                    Storyboard.TargetName="border"
200
                                    Storyboard.TargetProperty="Margin"
201
                                    Duration="0">
202
                                    <DiscreteObjectKeyFrame KeyTime="0">
203
                                        <DiscreteObjectKeyFrame.Value>
204
                                            <Thickness>0,0,4,0</Thickness>
205
                                        </DiscreteObjectKeyFrame.Value>
206
                                    </DiscreteObjectKeyFrame>
207
                                </ObjectAnimationUsingKeyFrames>
208
                                <ObjectAnimationUsingKeyFrames
209
                                    Storyboard.TargetName="DockResizer"
210
                                    Storyboard.TargetProperty="HorizontalAlignment"
211
                                    Duration="0">
212
                                    <DiscreteObjectKeyFrame KeyTime="0">
213
                                        <DiscreteObjectKeyFrame.Value>
214
                                            <HorizontalAlignment>Right</HorizontalAlignment>
215
                                        </DiscreteObjectKeyFrame.Value>
216
                                    </DiscreteObjectKeyFrame>
217
                                </ObjectAnimationUsingKeyFrames>
218
                                <ObjectAnimationUsingKeyFrames
219
                                    Storyboard.TargetName="DockResizer"
220
                                    Storyboard.TargetProperty="Placement"
221
                                    Duration="0">
222
                                    <DiscreteObjectKeyFrame KeyTime="0">
223
                                        <DiscreteObjectKeyFrame.Value>
224
                                            <Dock>Right</Dock>
225
                                        </DiscreteObjectKeyFrame.Value>
226
                                    </DiscreteObjectKeyFrame>
227
                                </ObjectAnimationUsingKeyFrames>
228
                            </Storyboard>
229
                        </VisualState>
230
                        <VisualState x:Name="ResizerBottom">
231
                            <Storyboard>
232
                                <ObjectAnimationUsingKeyFrames
233
                                    Storyboard.TargetName="DockResizer"
234
                                    Storyboard.TargetProperty="Visibility"
235
                                    Duration="0">
236
                                    <DiscreteObjectKeyFrame KeyTime="0">
237
                                        <DiscreteObjectKeyFrame.Value>
238
                                            <Visibility>Visible</Visibility>
239
                                        </DiscreteObjectKeyFrame.Value>
240
                                    </DiscreteObjectKeyFrame>
241
                                </ObjectAnimationUsingKeyFrames>
242
                                <ObjectAnimationUsingKeyFrames
243
                                    Storyboard.TargetName="DockResizer"
244
                                    Storyboard.TargetProperty="VerticalAlignment"
245
                                    Duration="0">
246
                                    <DiscreteObjectKeyFrame KeyTime="0">
247
                                        <DiscreteObjectKeyFrame.Value>
248
                                            <VerticalAlignment>Bottom</VerticalAlignment>
249
                                        </DiscreteObjectKeyFrame.Value>
250
                                    </DiscreteObjectKeyFrame>
251
                                </ObjectAnimationUsingKeyFrames>
252
                                <ObjectAnimationUsingKeyFrames
253
                                    Storyboard.TargetName="DockResizer"
254
                                    Storyboard.TargetProperty="HorizontalAlignment"
255
                                    Duration="0">
256
                                    <DiscreteObjectKeyFrame KeyTime="0">
257
                                        <DiscreteObjectKeyFrame.Value>
258
                                            <HorizontalAlignment>Stretch</HorizontalAlignment>
259
                                        </DiscreteObjectKeyFrame.Value>
260
                                    </DiscreteObjectKeyFrame>
261
                                </ObjectAnimationUsingKeyFrames>
262
                                <ObjectAnimationUsingKeyFrames
263
                                    Storyboard.TargetName="DockResizer"
264
                                    Storyboard.TargetProperty="Placement"
265
                                    Duration="0">
266
                                    <DiscreteObjectKeyFrame KeyTime="0">
267
                                        <DiscreteObjectKeyFrame.Value>
268
                                            <Dock>Bottom</Dock>
269
                                        </DiscreteObjectKeyFrame.Value>
270
                                    </DiscreteObjectKeyFrame>
271
                                </ObjectAnimationUsingKeyFrames>
272
                                <DoubleAnimation
273
                                    BeginTime="0"
274
                                    Storyboard.TargetName="DockResizer"
275
                                    Storyboard.TargetProperty="MinHeight"
276
                                    From="4"
277
                                    To="4" />
278
                                <ObjectAnimationUsingKeyFrames
279
                                    Storyboard.TargetName="border"
280
                                    Storyboard.TargetProperty="Margin"
281
                                    Duration="0">
282
                                    <DiscreteObjectKeyFrame KeyTime="0">
283
                                        <DiscreteObjectKeyFrame.Value>
284
                                            <Thickness>0,0,0,4</Thickness>
285
                                        </DiscreteObjectKeyFrame.Value>
286
                                    </DiscreteObjectKeyFrame>
287
                                </ObjectAnimationUsingKeyFrames>
288
                            </Storyboard>
289
                        </VisualState>
290
                        <VisualState x:Name="HideResizer" />
291
                    </VisualStateGroup>
292
                </VisualStateManager.VisualStateGroups>
293
            </Grid>
294
        </ControlTemplate>
295
        <!--  App.xaml에 선언됨  -->
296
        <!--<Style BasedOn="{StaticResource PaneHeaderStyle}" TargetType="telerik:PaneHeader">-->
297
        <!--<Style TargetType="telerik:PaneHeader">
298
            <Setter Property="HorizontalContentAlignment" Value="Stretch" />
299
            <Setter Property="HorizontalAlignment" Value="Stretch" />
300
        </Style>-->
301
    </UserControl.Resources>
302
    <Grid Background="{DynamicResource KCOMColor_MainBrush}">
303
        <!--<Grid.ColumnDefinitions>
304
            <ColumnDefinition Width="Auto"/>
305
            <ColumnDefinition Width="*"/>
306
        </Grid.ColumnDefinitions>-->
307
        <!--<Border Background="#fff5f5f5" BorderBrush="#d5d5d5" BorderThickness="0">
308
        -->
309
        <!--<controls:PageNavigator x:Name="pageNavigator" Grid.Row="1" Width="200"/>-->
310
        <!--
311
            <telerik:RadLayoutControl SelectedItem="{x:Null}" VirtualizingStackPanel.VirtualizationMode="Recycling" ScrollViewer.VerticalScrollBarVisibility="Hi">
312
                <telerik:LayoutControlTabGroup Template="{DynamicResource TabControlTemplate}" telerik:StyleManager.Theme="Office2016">
313
                    <telerik:LayoutControlTabGroupItem Header="Thumbnail">
314
                        <telerik:LayoutControlGroup BorderBrush="Transparent" Padding="5" Margin="0,-3">
315
                            <controls:PageNavigator x:Name="pageNavigator" Grid.Row="1" Width="300"/>
316
                        </telerik:LayoutControlGroup>
317
                    </telerik:LayoutControlTabGroupItem>
318
                    <telerik:LayoutControlTabGroupItem Header="Bookmark">
319
                        <telerik:LayoutControlGroup BorderBrush="Transparent">
320
                            <Border Background="Blue"/>
321
                        </telerik:LayoutControlGroup>
322
                    </telerik:LayoutControlTabGroupItem>
323
                </telerik:LayoutControlTabGroup>
324
            </telerik:RadLayoutControl>
325
        </Border>-->
326
        <!--<Grid.ColumnDefinitions>
327
            <ColumnDefinition Width="Auto"/>
328
            <ColumnDefinition Width="*"/>
329
            <ColumnDefinition Width="Auto"/>
330
        </Grid.ColumnDefinitions>-->
331
        <!--<Border Background="{DynamicResource Office2016Color_PrimaryBrush}">
332
            <Border Background="White" Margin="50"/>
333
        </Border>-->
334
        <telerik:RadDocking
335
            Grid.Column="1"
336
            Padding="0"
337
            Background="{DynamicResource KCOMColor_MainBrush}"
338
            BorderThickness="0">
339
            <telerik:RadDocking.DocumentHost>
340
                <telerik:RadSplitContainer
341
                    x:Name="splitContainerMain"
342
                    Margin="0,-1,0,0"
343
                    Background="Transparent"
344
                    Template="{DynamicResource RadSplitContainerControlTemplate}">
345
                    <telerik:RadPaneGroup Style="{DynamicResource Style_RadPanelGroup}">
346
                        <telerik:RadDocumentPane
347
                            x:Name="MainDocumentPanel"
348
                            Title="Document 1"
349
                            Margin="0,-20,0,0"
350
                            CanFloat="False"
351
                            CanUserClose="False"
352
                            Header="VP-320A-728063"
353
                            PaneHeaderVisibility="Collapsed">
354
                            <telerik:RadDocumentPane.HeaderTemplate>
355
                                <DataTemplate>
356
                                    <Border Margin="0,0,0,0" />
357
                                </DataTemplate>
358
                            </telerik:RadDocumentPane.HeaderTemplate>
359
                            <!--<Grid Background="{DynamicResource KCOMColor_AlternativeBrush}">-->
360
                            <Grid Background="{DynamicResource KCOMColor_DocumnetBackgroundBrush}">
361
                                <Rectangle
362
                                    Name="rect"
363
                                    Width="100"
364
                                    Height="100"
365
                                    Margin="50,50,0,0"
366
                                    Fill="LightBlue" />
367
                                <Popup
368
                                    Name="floatingTip"
369
                                    AllowsTransparency="True"
370
                                    Placement="Relative"
371
                                    PlacementTarget="{Binding ElementName=rect}">
372
                                    <TextBlock
373
                                        x:Name="txtBatch"
374
                                        FontSize="20"
375
                                        Foreground="Red"
376
                                        Text="Mark Control을 그립니다." />
377
                                </Popup>
378
                                <ZoomAndPan:ZoomAndPanControl
379
                                    x:Name="zoomAndPanControl"
380
                                    Background="LightGray"
381
                                    ConstrainedContentViewportHeight="{Binding ContentViewportHeight, Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}"
382
                                    ConstrainedContentViewportWidth="{Binding ContentViewportWidth, Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}"
383
                                    ContentOffsetX="{Binding ContentOffsetX, Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}"
384
                                    ContentOffsetY="{Binding ContentOffsetY, Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}"
385
                                    ContentScale="{Binding ContentScale, Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}"
386
                                    MouseDoubleClick="zoomAndPanControl_MouseDoubleClick"
387
                                    MouseDown="zoomAndPanControl_MouseDown"
388
                                    MouseLeave="zoomAndPanControl_MouseLeave"
389
                                    MouseMove="zoomAndPanControl_MouseMove"
390
                                    MouseUp="zoomAndPanControl_MouseUp"
391
                                    MouseWheel="zoomAndPanControl_MouseWheel"
392
                                    ScaleChanged="ZoomAndPanControl_ScaleChanged">
393
                                    <Canvas
394
                                        x:Name="zoomAndPanCanvas"
395
                                        Background="White"
396
                                        Opacity="1">
397

    
398
                                        <Canvas
399
                                            x:Name="drawingRotateCanvas"
400
                                            Panel.ZIndex="1"
401
                                            Background="{Binding BackgroundImage, Mode=OneWay, Source={x:Static common:ViewerDataModel.Instance}}">
402
                                            <Canvas.RenderTransform>
403
                                                <TransformGroup>
404
                                                    <RotateTransform x:Name="rotate" Angle="0" />
405
                                                    <TranslateTransform x:Name="translate" X="0" Y="0" />
406
                                                </TransformGroup>
407
                                            </Canvas.RenderTransform>
408

    
409
                                            <ItemsControl Panel.ZIndex="1" ItemsSource="{Binding MarkupControls, Source={x:Static common:ViewerDataModel.Instance}}">
410
                                                <ItemsControl.ItemsPanel>
411
                                                    <ItemsPanelTemplate>
412
                                                        <Canvas />
413
                                                    </ItemsPanelTemplate>
414
                                                </ItemsControl.ItemsPanel>
415
                                            </ItemsControl>
416
                                            <ItemsControl Panel.ZIndex="30" ItemsSource="{Binding MarkupControls_USER, Source={x:Static common:ViewerDataModel.Instance}}">
417
                                                <ItemsControl.ItemsPanel>
418
                                                    <ItemsPanelTemplate>
419
                                                        <Canvas />
420
                                                    </ItemsPanelTemplate>
421
                                                </ItemsControl.ItemsPanel>
422
                                            </ItemsControl>
423
                                            <InkPresenter
424
                                                x:Name="inkBoard"
425
                                                HorizontalAlignment="Stretch"
426
                                                VerticalAlignment="Stretch"
427
                                                Panel.ZIndex="1" />
428
                                            <InkCanvas
429
                                                x:Name="inkDrawingCanvas"
430
                                                Width="1"
431
                                                Height="1"
432
                                                Panel.ZIndex="1"
433
                                                Background="Transparent"
434
                                                IsEnabled="False"
435
                                                Strokes="{Binding MarkupPens, Source={x:Static common:ViewerDataModel.Instance}}">
436
                                                <!--<Rectangle Height="41" HorizontalAlignment="Left"  Name="rectangle1" Stroke="Black" VerticalAlignment="Top" Width="69" Fill="#FFDB1111" />-->
437
                                                <!--<Ellipse Height="41" HorizontalAlignment="Left"  Name="rectangle1" Stroke="Black" VerticalAlignment="Top" Width="69" Fill="#FFDB1111" />-->
438

    
439
                                                <!--<MarkupToPDF:RectangleControl Height="200" HorizontalAlignment="Center" Name="rectangle2" StrokeColor="Black" VerticalAlignment="Top" Width="00" FillColor="Red"/>-->
440
                                            </InkCanvas>
441
                                            <!--  강인구 추가  -->
442
                                            <!--<controls:ScaleDecodeImage Panel.ZIndex="0" x:Name="mainPanel"
443
                                                   Source="{Binding ImageViewPath,Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}"
444
                                                    Width="{Binding ImageViewWidth,Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}"
445
                                                        Height="{Binding ImageViewHeight,Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}">
446
                                                </controls:ScaleDecodeImage>-->
447
                                            <Image
448
                                                x:Name="mainPanel"
449
                                                Width="{Binding ImageViewWidth, Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}"
450
                                                Height="{Binding ImageViewHeight, Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}"
451
                                                Panel.ZIndex="0"
452
                                                RenderOptions.BitmapScalingMode="HighQuality"
453
                                                RenderOptions.ClearTypeHint="Enabled"
454
                                                RenderOptions.EdgeMode="Unspecified"
455
                                                Source="{Binding ImageViewPath, Mode=OneWay, Source={x:Static common:ViewerDataModel.Instance}}" />
456
                                            <Canvas
457
                                                x:Name="SelectLayer"
458
                                                HorizontalAlignment="Stretch"
459
                                                VerticalAlignment="Stretch"
460
                                                Panel.ZIndex="32766" />
461
                                            <Border
462
                                                x:Name="dragSelectionBorder"
463
                                                Panel.ZIndex="1"
464
                                                Background="LightBlue"
465
                                                BorderBrush="Blue"
466
                                                BorderThickness="1"
467
                                                CornerRadius="1"
468
                                                Opacity="0.5"
469
                                                Visibility="Collapsed" />
470
                                            <Border
471
                                                x:Name="dragCaptureBorder"
472
                                                Panel.ZIndex="1"
473
                                                Background="Blue"
474
                                                BorderBrush="Blue"
475
                                                BorderThickness="1"
476
                                                CornerRadius="1"
477
                                                Opacity="0.5"
478
                                                Visibility="Collapsed" />
479

    
480
                                            <Border
481
                                                x:Name="dragZoomBorder"
482
                                                Panel.ZIndex="1"
483
                                                Background="Transparent"
484
                                                BorderThickness="3"
485
                                                CornerRadius="1"
486
                                                Opacity="1"
487
                                                Visibility="Collapsed">
488
                                                <Border.BorderBrush>
489
                                                    <VisualBrush>
490
                                                        <VisualBrush.Visual>
491
                                                            <Rectangle
492
                                                                Width="{Binding RelativeSource={RelativeSource AncestorType={x:Type Border}}, Path=ActualWidth}"
493
                                                                Height="{Binding RelativeSource={RelativeSource AncestorType={x:Type Border}}, Path=ActualHeight}"
494
                                                                Stroke="Gray"
495
                                                                StrokeDashArray="4 2"
496
                                                                StrokeThickness="1" />
497
                                                        </VisualBrush.Visual>
498
                                                    </VisualBrush>
499
                                                </Border.BorderBrush>
500
                                            </Border>
501
                                            <!--<Border x:Name="dragZoomBorder"
502
                                                    BorderBrush="Black"
503
                                                    BorderThickness="1"
504

505
                                                    Background="Transparent"
506
                                                    CornerRadius="1"
507
                                                    Panel.ZIndex="1"
508
                                                    Opacity="0.5"/>-->
509
                                            <Canvas
510
                                                x:Name="SearchFocusBorder"
511
                                                Panel.ZIndex="99999"
512
                                                Background="#50FF5D00"
513
                                                IsHitTestVisible="False"
514
                                                Visibility="Collapsed">
515
                                                <Border
516
                                                    Width="{Binding Width, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Canvas}}}"
517
                                                    Height="{Binding Height, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Canvas}}}"
518
                                                    Panel.ZIndex="99999"
519
                                                    Background="#50FF5D00"
520
                                                    BorderThickness="1"
521
                                                    CornerRadius="1"
522
                                                    IsHitTestVisible="False"
523
                                                    Visibility="Collapsed" />
524
                                            </Canvas>
525
                                            <!--<Border Background="Red" Panel.ZIndex="1" Opacity="0.5" Visibility="Visible" Width="100" Height="100" />-->
526
                                        </Canvas>
527

    
528
                                        <!--<Border Background="Red" Panel.ZIndex="1" Opacity="0.5" Visibility="Visible" Width="1000" Height="1000" IsHitTestVisible="False"/>-->
529

    
530
                                        <!--<Leadtools_Windows_Controls:RasterImageViewer x:Name="_imageViewer" Grid.Row="1" BorderThickness="0"/>-->
531
                                    </Canvas>
532
                                </ZoomAndPan:ZoomAndPanControl>
533
                                <telerik:RadBusyIndicator
534
                                    x:Name="busyIndicator"
535
                                    BusyContent="Saving..."
536
                                    IsBusy="False"
537
                                    Visibility="{Binding IsBusy, Converter={StaticResource BoolToVisibleConverter}, RelativeSource={RelativeSource Self}}" />
538
                                <!--  캡쳐 화면을 위한 보더  -->
539
                                <Border
540
                                    Background="LightGray"
541
                                    IsHitTestVisible="False"
542
                                    Opacity="{Binding Capture_Opacity, Source={x:Static common:ViewerDataModel.Instance}}">
543
                                    <TextBlock
544
                                        HorizontalAlignment="Right"
545
                                        FontSize="30"
546
                                        Foreground="Red"
547
                                        Text="캡쳐 진행 화면" />
548
                                </Border>
549
                                <Angle:AngleControl
550
                                    x:Name="MainAngle"
551
                                    Grid.Column="1"
552
                                    Grid.ColumnSpan="2"
553
                                    Margin="10"
554
                                    HorizontalAlignment="Right"
555
                                    VerticalAlignment="Top"
556
                                    AngleValue="{Binding MarkupAngle, Mode=TwoWay, StringFormat=\{0:F0\}°, Source={x:Static common:ViewerDataModel.Instance}}"
557
                                    IsHitTestVisible="False"
558
                                    Visibility="{Binding MarkupAngleVisibility, Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}" />
559
                            </Grid>
560
                        </telerik:RadDocumentPane>
561
                    </telerik:RadPaneGroup>
562
                    <telerik:RadPaneGroup Style="{DynamicResource Style_RadPanelGroup}">
563
                        <telerik:RadPane
564
                            x:Name="testPanel2"
565
                            Title="Document 1"
566
                            Margin="0,-20,0,0"
567
                            CanFloat="False"
568
                            CanUserClose="False"
569
                            IsHidden="True"
570
                            PaneHeaderVisibility="Collapsed">
571
                            <Grid Background="{DynamicResource KCOMColor_DocumnetBackgroundBrush}">
572
                                <ZoomAndPan:ZoomAndPanControl
573
                                    x:Name="zoomAndPanControl2"
574
                                    AllowDrop="True"
575
                                    Background="LightGray"
576
                                    ConstrainedContentViewportHeight="{Binding ContentViewportHeight, Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}"
577
                                    ConstrainedContentViewportWidth="{Binding ContentViewportWidth, Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}"
578
                                    ContentOffsetX="{Binding Sync_ContentOffsetX, Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}"
579
                                    ContentOffsetY="{Binding Sync_ContentOffsetY, Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}"
580
                                    ContentScale="{Binding Sync_ContentScale, Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}"
581
                                    MouseDown="zoomAndPanControl2_MouseDown"
582
                                    MouseLeave="zoomAndPanControl_MouseLeave"
583
                                    MouseMove="zoomAndPanControl2_MouseMove"
584
                                    MouseUp="zoomAndPanControl2_MouseUp"
585
                                    MouseWheel="zoomAndPanControl2_MouseWheel">
586
                                    <Canvas
587
                                        x:Name="zoomAndPanCanvas2"
588
                                        Background="Transparent"
589
                                        Opacity="1">
590
                                        <Canvas
591
                                            x:Name="drawingRotateCanvas2"
592
                                            Panel.ZIndex="1"
593
                                            Background="{Binding BackgroundImage, Mode=OneWay, Source={x:Static common:ViewerDataModel.Instance}}">
594
                                            <Canvas.RenderTransform>
595
                                                <TransformGroup>
596
                                                    <RotateTransform x:Name="rotate2" Angle="0" />
597
                                                    <TranslateTransform x:Name="translate2" X="0" Y="0" />
598
                                                </TransformGroup>
599
                                            </Canvas.RenderTransform>
600
                                            <ItemsControl
601
                                                x:Name="itemsControl"
602
                                                Panel.ZIndex="1"
603
                                                ItemsSource="{Binding MarkupControls_Sync, Source={x:Static common:ViewerDataModel.Instance}}">
604
                                                <ItemsControl.ItemsPanel>
605
                                                    <ItemsPanelTemplate>
606
                                                        <Canvas />
607
                                                    </ItemsPanelTemplate>
608
                                                </ItemsControl.ItemsPanel>
609
                                            </ItemsControl>
610
                                            <Image
611
                                                x:Name="ComparePanel"
612
                                                Width="{Binding ImageViewWidth_C, Source={x:Static common:ViewerDataModel.Instance}}"
613
                                                Height="{Binding ImageViewHeight_C, Source={x:Static common:ViewerDataModel.Instance}}"
614
                                                Source="{Binding ImageViewPath_C, Source={x:Static common:ViewerDataModel.Instance}}" />
615
                                            <Canvas
616
                                                x:Name="canvas_compareBorder"
617
                                                Width="{Binding ActualWidth, ElementName=zoomAndPanCanvas2}"
618
                                                Height="{Binding ActualHeight, ElementName=zoomAndPanCanvas2}"
619
                                                Panel.ZIndex="1"
620
                                                IsHitTestVisible="False">
621
                                                <!--  RenderTransform="{Binding RenderTransform, ElementName=zoomAndPanControl2}"  -->
622
                                                <Canvas.RenderTransform>
623
                                                    <TransformGroup>
624
                                                        <RotateTransform x:Name="rotate2CompareBorder" Angle="0" />
625
                                                        <TranslateTransform x:Name="translate2CompareBorder" X="0" Y="0" />
626
                                                    </TransformGroup>
627
                                                </Canvas.RenderTransform>
628
                                                <!--<Canvas.RenderTransform>
629
                                                    <RotateTransform Angle="{Binding RenderTransform, ElementName=zoomAndPanControl2}"/>
630
                                                </Canvas.RenderTransform>-->
631
                                            </Canvas>
632
                                            <!--  강인구 추가  -->
633
                                        </Canvas>
634
                                    </Canvas>
635
                                </ZoomAndPan:ZoomAndPanControl>
636
                                <Grid
637
                                    Background="#FF353535"
638
                                    IsHitTestVisible="False"
639
                                    Opacity="0.1" />
640

    
641
                                <!--<Viewbox VerticalAlignment="Stretch" HorizontalAlignment="Stretch" StretchDirection="DownOnly" Stretch="Uniform" IsHitTestVisible="False">
642
                                    <TextBlock Text="Previous Document" HorizontalAlignment="Center" VerticalAlignment="Center" RenderTransformOrigin="0.5, 0.5" FontSize="50"
643
                                           Foreground="White" Opacity="0.5" FontWeight="Bold">
644
                                        <TextBlock.RenderTransform>
645
                                            <RotateTransform Angle="-25"/>
646
                                        </TextBlock.RenderTransform>
647
                                    </TextBlock>
648
                                </Viewbox>-->
649

    
650
                                <!--<telerik:RadExpander Header="OPEN" Background="Transparent" telerik:StyleManager.Theme="Office2016"
651
                                                     ExpandDirection="Right" VerticalAlignment="Top" HorizontalAlignment="Left">-->
652
                                <Grid Height="Auto" VerticalAlignment="Top">
653
                                    <Grid.RowDefinitions>
654
                                        <RowDefinition />
655
                                        <RowDefinition />
656
                                    </Grid.RowDefinitions>
657
                                    <!--<Border Background="#3b3838" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Opacity="0.5" Grid.RowSpan="2"/>-->
658
                                    <Border
659
                                        Grid.RowSpan="2"
660
                                        HorizontalAlignment="Stretch"
661
                                        VerticalAlignment="Stretch"
662
                                        Background="Black"
663
                                        BorderThickness="0"
664
                                        Opacity="0.5" />
665
                                    <StackPanel HorizontalAlignment="Left" Orientation="Horizontal">
666
                                        <!--<TextBlock Text="ReadOnly Mode" Foreground="#FFFF9A25" VerticalAlignment="Center" Margin="10"/>-->
667
                                        <TextBlock
668
                                            x:Name="tlSyncRev"
669
                                            Margin="10"
670
                                            VerticalAlignment="Center"
671
                                            Foreground="#FFFF9A25"
672
                                            Text="Rev.A" />
673
                                        <TextBlock
674
                                            x:Name="tlSyncPageNum"
675
                                            VerticalAlignment="Center"
676
                                            Foreground="White"
677
                                            Text="Current Page : 1" />
678
                                    </StackPanel>
679
                                    <StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
680
                                        <!--<telerik:RadToggleButton x:Name="CompareMode" IsChecked="False" Content="Compare"  Margin="5" Checked="SyncCompare_Click" Unchecked="SyncCompare_Click" BorderThickness="0" telerik:StyleManager.Theme="Office2013"
681
                                                                       Style="{DynamicResource RadToggleSwtichButtonStyle}" Width="Auto" Padding="10,0"/>-->
682
                                        <!--<telerik:RadRibbonToggleButton x:Name="UserList" Content="User List" Foreground="white"  Margin="5" Click="SyncUserListExpender_Click" BorderThickness="0" telerik:StyleManager.Theme="Office2013" VerticalAlignment="Center"/>-->
683

    
684
                                        <toggle:HorizontalToggleSwitch
685
                                            x:Name="Sync"
686
                                            Width="75"
687
                                            Margin="5"
688
                                            telerik:StyleManager.Theme="Office2013"
689
                                            BorderBrush="Transparent"
690
                                            BorderThickness="0"
691
                                            Checked="Sync_Click"
692
                                            CheckedContent="Sync"
693
                                            FontSize="10"
694
                                            FontWeight="Normal"
695
                                            IsChecked="False"
696
                                            Opacity="0.6"
697
                                            ThumbSize="25"
698
                                            Unchecked="Sync_Click"
699
                                            UncheckedContent="Sync" />
700

    
701
                                        <toggle:HorizontalToggleSwitch
702
                                            x:Name="UserList"
703
                                            Width="75"
704
                                            Margin="5"
705
                                            telerik:StyleManager.Theme="Office2013"
706
                                            BorderBrush="Transparent"
707
                                            BorderThickness="0"
708
                                            Checked="SyncUserListExpender_Click"
709
                                            CheckedContent="User List"
710
                                            FontSize="10"
711
                                            FontWeight="Normal"
712
                                            IsChecked="False"
713
                                            Opacity="0.6"
714
                                            ThumbSize="25"
715
                                            Unchecked="SyncUserListExpender_Click"
716
                                            UncheckedContent="User List" />
717

    
718
                                        <toggle:HorizontalToggleSwitch
719
                                            x:Name="CompareMode"
720
                                            Width="90"
721
                                            Margin="5"
722
                                            telerik:StyleManager.Theme="Office2013"
723
                                            BorderBrush="Transparent"
724
                                            BorderThickness="0"
725
                                            Checked="SyncCompare_Click"
726
                                            CheckedContent="Compare On"
727
                                            FontSize="10"
728
                                            FontWeight="Normal"
729
                                            IsChecked="False"
730
                                            Opacity="0.6"
731
                                            ThumbSize="25"
732
                                            Unchecked="SyncCompare_Click"
733
                                            UncheckedContent="Compare Off" />
734

    
735
                                        <toggle:HorizontalToggleSwitch
736
                                            x:Name="MarkupMode"
737
                                            Width="75"
738
                                            Margin="5"
739
                                            telerik:StyleManager.Theme="Office2013"
740
                                            BorderBrush="Transparent"
741
                                            BorderThickness="0"
742
                                            Checked="SyncChange_Click"
743
                                            CheckedContent="Pdf"
744
                                            FontSize="10"
745
                                            FontWeight="Normal"
746
                                            IsChecked="False"
747
                                            Opacity="0.6"
748
                                            ThumbSize="25"
749
                                            Unchecked="SyncChange_Click"
750
                                            UncheckedContent="Markup"
751
                                            Visibility="Collapsed" />
752

    
753
                                        <toggle:HorizontalToggleSwitch
754
                                            x:Name="BalanceMode"
755
                                            Width="90"
756
                                            Margin="5"
757
                                            telerik:StyleManager.Theme="Office2013"
758
                                            BorderBrush="Transparent"
759
                                            BorderThickness="0"
760
                                            Checked="SyncPageBalance_Click"
761
                                            CheckedContent="Balance On"
762
                                            FontSize="10"
763
                                            FontWeight="Normal"
764
                                            IsChecked="False"
765
                                            Opacity="0.6"
766
                                            ThumbSize="25"
767
                                            Unchecked="SyncPageBalance_Click"
768
                                            UncheckedContent="Balance Off"
769
                                            Visibility="Collapsed" />
770
                                        <toggle:HorizontalToggleSwitch
771
                                            x:Name="OriginalSizeMode"
772
                                            Width="90"
773
                                            Margin="5"
774
                                            telerik:StyleManager.Theme="Office2013"
775
                                            BorderBrush="Transparent"
776
                                            BorderThickness="0"
777
                                            Checked="OriginalSizeMode_Click"
778
                                            CheckedContent="Original Size"
779
                                            FontSize="10"
780
                                            FontWeight="Normal"
781
                                            IsChecked="False"
782
                                            Opacity="0.6"
783
                                            ThumbSize="25"
784
                                            Unchecked="OriginalSizeMode_Click"
785
                                            UncheckedContent="Uniform Size" />
786

    
787
                                        <!--<telerik:RadRibbonToggleButton x:Name="MArkupMode" Content="Markup Mode" Foreground="White"  Margin="5"  Click="SyncChange_Click" BorderThickness="0" telerik:StyleManager.Theme="Office2013"/>-->
788
                                        <!--<telerik:RadRibbonToggleButton x:Name="BalanceMode" Content="Balance Mode" Foreground="White"  Margin="5" Click="SyncPageBalance_Click" BorderThickness="0" telerik:StyleManager.Theme="Office2013"/>-->
789
                                        <telerik:RadPathButton
790
                                            Width="20"
791
                                            Height="10"
792
                                            Margin="5"
793
                                            VerticalAlignment="Center"
794
                                            telerik:StyleManager.Theme="Office2013"
795
                                            Click="SyncPageChange_Click"
796
                                            PathGeometry="{telerik:RadGlyph Glyph={StaticResource GlyphArrowChevronUp}}"
797
                                            Style="{StaticResource IconPathButton}"
798
                                            Tag="-1">
799
                                            <!--<Image Height="20"
800
                                                               Source="/KCOM;component/Resources/Images/MenuImage_New/up-arrow.png"
801
                                                               Stretch="Uniform" />-->
802
                                        </telerik:RadPathButton>
803
                                        <telerik:RadPathButton
804
                                            Width="20"
805
                                            Height="10"
806
                                            Margin="5"
807
                                            VerticalAlignment="Center"
808
                                            telerik:StyleManager.Theme="Office2013"
809
                                            Click="SyncPageChange_Click"
810
                                            PathGeometry="{telerik:RadGlyph Glyph={StaticResource GlyphArrowChevronDown}}"
811
                                            Style="{StaticResource IconPathButton}"
812
                                            Tag="1">
813
                                            <!--<Image Height="20"
814
                                                               Source="/KCOM;component/Resources/Images/MenuImage_New/up-arrow.png" RenderTransformOrigin="0.5 0.5"
815
                                                               Stretch="Uniform">
816
                                                <Image.RenderTransform>
817
                                                    <RotateTransform Angle="180"/>
818
                                                </Image.RenderTransform>
819
                                            </Image>-->
820
                                        </telerik:RadPathButton>
821
                                        <telerik:RadPathButton
822
                                            Width="20"
823
                                            Height="10"
824
                                            Margin="5"
825
                                            VerticalAlignment="Center"
826
                                            telerik:StyleManager.Theme="Office2013"
827
                                            Click="SyncRotation_Click"
828
                                            PathGeometry="{telerik:RadGlyph Glyph={StaticResource GlyphReloadSmall}}"
829
                                            Style="{StaticResource IconPathButton}"
830
                                            Tag="1" />
831
                                        <telerik:RadPathButton
832
                                            Width="20"
833
                                            Height="10"
834
                                            Margin="5"
835
                                            VerticalAlignment="Center"
836
                                            telerik:StyleManager.Theme="Office2013"
837
                                            Click="SyncRotation_Click"
838
                                            PathGeometry="{telerik:RadGlyph Glyph={StaticResource GlyphResetSmall}}"
839
                                            Style="{StaticResource IconPathButton}"
840
                                            Tag="-1" />
841
                                        <telerik:RadPathButton
842
                                            Width="20"
843
                                            Height="10"
844
                                            Margin="5"
845
                                            VerticalAlignment="Center"
846
                                            telerik:StyleManager.Theme="Office2013"
847
                                            Click="SyncExit_Click"
848
                                            PathGeometry="{telerik:RadGlyph Glyph={StaticResource GlyphClose}}"
849
                                            Style="{StaticResource IconPathButton}">
850
                                            <!--<Image Height="20"
851
                                                               Source="/KCOM;component/Resources/Images/MenuImage_New/cancel.png"
852
                                                               Stretch="Uniform" />-->
853
                                        </telerik:RadPathButton>
854
                                    </StackPanel>
855
                                    <telerik:RadGridView
856
                                        x:Name="gridViewRevMarkup"
857
                                        Grid.Row="1"
858
                                        HorizontalContentAlignment="Center"
859
                                        telerik:StyleManager.Theme="Office2013"
860
                                        AutoExpandGroups="False"
861
                                        AutoGenerateColumns="False"
862
                                        BorderThickness="0"
863
                                        CanUserDeleteRows="True"
864
                                        CanUserFreezeColumns="False"
865
                                        CanUserInsertRows="False"
866
                                        GridLinesVisibility="None"
867
                                        IsFilteringAllowed="False"
868
                                        RowIndicatorVisibility="Collapsed"
869
                                        SelectionChanged="gridViewRevMarkup_SelectionChanged"
870
                                        SelectionMode="Multiple"
871
                                        ShowGroupFooters="False"
872
                                        ShowGroupPanel="False"
873
                                        Visibility="Collapsed">
874
                                        <telerik:RadGridView.HeaderRowStyle>
875
                                            <Style TargetType="telerik:GridViewHeaderRow">
876
                                                <Setter Property="BorderThickness" Value="0" />
877
                                                <Setter Property="Background" Value="Red" />
878
                                                <Setter Property="Foreground" Value="White" />
879
                                                <Setter Property="HorizontalContentAlignment" Value="Center" />
880
                                                <Setter Property="FontWeight" Value="Black" />
881
                                                <Setter Property="telerik:StyleManager.Theme" Value="Office2013" />
882
                                            </Style>
883
                                        </telerik:RadGridView.HeaderRowStyle>
884
                                        <telerik:RadGridView.RowStyle>
885
                                            <Style TargetType="telerik:GridViewRow">
886
                                                <Setter Property="HorizontalContentAlignment" Value="Center" />
887
                                                <Setter Property="Background" Value="{Binding Path=Consolidate, Converter={StaticResource ConsolidationBackgroudConverter}}" />
888
                                                <Setter Property="Foreground" Value="White" />
889
                                            </Style>
890
                                        </telerik:RadGridView.RowStyle>
891
                                        <telerik:RadGridView.Columns>
892
                                            <telerik:GridViewSelectColumn Width="Auto" HeaderCellStyle="{StaticResource GridViewHeaderStyle}">
893
                                                <telerik:GridViewSelectColumn.Header>
894
                                                    <telerik:RadRibbonToggleButton
895
                                                        Width="Auto"
896
                                                        telerik:StyleManager.Theme="Office2016"
897
                                                        Visibility="Collapsed">
898
                                                        <telerik:RadRibbonToggleButton.Content>
899
                                                            <Image
900
                                                                HorizontalAlignment="Center"
901
                                                                VerticalAlignment="Center"
902
                                                                Source="/KCOM;component/Resources/Images/MenuImage_New/check.png" />
903
                                                        </telerik:RadRibbonToggleButton.Content>
904
                                                    </telerik:RadRibbonToggleButton>
905
                                                </telerik:GridViewSelectColumn.Header>
906
                                            </telerik:GridViewSelectColumn>
907
                                            <telerik:GridViewDataColumn
908
                                                Width="Auto"
909
                                                Header="Color"
910
                                                HeaderCellStyle="{StaticResource GridViewHeaderStyle}"
911
                                                IsReadOnly="True">
912
                                                <telerik:GridViewDataColumn.CellTemplate>
913
                                                    <DataTemplate>
914
                                                        <Grid>
915
                                                            <Grid>
916
                                                                <Rectangle Margin="0,2,2,2" Fill="{Binding DisplayColor, Converter={StaticResource StringToColorBrushConverter}}" />
917
                                                                <TextBlock Foreground="#00000000" Text="Color" />
918
                                                            </Grid>
919
                                                            <Grid VerticalAlignment="Center" Visibility="{Binding AvoidConsolidate, Converter={StaticResource BoolToVisibleConverter}}">
920
                                                                <Image
921
                                                                    Height="15"
922
                                                                    Source="/KCOM;component/Resources/Images/MenuImage_New/lock_2.png"
923
                                                                    Stretch="Uniform" />
924
                                                            </Grid>
925
                                                        </Grid>
926

    
927
                                                    </DataTemplate>
928
                                                </telerik:GridViewDataColumn.CellTemplate>
929
                                            </telerik:GridViewDataColumn>
930
                                            <telerik:GridViewDataColumn
931
                                                Width="Auto"
932
                                                Header="DEPT"
933
                                                HeaderCellStyle="{StaticResource GridViewHeaderStyle}"
934
                                                IsReadOnly="True">
935
                                                <telerik:GridViewDataColumn.CellTemplate>
936
                                                    <DataTemplate>
937
                                                        <TextBlock FontSize="12" Text="{Binding Depatment}" />
938
                                                    </DataTemplate>
939
                                                </telerik:GridViewDataColumn.CellTemplate>
940
                                            </telerik:GridViewDataColumn>
941
                                            <telerik:GridViewDataColumn
942
                                                Width="Auto"
943
                                                Header="NAME"
944
                                                HeaderCellStyle="{StaticResource GridViewHeaderStyle}"
945
                                                IsReadOnly="True">
946
                                                <telerik:GridViewDataColumn.CellTemplate>
947
                                                    <DataTemplate>
948
                                                        <TextBlock FontSize="10" Text="{Binding UserName, Mode=TwoWay}" />
949
                                                    </DataTemplate>
950
                                                </telerik:GridViewDataColumn.CellTemplate>
951
                                            </telerik:GridViewDataColumn>
952
                                            <telerik:GridViewDataColumn
953
                                                Width="Auto"
954
                                                Header="CONSOLIDATION"
955
                                                HeaderCellStyle="{StaticResource GridViewHeaderStyle}"
956
                                                IsReadOnly="True">
957
                                                <telerik:GridViewDataColumn.CellTemplate>
958
                                                    <DataTemplate>
959
                                                        <!--<TextBlock Text="{Binding Consolidate}"/>-->
960
                                                        <Grid>
961
                                                            <Grid.ColumnDefinitions>
962
                                                                <ColumnDefinition Width="Auto" />
963
                                                                <ColumnDefinition Width="Auto" />
964
                                                                <ColumnDefinition Width="Auto" />
965
                                                            </Grid.ColumnDefinitions>
966

    
967
                                                            <TextBlock
968
                                                                Grid.Column="0"
969
                                                                Foreground="Red"
970
                                                                Text="{Binding AvoidConsolidate, Converter={StaticResource AvoidStringConverter}}" />
971
                                                            <TextBlock
972
                                                                Grid.Column="1"
973
                                                                Foreground="Blue"
974
                                                                Text="{Binding PartConsolidate, Converter={StaticResource TeamConsoliStringConverter}}" />
975
                                                            <TextBlock Grid.Column="2" Text="{Binding Consolidate, Converter={StaticResource ConsoliStringConverter}}" />
976
                                                            <!--
977
                                                        <TextBlock HorizontalAlignment="Center" Grid.Column="2">
978
                                                        <TextBlock.Text>
979
                                                        <Binding Converter="{StaticResource ConsoliStringConverter}"/>
980
                                                        </TextBlock.Text>
981
                                                        </TextBlock>
982
                                                            -->
983
                                                        </Grid>
984
                                                    </DataTemplate>
985
                                                </telerik:GridViewDataColumn.CellTemplate>
986
                                            </telerik:GridViewDataColumn>
987

    
988
                                            <telerik:GridViewDataColumn
989
                                                Width="Auto"
990
                                                Header="Comment Move"
991
                                                HeaderCellStyle="{StaticResource GridViewHeaderStyle}"
992
                                                IsReadOnly="True">
993
                                                <telerik:GridViewDataColumn.CellTemplate>
994
                                                    <DataTemplate>
995
                                                        <telerik:RadButton
996
                                                            HorizontalAlignment="Stretch"
997
                                                            VerticalAlignment="Stretch"
998
                                                            telerik:StyleManager.Theme="Office2016"
999
                                                            Content="COPY"
1000
                                                            PreviewMouseDown="Comment_Move" />
1001
                                                        <!--<TextBlock Text="{Binding UserName, Mode=TwoWay}" FontSize="10"/>-->
1002
                                                    </DataTemplate>
1003
                                                </telerik:GridViewDataColumn.CellTemplate>
1004
                                            </telerik:GridViewDataColumn>
1005

    
1006
                                            <telerik:GridViewDataColumn
1007
                                                Width="*"
1008
                                                Header=""
1009
                                                HeaderCellStyle="{StaticResource GridViewHeaderStyle}"
1010
                                                IsReadOnly="True" />
1011
                                        </telerik:RadGridView.Columns>
1012
                                    </telerik:RadGridView>
1013
                                </Grid>
1014
                                <!--</telerik:RadExpander>-->
1015

    
1016

    
1017
                            </Grid>
1018
                        </telerik:RadPane>
1019
                    </telerik:RadPaneGroup>
1020
                </telerik:RadSplitContainer>
1021
            </telerik:RadDocking.DocumentHost>
1022
            <telerik:RadSplitContainer
1023
                x:Name="thumbnailPanel"
1024
                InitialPosition="DockedLeft"
1025
                Orientation="Vertical"
1026
                SizeChanged="thumbnailPanel_SizeChanged"
1027
                Template="{DynamicResource RadSplitContainerControlTemplate}">
1028
                <!--  Width="250" MinWidth="250"  -->
1029
                <!--<telerik:RadPaneGroup Margin="0" Style="{DynamicResource Style_RadPanelGroup}">-->
1030
                <telerik:RadPaneGroup
1031
                    x:Name="PN_Navi"
1032
                    Margin="0"
1033
                    telerik:StyleManager.Theme="Office2016">
1034
                    <telerik:RadPane
1035
                        x:Name="radPanelPageNavi"
1036
                        telerik:RadDocking.FloatingSize="50,NaN"
1037
                        telerik:StyleManager.Theme="Office2016"
1038
                        CanFloat="False"
1039
                        CanUserClose="False"
1040
                        CanUserPin="True"
1041
                        ContextMenuTemplate="{x:Null}"
1042
                        Header="DOCUMENT"
1043
                        PaneHeaderVisibility="Visible">
1044
                        <!--<telerik:RadPane.TitleTemplate>
1045
                            <DataTemplate>
1046
                                <Grid>
1047
                                    <Grid.ColumnDefinitions>
1048
                                        <ColumnDefinition Width="Auto" />
1049
                                        <ColumnDefinition />
1050
                                    </Grid.ColumnDefinitions>
1051
                                    <ContentPresenter Content="{Binding}"
1052
                                                      Margin="0,0,75,0" />
1053
                                         <telerik:RadButton Grid.Column="1" Content="PIN"/>
1054
                                </Grid>
1055
                            </DataTemplate>
1056
                        </telerik:RadPane.TitleTemplate>-->
1057
                        <!--<Grid VerticalAlignment="Stretch" Margin="0">
1058
                            <Grid.RowDefinitions>
1059
                                <RowDefinition Height="30"/>
1060
                                <RowDefinition Height="*"/>
1061
                            </Grid.RowDefinitions>
1062
                            <Border BorderBrush="{Binding ElementName=leftPanel}" BorderThickness="0,1">
1063
                                <TextBlock Text="Thumbnail" Margin="5"/>
1064
                            </Border>
1065
                            <controls:PageNavigator x:Name="pageNavigator" Grid.Row="1"/>
1066
                        </Grid>-->
1067
                        <Grid>
1068
                            <!--<controls:PageNavigator x:Name="pageNavigator" Grid.Row="1" Visibility="Collapsed"/>-->
1069
                            <!--<Grid.RowDefinitions>
1070
                                <RowDefinition Height="Auto"/>
1071
                                <RowDefinition Height="*"/>
1072
                            </Grid.RowDefinitions>-->
1073
                            <!--<telerik:RadButton Content="Panorama" telerik:StyleManager.Theme="Office2016" FontSize="8"  Background="#FF0054B9" Foreground="White"
1074
                                       BorderThickness="0" CornerRadius="3" HorizontalAlignment="Right" Padding="5" Margin="5,10"/>-->
1075
                            <controls:Sample x:Name="pageNavigator" />
1076
                        </Grid>
1077

    
1078
                    </telerik:RadPane>
1079
                    <!--<telerik:RadPane Header="test" CanFloat="False" telerik:RadDocking.FloatingSize="50,NaN" CanUserClose="False" CanUserPin="True"
1080
                                     ContextMenuTemplate="{x:Null}" PaneHeaderVisibility="Visible" telerik:StyleManager.Theme="Office2016">
1081

1082
                        <Grid    xmlns:drag="clr-namespace:Telerik.Windows.DragDrop.Behaviors;assembly=Telerik.Windows.Controls" >
1083
                            <Grid.Resources>
1084
                                <Style TargetType="telerik:RadListBoxItem" BasedOn="{StaticResource RadListBoxItemStyle}">
1085
                                    <Setter Property="telerik:DragDropManager.AllowCapturedDrag" Value="True"/>
1086
                                </Style>
1087
                            </Grid.Resources>
1088
                            <telerik:RadListBox x:Name="lstSymbolPrivate" Background="#f5f5f5" FontWeight="Normal"  AllowDrop="True">
1089
                                <telerik:RadListBox.DragDropBehavior>
1090
                                    <telerik:ListBoxDragDropBehavior AllowReorder="True" />
1091
                                </telerik:RadListBox.DragDropBehavior>
1092
                                <telerik:RadListBox.DragVisualProvider >
1093
                                    <telerik:ListBoxDragVisualProvider />
1094
                                </telerik:RadListBox.DragVisualProvider>
1095
                            </telerik:RadListBox>
1096
                        </Grid>
1097

1098
                    </telerik:RadPane>-->
1099

    
1100
                </telerik:RadPaneGroup>
1101
            </telerik:RadSplitContainer>
1102

    
1103
            <telerik:RadSplitContainer
1104
                Width="300"
1105
                MaxWidth="300"
1106
                InitialPosition="DockedRight"
1107
                Orientation="Vertical">
1108
                <telerik:RadPaneGroup telerik:StyleManager.Theme="Office2016" IsTabStop="False">
1109
                    <telerik:RadPane
1110
                        x:Name="searchPane"
1111
                        telerik:StyleManager.Theme="Office2016"
1112
                        CanFloat="False"
1113
                        CanUserClose="False"
1114
                        ContextMenuTemplate="{x:Null}"
1115
                        Header="SEARCH"
1116
                        IsPinned="False"
1117
                        Visibility="Visible">
1118
                        <controls:SearchPanel x:Name="searchPanel_Instance" />
1119
                    </telerik:RadPane>
1120
                </telerik:RadPaneGroup>
1121
                <telerik:RadPaneGroup telerik:StyleManager.Theme="Office2016" IsTabStop="False">
1122
                    <telerik:RadPane
1123
                        x:Name="talkPane"
1124
                        telerik:StyleManager.Theme="Office2016"
1125
                        CanFloat="False"
1126
                        CanUserClose="False"
1127
                        ContextMenuTemplate="{x:Null}"
1128
                        Header="M-TALK"
1129
                        IsPinned="False">
1130
                        <messanger:ConversationView />
1131
                    </telerik:RadPane>
1132
                </telerik:RadPaneGroup>
1133
                <telerik:RadPaneGroup
1134
                    telerik:StyleManager.Theme="Office2016"
1135
                    IsTabStop="False"
1136
                    Visibility="Visible">
1137
                    <telerik:RadPane
1138
                        x:Name="SymbolPane"
1139
                        telerik:StyleManager.Theme="Office2016"
1140
                        CanFloat="False"
1141
                        CanUserClose="False"
1142
                        ContextMenuTemplate="{x:Null}"
1143
                        Header="SYMBOL"
1144
                        IsPinned="False"
1145
                        Visibility="Visible">
1146
                        <!--<controls:Symbol />-->
1147
                        <controls:Symbol x:Name="symbolPanel_Instance" />
1148
                        <!--<telerik:RadButton Click="Create_Symbol">Create</telerik:RadButton>-->
1149
                    </telerik:RadPane>
1150
                </telerik:RadPaneGroup>
1151
                <telerik:RadPaneGroup
1152
                    telerik:ProportionalStackPanel.RelativeSize="60, 100"
1153
                    telerik:StyleManager.Theme="Office2016"
1154
                    IsTabStop="False">
1155
                    <telerik:RadPane
1156
                        x:Name="FavoritePane"
1157
                        telerik:StyleManager.Theme="Office2016"
1158
                        CanFloat="False"
1159
                        CanUserClose="False"
1160
                        ContextMenuTemplate="{x:Null}"
1161
                        Header="FAVORITE"
1162
                        IsPinned="False"
1163
                        Visibility="Visible">
1164
                        <controls:FavoritePanel />
1165
                    </telerik:RadPane>
1166
                </telerik:RadPaneGroup>
1167
            </telerik:RadSplitContainer>
1168
            <telerik:RadSplitContainer InitialPosition="DockedBottom" Orientation="Horizontal">
1169
                <telerik:RadPaneGroup
1170
                    telerik:ProportionalStackPanel.RelativeSize="140, 100"
1171
                    telerik:StyleManager.Theme="Office2016"
1172
                    AllowDrop="False"
1173
                    IsTabStop="False">
1174
                    <telerik:RadPane
1175
                        x:Name="infoListPane"
1176
                        telerik:StyleManager.Theme="Office2016"
1177
                        CanFloat="False"
1178
                        CanUserClose="False"
1179
                        ContextMenuTemplate="{x:Null}"
1180
                        Header="User information List">
1181
                        <telerik:RadPane.TitleTemplate>
1182
                            <DataTemplate>
1183
                                <Grid HorizontalAlignment="Stretch">
1184
                                    <Grid.ColumnDefinitions>
1185
                                        <ColumnDefinition Width="*" />
1186
                                        <ColumnDefinition Width="Auto" />
1187
                                        <ColumnDefinition Width="*" />
1188
                                    </Grid.ColumnDefinitions>
1189
                                    <StackPanel HorizontalAlignment="Left" Orientation="Horizontal">
1190
                                        <TextBlock
1191
                                            Margin="1"
1192
                                            VerticalAlignment="Center"
1193
                                            Text="{Binding}" />
1194
                                        <telerik:RadRibbonButton
1195
                                            x:Name="btnConsolidate"
1196
                                            VerticalAlignment="Center"
1197
                                            telerik:StyleManager.Theme="Office2016"
1198
                                            Click="btnConsolidate_Click"
1199
                                            Loaded="btnConsolidate_Loaded"
1200
                                            ToolTipService.ToolTip="Consolidate">
1201
                                            <Border
1202
                                                Background="#E9F0F8"
1203
                                                BorderBrush="#839AB3"
1204
                                                BorderThickness="1">
1205
                                                <StackPanel Margin="1" Orientation="Horizontal">
1206
                                                    <!--<Image Width="15" Source="/DeepView;component/Images/MenuImage/document-new.png" />-->
1207
                                                    <TextBlock
1208
                                                        Margin="1"
1209
                                                        VerticalAlignment="Center"
1210
                                                        Foreground="Black"
1211
                                                        Text="Consolidate" />
1212
                                                </StackPanel>
1213
                                            </Border>
1214
                                        </telerik:RadRibbonButton>
1215
                                        <telerik:RadRibbonButton
1216
                                            x:Name="btnTeamConsolidate"
1217
                                            VerticalAlignment="Center"
1218
                                            telerik:StyleManager.Theme="Office2016"
1219
                                            Click="btnTeamConsolidate_Click"
1220
                                            Loaded="btnTeamConsolidate_Loaded"
1221
                                            ToolTipService.ToolTip="Consolidate">
1222
                                            <Border
1223
                                                Background="#E9F0F8"
1224
                                                BorderBrush="#839AB3"
1225
                                                BorderThickness="1">
1226
                                                <StackPanel Margin="1" Orientation="Horizontal">
1227
                                                    <!--<Image Width="15" Source="/DeepView;component/Images/MenuImage/document-team.png" />-->
1228
                                                    <TextBlock
1229
                                                        Margin="1"
1230
                                                        VerticalAlignment="Center"
1231
                                                        Foreground="Black"
1232
                                                        Text="Team Consolidate" />
1233
                                                </StackPanel>
1234
                                            </Border>
1235
                                        </telerik:RadRibbonButton>
1236
                                        <telerik:RadRibbonButton
1237
                                            x:Name="btnFinalPDF"
1238
                                            VerticalAlignment="Center"
1239
                                            telerik:StyleManager.Theme="Office2016"
1240
                                            Click="FinalPDFEvent"
1241
                                            Loaded="btnFinalPDF_Loaded"
1242
                                            ToolTipService.ToolTip="FinalPDF">
1243
                                            <Border
1244
                                                Background="#E9F0F8"
1245
                                                BorderBrush="#839AB3"
1246
                                                BorderThickness="1">
1247
                                                <StackPanel Margin="1" Orientation="Horizontal">
1248
                                                    <!--<Image Width="15" Source="/DeepView;component/Images/MenuImage/final_pdf2.png" />-->
1249
                                                    <TextBlock
1250
                                                        Margin="1"
1251
                                                        VerticalAlignment="Center"
1252
                                                        Foreground="Black"
1253
                                                        Text="Merged PDF" />
1254
                                                </StackPanel>
1255
                                            </Border>
1256
                                        </telerik:RadRibbonButton>
1257
                                        <telerik:RadRibbonButton
1258
                                            x:Name="btnConsolidateFinalPDF"
1259
                                            VerticalAlignment="Center"
1260
                                            telerik:StyleManager.Theme="Office2016"
1261
                                            Click="ConsolidateFinalPDFEvent"
1262
                                            Loaded="btnConsolidateFinalPDF_Loaded"
1263
                                            ToolTipService.ToolTip="Consolidate &amp; FinalPDF"
1264
                                            Visibility="Collapsed">
1265
                                            <Border
1266
                                                Background="#E9F0F8"
1267
                                                BorderBrush="#839AB3"
1268
                                                BorderThickness="1">
1269
                                                <StackPanel Margin="1" Orientation="Horizontal">
1270
                                                    <!--<Image Width="15" Source="/DeepView;component/Images/MenuImage/final_pdf2.png" />-->
1271
                                                    <TextBlock
1272
                                                        Margin="1"
1273
                                                        VerticalAlignment="Center"
1274
                                                        Foreground="Black"
1275
                                                        Text="Consolidate &amp; Merged PDF" />
1276
                                                </StackPanel>
1277
                                            </Border>
1278
                                        </telerik:RadRibbonButton>
1279
                                    </StackPanel>
1280
                                    <Line
1281
                                        Grid.Column="1"
1282
                                        Width="2"
1283
                                        Margin="5,0"
1284
                                        VerticalAlignment="Center"
1285
                                        Stroke="Black"
1286
                                        X1="2"
1287
                                        X2="2"
1288
                                        Y1="2"
1289
                                        Y2="24" />
1290
                                    <telerik:RadRibbonButton
1291
                                        x:Name="btnColorList"
1292
                                        Grid.Column="2"
1293
                                        HorizontalAlignment="Right"
1294
                                        VerticalAlignment="Center"
1295
                                        telerik:StyleManager.Theme="Office2016"
1296
                                        Click="btnColorList_Click"
1297
                                        ToolTipService.ToolTip="Color Change"
1298
                                        Visibility="Collapsed">
1299
                                        <Border
1300
                                            Background="#E9F0F8"
1301
                                            BorderBrush="#839AB3"
1302
                                            BorderThickness="1">
1303
                                            <Image Width="22" Source="/Resources/Images/MenuImage_New/rgb.png" />
1304
                                        </Border>
1305
                                    </telerik:RadRibbonButton>
1306
                                    <!--<StackPanel Grid.Column="1"
1307
                                                HorizontalAlignment="Right"
1308
                                                Orientation="Horizontal">
1309
                                        <telerik:RadRibbonButton VerticalAlignment="Center"
1310
                                                                 Click="ExpandButtonEvent_Click"
1311
                                                                 Tag="CLOSE"
1312
                                                                 telerik:StyleManager.Theme="Windows8"
1313
                                                                 ToolTipService.ToolTip="Expand On">
1314
                                        </telerik:RadRibbonButton>
1315

1316
                                        <telerik:RadRibbonButton VerticalAlignment="Center"
1317
                                                                 Click="ExpandButtonEvent_Click"
1318
                                                                 Tag="OPEN"
1319
                                                                 telerik:StyleManager.Theme="Windows8"
1320
                                                                 ToolTipService.ToolTip="Expand Off">
1321
                                            <Image Width="15"
1322
                                                   RenderTransformOrigin="0.5,0.5">
1323
                                                <Image.RenderTransform>
1324
                                                    <RotateTransform Angle="180" />
1325
                                                </Image.RenderTransform>
1326
                                            </Image>
1327
                                        </telerik:RadRibbonButton>
1328
                                    </StackPanel>-->
1329
                                </Grid>
1330
                            </DataTemplate>
1331
                        </telerik:RadPane.TitleTemplate>
1332
                        <telerik:RadGridView
1333
                            x:Name="gridViewMarkup"
1334
                            HorizontalContentAlignment="Center"
1335
                            telerik:StyleManager.Theme="Office2013"
1336
                            AutoExpandGroups="True"
1337
                            AutoGenerateColumns="False"
1338
                            CanUserDeleteRows="True"
1339
                            CanUserInsertRows="False"
1340
                            CanUserSortColumns="True"
1341
                            IsFilteringAllowed="False"
1342
                            IsReadOnly="False"
1343
                            MouseRightButtonDown="gridViewMarkup_MouseRightButtonDown"
1344
                            RowIndicatorVisibility="Collapsed"
1345
                            SelectionChanged="gridViewMarkup_SelectionChanged"
1346
                            SelectionMode="Multiple"
1347
                            SelectionUnit="FullRow"
1348
                            ShowGroupFooters="False"
1349
                            ShowGroupPanel="True"
1350
                            Sorted="GridViewMarkup_Sorted"
1351
                            Sorting="GridViewMarkup_Sorting">
1352
                            <!--  SelectedCellsChanged="gridViewMarkup_SelectedCellsChanged"  -->
1353
                            <!--<telerik:RadGridView.GroupDescriptors>
1354
                                <telerik:GroupDescriptor Member="Depatment" SortDirection="Ascending" DisplayContent = "DEPT" x:Name="gDept">
1355
                                    <telerik:GroupDescriptor.AggregateFunctions>
1356
                                        <telerik:CountFunction Caption="Entries count : " />
1357
                                    </telerik:GroupDescriptor.AggregateFunctions>
1358
                                </telerik:GroupDescriptor>
1359
                            </telerik:RadGridView.GroupDescriptors>-->
1360
                            <telerik:RadGridView.RowStyle>
1361
                                <Style TargetType="telerik:GridViewRow">
1362
                                    <Setter Property="HorizontalContentAlignment" Value="Center" />
1363
                                    <Setter Property="Background" Value="{Binding Path=Consolidate, Converter={StaticResource ConsolidationBackgroudConverter}}" />
1364
                                    <Setter Property="Visibility" Value="{Binding Path=IsPreviewUser, Converter={StaticResource previewerVisibleConverter}}" />
1365
                                    <!--<Setter Property="Template" Value="{StaticResource GridViewRowTemplate}" />-->
1366
                                </Style>
1367
                            </telerik:RadGridView.RowStyle>
1368
                            <telerik:RadGridView.Columns>
1369
                                <telerik:GridViewSelectColumn Width="Auto">
1370
                                    <telerik:GridViewSelectColumn.Header>
1371
                                        <CheckBox telerik:StyleManager.Theme="Office_Black" Click="gridViewMarkupAllSelect_Click" />
1372
                                    </telerik:GridViewSelectColumn.Header>
1373
                                </telerik:GridViewSelectColumn>
1374
                                <telerik:GridViewDataColumn Width="Auto" Header="Color">
1375
                                    <telerik:GridViewDataColumn.CellTemplate>
1376
                                        <DataTemplate>
1377
                                            <Grid>
1378
                                                <Grid>
1379
                                                    <!--<telerik:RadColorPicker Click="RadColorPicker_Click" SelectedColor="{Binding DisplayColor, Mode=TwoWay, Converter={StaticResource StringToColorConverter}}" />-->
1380
                                                    <Border Background="{Binding DisplayColor, Converter={StaticResource StringToColorBrushConverter}}" />
1381
                                                    <TextBlock Foreground="#00000000" Text="Color" />
1382
                                                </Grid>
1383
                                                <Grid VerticalAlignment="Center" Visibility="{Binding AvoidConsolidate, Converter={StaticResource BoolToVisibleConverter}}">
1384
                                                    <Image
1385
                                                        Height="15"
1386
                                                        Source="/KCOM;component/Resources/Images/MenuImage_New/lock_2.png"
1387
                                                        Stretch="Uniform" />
1388
                                                </Grid>
1389
                                            </Grid>
1390

    
1391
                                        </DataTemplate>
1392
                                    </telerik:GridViewDataColumn.CellTemplate>
1393
                                    <!--<telerik:GridViewDataColumn.CellEditTemplate>
1394
                                        <DataTemplate>
1395
                                            <telerik:RadColorPicker SelectedColor="{Binding DisplayColor, Mode=TwoWay, Converter={StaticResource StringToColorConverter}}" />
1396
                                        </DataTemplate>
1397
                                    </telerik:GridViewDataColumn.CellEditTemplate>-->
1398
                                </telerik:GridViewDataColumn>
1399
                                <telerik:GridViewDataColumn
1400
                                    Width="Auto"
1401
                                    DataMemberBinding="{Binding Depatment}"
1402
                                    Header="DEPT"
1403
                                    IsReadOnly="True">
1404
                                    <telerik:GridViewDataColumn.CellTemplate>
1405
                                        <DataTemplate>
1406
                                            <TextBlock Text="{Binding Depatment}" />
1407
                                        </DataTemplate>
1408
                                    </telerik:GridViewDataColumn.CellTemplate>
1409
                                </telerik:GridViewDataColumn>
1410
                                <telerik:GridViewDataColumn
1411
                                    Width="Auto"
1412
                                    DataMemberBinding="{Binding UserName}"
1413
                                    Header="NAME"
1414
                                    IsReadOnly="True">
1415
                                    <telerik:GridViewDataColumn.CellTemplate>
1416
                                        <DataTemplate>
1417
                                            <TextBlock Text="{Binding UserName, Mode=TwoWay}" />
1418
                                        </DataTemplate>
1419
                                    </telerik:GridViewDataColumn.CellTemplate>
1420
                                </telerik:GridViewDataColumn>
1421
                                <telerik:GridViewDataColumn
1422
                                    Width="Auto"
1423
                                    Header="UPDATETIME"
1424
                                    IsReadOnly="True">
1425
                                    <telerik:GridViewDataColumn.CellTemplate>
1426
                                        <DataTemplate>
1427
                                            <TextBlock Text="{Binding UpdateTime}" />
1428
                                        </DataTemplate>
1429
                                    </telerik:GridViewDataColumn.CellTemplate>
1430
                                </telerik:GridViewDataColumn>
1431
                                <telerik:GridViewDataColumn
1432
                                    Width="Auto"
1433
                                    Header="CONSOLIDATION"
1434
                                    IsReadOnly="True">
1435
                                    <telerik:GridViewDataColumn.CellTemplate>
1436
                                        <DataTemplate>
1437
                                            <!--<TextBlock Text="{Binding Consolidate}"/>-->
1438
                                            <Grid>
1439
                                                <Grid.ColumnDefinitions>
1440
                                                    <ColumnDefinition Width="Auto" />
1441
                                                    <ColumnDefinition Width="Auto" />
1442
                                                    <ColumnDefinition Width="Auto" />
1443
                                                </Grid.ColumnDefinitions>
1444

    
1445
                                                <TextBlock
1446
                                                    Grid.Column="0"
1447
                                                    Foreground="Red"
1448
                                                    Text="{Binding AvoidConsolidate, Converter={StaticResource AvoidStringConverter}}" />
1449
                                                <TextBlock
1450
                                                    Grid.Column="1"
1451
                                                    Foreground="Blue"
1452
                                                    Text="{Binding PartConsolidate, Converter={StaticResource TeamConsoliStringConverter}}" />
1453
                                                <TextBlock Grid.Column="2" Text="{Binding Consolidate, Converter={StaticResource ConsoliStringConverter}}" />
1454
                                                <!--
1455
                                                        <TextBlock HorizontalAlignment="Center" Grid.Column="2">
1456
                                                        <TextBlock.Text>
1457
                                                        <Binding Converter="{StaticResource ConsoliStringConverter}"/>
1458
                                                        </TextBlock.Text>
1459
                                                        </TextBlock>
1460
                                                -->
1461
                                            </Grid>
1462
                                        </DataTemplate>
1463
                                    </telerik:GridViewDataColumn.CellTemplate>
1464
                                </telerik:GridViewDataColumn>
1465

    
1466
                                <telerik:GridViewDataColumn
1467
                                    Width="Auto"
1468
                                    Header="DELETE"
1469
                                    IsReadOnly="True">
1470
                                    <telerik:GridViewDataColumn.CellTemplate>
1471
                                        <DataTemplate>
1472
                                            <Button
1473
                                                Click="DeleteCommentEvent"
1474
                                                CommandParameter="{Binding}"
1475
                                                Content="DELETE"
1476
                                                Visibility="{Binding userDelete, Converter={StaticResource BooleanToVisibilityConverter}}" />
1477
                                        </DataTemplate>
1478
                                    </telerik:GridViewDataColumn.CellTemplate>
1479
                                </telerik:GridViewDataColumn>
1480
                            </telerik:RadGridView.Columns>
1481
                        </telerik:RadGridView>
1482
                    </telerik:RadPane>
1483
                </telerik:RadPaneGroup>
1484
                <telerik:RadPaneGroup
1485
                    telerik:ProportionalStackPanel.RelativeSize="100, 100"
1486
                    telerik:StyleManager.Theme="Office2016"
1487
                    IsTabStop="False">
1488
                    <telerik:RadPane
1489
                        x:Name="historyPane"
1490
                        telerik:StyleManager.Theme="Office2016"
1491
                        CanFloat="False"
1492
                        CanUserClose="False"
1493
                        ContextMenuTemplate="{x:Null}"
1494
                        Header="Document History"
1495
                        Visibility="{Binding IsDocumentHistory, Source={x:Static common:ViewerDataModel.Instance}, Mode=TwoWay, Converter={StaticResource BoolToVisibleConverter}}">
1496
                        <Grid>
1497
                            <telerik:RadGridView
1498
                                x:Name="gridViewHistory"
1499
                                telerik:StyleManager.Theme="Office2013"
1500
                                AutoExpandGroups="False"
1501
                                AutoGenerateColumns="False"
1502
                                CanUserDeleteRows="True"
1503
                                CanUserInsertRows="False"
1504
                                IsFilteringAllowed="False"
1505
                                IsReadOnly="True"
1506
                                RowIndicatorVisibility="Collapsed"
1507
                                ShowGroupFooters="False"
1508
                                ShowGroupPanel="False">
1509
                                <telerik:RadGridView.Columns>
1510
                                    <telerik:GridViewDataColumn
1511
                                        Width="Auto"
1512
                                        Header="Slip No"
1513
                                        IsReadOnly="True"
1514
                                        IsVisible="{Binding IsDocumentHistory, Source={x:Static common:ViewerDataModel.Instance}, Mode=TwoWay}">
1515
                                        <telerik:GridViewDataColumn.CellTemplate>
1516
                                            <DataTemplate>
1517
                                                <telerik:RadButton
1518
                                                    Margin="5"
1519
                                                    Background="Transparent"
1520
                                                    BorderThickness="0"
1521
                                                    Click="EnsembleLink_Button_Click"
1522
                                                    Content="{Binding GroupNo}"
1523
                                                    Tag="{Binding EnsembleLink}" />
1524
                                            </DataTemplate>
1525
                                        </telerik:GridViewDataColumn.CellTemplate>
1526
                                    </telerik:GridViewDataColumn>
1527
                                    <telerik:GridViewDataColumn
1528
                                        Width="Auto"
1529
                                        Header="Doc No"
1530
                                        IsReadOnly="True">
1531
                                        <telerik:GridViewDataColumn.CellTemplate>
1532
                                            <DataTemplate>
1533
                                                <TextBlock HorizontalAlignment="Center" Text="{Binding DocNo}" />
1534
                                            </DataTemplate>
1535
                                        </telerik:GridViewDataColumn.CellTemplate>
1536
                                    </telerik:GridViewDataColumn>
1537
                                    <telerik:GridViewDataColumn
1538
                                        Width="Auto"
1539
                                        Header="Rev No"
1540
                                        IsReadOnly="True">
1541
                                        <telerik:GridViewDataColumn.CellTemplate>
1542
                                            <DataTemplate>
1543
                                                <TextBlock HorizontalAlignment="Center" Text="{Binding RevNo}" />
1544
                                            </DataTemplate>
1545
                                        </telerik:GridViewDataColumn.CellTemplate>
1546
                                    </telerik:GridViewDataColumn>
1547
                                    <telerik:GridViewDataColumn
1548
                                        Width="Auto"
1549
                                        Header="RESULT"
1550
                                        IsReadOnly="True"
1551
                                        IsVisible="{Binding IsDocumentHistory, Source={x:Static common:ViewerDataModel.Instance}, Mode=TwoWay}">
1552
                                        <telerik:GridViewDataColumn.CellTemplate>
1553
                                            <DataTemplate>
1554
                                                <TextBlock HorizontalAlignment="Center" Text="{Binding RESULT}" />
1555
                                            </DataTemplate>
1556
                                        </telerik:GridViewDataColumn.CellTemplate>
1557
                                    </telerik:GridViewDataColumn>
1558
                                    <telerik:GridViewDataColumn
1559
                                        telerik:StyleManager.Theme="Office2013"
1560
                                        CellStyle="{StaticResource GridViewAlign}"
1561
                                        DataMemberBinding="{Binding FROM_VENDOR}"
1562
                                        Header="File(in)"
1563
                                        HeaderTextAlignment="Center"
1564
                                        IsReadOnly="True"
1565
                                        IsVisible="{Binding IsDocumentHistory, Source={x:Static common:ViewerDataModel.Instance}, Mode=TwoWay}">
1566
                                        <telerik:GridViewDataColumn.CellTemplate>
1567
                                            <DataTemplate>
1568
                                                <Image
1569
                                                    Height="22"
1570
                                                    MouseLeftButtonDown="PdfLink_ButtonDown"
1571
                                                    Source="/KCOM;component/Resources/Images/MenuImage_New/PDF.png"
1572
                                                    Tag="{Binding FROM_VENDOR}"
1573
                                                    Visibility="{Binding FROM_VENDOR, Converter={StaticResource PDFVisibleConverter}}" />
1574
                                            </DataTemplate>
1575
                                        </telerik:GridViewDataColumn.CellTemplate>
1576
                                    </telerik:GridViewDataColumn>
1577
                                    <telerik:GridViewDataColumn
1578
                                        telerik:StyleManager.Theme="Office2013"
1579
                                        CellStyle="{StaticResource GridViewAlign}"
1580
                                        DataMemberBinding="{Binding TO_VENDOR}"
1581
                                        Header="File(out)"
1582
                                        HeaderTextAlignment="Center"
1583
                                        IsReadOnly="True"
1584
                                        IsVisible="{Binding IsDocumentHistory, Source={x:Static common:ViewerDataModel.Instance}, Mode=TwoWay}">
1585
                                        <telerik:GridViewDataColumn.CellTemplate>
1586
                                            <DataTemplate>
1587
                                                <Image
1588
                                                    Height="22"
1589
                                                    MouseLeftButtonDown="PdfLink_ButtonDown"
1590
                                                    Source="/KCOM;component/Resources/Images/MenuImage_New/PDF.png"
1591
                                                    Tag="{Binding TO_VENDOR}"
1592
                                                    Visibility="{Binding TO_VENDOR, Converter={StaticResource PDFVisibleConverter}}" />
1593
                                            </DataTemplate>
1594
                                        </telerik:GridViewDataColumn.CellTemplate>
1595
                                    </telerik:GridViewDataColumn>
1596

    
1597

    
1598
                                    <!--<telerik:GridViewDataColumn Header="FROM_VENDOR"  IsReadOnly="True" Width="Auto">
1599
                                    <telerik:GridViewDataColumn.CellTemplate>
1600
                                        <DataTemplate>
1601
                                            <telerik:RadRibbonButton telerik:StyleManager.Theme="Office2016">
1602
                                                <
1603
                                                <TextBlock Text="{Binding FROM_VENDOR}" HorizontalAlignment="Center"/>
1604
                                            </telerik:RadRibbonButton>
1605
                                        </DataTemplate>
1606
                                    </telerik:GridViewDataColumn.CellTemplate>
1607
                                </telerik:GridViewDataColumn>-->
1608
                                    <!--<telerik:GridViewDataColumn Header="TO_VENDOR"  IsReadOnly="True" Width="Auto">
1609
                                    <telerik:GridViewDataColumn.CellTemplate>
1610
                                        <DataTemplate>
1611
                                            <TextBlock Text="{Binding TO_VENDOR}" HorizontalAlignment="Center"/>
1612
                                        </DataTemplate>
1613
                                    </telerik:GridViewDataColumn.CellTemplate>
1614
                                </telerik:GridViewDataColumn>-->
1615
                                    <telerik:GridViewDataColumn
1616
                                        Width="Auto"
1617
                                        CellStyle="{StaticResource GridViewAlign}"
1618
                                        Header="SYNC"
1619
                                        HeaderTextAlignment="Center"
1620
                                        IsReadOnly="True">
1621
                                        <telerik:GridViewDataColumn.CellTemplate>
1622
                                            <DataTemplate>
1623
                                                <!--<Border Grid.Column="1" Background="#FF0054B9" CornerRadius="5" Margin="5" VerticalAlignment="Center" MinHeight="20"
1624
                                                        Visibility="{Binding IsSyncPossible, Converter={StaticResource BoolToVisibleConverter}}">
1625
                                                    <telerik:RadButton Content="OPEN" telerik:StyleManager.Theme="Office2016"  Foreground="White"
1626
                                                                       Background="Transparent" HorizontalAlignment="Stretch" Click="RadButton_Click" CommandParameter="{Binding}"/>
1627
                                                </Border>-->
1628
                                                <telerik:RadButton
1629
                                                    Margin="5"
1630
                                                    Background="Transparent"
1631
                                                    BorderThickness="0"
1632
                                                    Click="btnSync_Click"
1633
                                                    CommandParameter="{Binding}"
1634
                                                    Visibility="{Binding IsSyncPossible, Converter={StaticResource BoolToVisibleConverter}}">
1635
                                                    <telerik:RadButton.Content>
1636
                                                        <Image
1637
                                                            Width="20"
1638
                                                            Height="20"
1639
                                                            Source="/KCOM;component/Resources/Images/MenuImage_new/file.png"
1640
                                                            Stretch="Uniform" />
1641
                                                    </telerik:RadButton.Content>
1642
                                                </telerik:RadButton>
1643

    
1644
                                                <!--<TextBlock Text="{Binding IsSyncPossible}" HorizontalAlignment="Center"/>-->
1645
                                            </DataTemplate>
1646
                                        </telerik:GridViewDataColumn.CellTemplate>
1647
                                    </telerik:GridViewDataColumn>
1648
                                    <telerik:GridViewDataColumn
1649
                                        telerik:StyleManager.Theme="Office2013"
1650
                                        CellStyle="{StaticResource GridViewAlign}"
1651
                                        DataMemberBinding="{Binding EnsembleLink}"
1652
                                        Header="Attachments"
1653
                                        HeaderTextAlignment="Center"
1654
                                        IsReadOnly="True"
1655
                                        IsVisible="{Binding IsDocumentHistory, Source={x:Static common:ViewerDataModel.Instance}, Mode=TwoWay}">
1656
                                        <telerik:GridViewDataColumn.CellTemplate>
1657
                                            <DataTemplate>
1658
                                                <telerik:RadButton
1659
                                                    Margin="5"
1660
                                                    Background="Transparent"
1661
                                                    BorderThickness="0"
1662
                                                    Click="EnsembleLink_Button_Click"
1663
                                                    Content="Link"
1664
                                                    Tag="{Binding EnsembleLink}" />
1665
                                            </DataTemplate>
1666
                                        </telerik:GridViewDataColumn.CellTemplate>
1667
                                    </telerik:GridViewDataColumn>
1668
                                </telerik:RadGridView.Columns>
1669
                            </telerik:RadGridView>
1670
                            <telerik:RadBusyIndicator
1671
                                x:Name="gridViewHistory_Busy"
1672
                                telerik:StyleManager.Theme="Office2016"
1673
                                BusyContent="Sync Data Loading"
1674
                                IsBusy="False" />
1675
                        </Grid>
1676
                    </telerik:RadPane>
1677
                </telerik:RadPaneGroup>
1678
            </telerik:RadSplitContainer>
1679

    
1680

    
1681
        </telerik:RadDocking>
1682
    </Grid>
1683
</UserControl>
클립보드 이미지 추가 (최대 크기: 500 MB)