프로젝트

일반

사용자정보

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

markus / KCOM / Views / MainMenu.xaml @ 1305c420

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

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

    
274
                                        <Canvas x:Name="drawingRotateCanvas"
275
                                                        Panel.ZIndex="1"
276
                                                        Background="{Binding BackgroundImage, Mode=OneWay, Source={x:Static common:ViewerDataModel.Instance}}">
277
                                            <Canvas.RenderTransform>
278
                                                <TransformGroup>
279
                                                    <RotateTransform x:Name="rotate" Angle="0"/>
280
                                                    <TranslateTransform x:Name="translate" X="0" Y="0"/>
281
                                                </TransformGroup>
282
                                            </Canvas.RenderTransform>
283

    
284
                                            <ItemsControl ItemsSource="{Binding MarkupControls, Source={x:Static common:ViewerDataModel.Instance}}"
285
                                          Panel.ZIndex="1">
286
                                                <ItemsControl.ItemsPanel>
287
                                                    <ItemsPanelTemplate>
288
                                                        <Canvas />
289
                                                    </ItemsPanelTemplate>
290
                                                </ItemsControl.ItemsPanel>
291
                                            </ItemsControl>
292
                                            <ItemsControl ItemsSource="{Binding MarkupControls_USER, Source={x:Static common:ViewerDataModel.Instance}}"
293
                                          Panel.ZIndex="30">
294
                                                <ItemsControl.ItemsPanel>
295
                                                    <ItemsPanelTemplate>
296
                                                        <Canvas />
297
                                                    </ItemsPanelTemplate>
298
                                                </ItemsControl.ItemsPanel>
299
                                            </ItemsControl>
300
                                            <InkPresenter x:Name="inkBoard" HorizontalAlignment="Stretch" Panel.ZIndex="1" VerticalAlignment="Stretch"/>
301
                                            <InkCanvas x:Name="inkDrawingCanvas"
302
                                               Background="Transparent"
303
                                               IsEnabled="False"
304
                                               Panel.ZIndex="1"
305
                                               Strokes="{Binding MarkupPens, Source={x:Static common:ViewerDataModel.Instance}}" Height="1" Width="1">
306
                                                <!--<Rectangle Height="41" HorizontalAlignment="Left"  Name="rectangle1" Stroke="Black" VerticalAlignment="Top" Width="69" Fill="#FFDB1111" />-->
307
                                                <!--<Ellipse Height="41" HorizontalAlignment="Left"  Name="rectangle1" Stroke="Black" VerticalAlignment="Top" Width="69" Fill="#FFDB1111" />-->
308

    
309
                                                <!--<MarkupToPDF:RectangleControl Height="200" HorizontalAlignment="Center" Name="rectangle2" StrokeColor="Black" VerticalAlignment="Top" Width="00" FillColor="Red"/>-->
310
                                            </InkCanvas>
311
                                            <!--강인구 추가-->
312
                                            <!--<controls:ScaleDecodeImage Panel.ZIndex="0" x:Name="mainPanel"
313
                                                   Source="{Binding ImageViewPath,Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}" 
314
                                                    Width="{Binding ImageViewWidth,Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}"
315
                                                        Height="{Binding ImageViewHeight,Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}">
316
                                                </controls:ScaleDecodeImage>-->
317
                                            <Image Panel.ZIndex="0" x:Name="mainPanel" RenderOptions.BitmapScalingMode="HighQuality"
318
                                                       RenderOptions.EdgeMode="Unspecified" RenderOptions.ClearTypeHint="Enabled"
319
                                                        Source="{Binding ImageViewPath,Mode=OneWay, Source={x:Static common:ViewerDataModel.Instance}}" 
320
                                                         Width="{Binding ImageViewWidth,Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}"
321
                                                        Height="{Binding ImageViewHeight,Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}"
322
                                                           >
323
                                            </Image>
324
                                            <Canvas x:Name="SelectLayer" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Panel.ZIndex="32766"/>
325
                                            <Border x:Name="dragSelectionBorder" Visibility="Collapsed"
326
                                                    BorderBrush="Blue"
327
                                                    BorderThickness="1"
328
                                                    Background="LightBlue" 
329
                                                    CornerRadius="1"
330
                                                    Panel.ZIndex="1"
331
                                                    Opacity="0.5"/>
332
                                            <Border x:Name="dragCaptureBorder" Visibility="Collapsed"
333
                                                    BorderBrush="Blue"
334
                                                    BorderThickness="1"
335
                                                    Background="Blue" 
336
                                                    CornerRadius="1"
337
                                                    Panel.ZIndex="1"
338
                                                    Opacity="0.5"/>
339

    
340
                                            <Border x:Name="dragZoomBorder" Visibility="Collapsed"
341
                                                    BorderThickness="3"
342
                                                    Background="Transparent" 
343
                                                    CornerRadius="1"
344
                                                    Panel.ZIndex="1"
345
                                                    Opacity="1">
346
                                                <Border.BorderBrush>
347
                                                    <VisualBrush>
348
                                                        <VisualBrush.Visual>
349
                                                            <Rectangle StrokeDashArray="4 2" Stroke="Gray" StrokeThickness="1"
350
                                                                  Width="{Binding RelativeSource={RelativeSource AncestorType={x:Type Border}}, Path=ActualWidth}"
351
                                                                  Height="{Binding RelativeSource={RelativeSource AncestorType={x:Type Border}}, Path=ActualHeight}"/>
352
                                                        </VisualBrush.Visual>
353
                                                    </VisualBrush>
354
                                                </Border.BorderBrush>
355
                                            </Border>
356
                                            <!--<Border x:Name="dragZoomBorder"
357
                                                    BorderBrush="Black"
358
                                                    BorderThickness="1"
359
                                                    
360
                                                    Background="Transparent" 
361
                                                    CornerRadius="1"
362
                                                    Panel.ZIndex="1"
363
                                                    Opacity="0.5"/>-->
364
                                            <Canvas x:Name="SearchFocusBorder" Visibility="Collapsed"
365
                                                    Background="#50FF5D00" 
366
                                                    Panel.ZIndex="99999" IsHitTestVisible="False">
367
                                                <Border Visibility="Collapsed"
368
                                                    BorderThickness="1"
369
                                                    Background="#50FF5D00" 
370
                                                    CornerRadius="1"
371
                                                    Panel.ZIndex="99999" IsHitTestVisible="False"
372
                                                             Width="{Binding Width, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Canvas}}}"
373
                                                            Height="{Binding Height, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Canvas}}}"></Border>
374
                                            </Canvas>
375
                                            <!--<Border Background="Red" Panel.ZIndex="1" Opacity="0.5" Visibility="Visible" Width="100" Height="100" />-->
376
                                        </Canvas>
377

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

    
380
                                        <!--<Leadtools_Windows_Controls:RasterImageViewer x:Name="_imageViewer" Grid.Row="1" BorderThickness="0"/>-->
381
                                    </Canvas>
382
                                </ZoomAndPan:ZoomAndPanControl>
383
                                <telerik:RadBusyIndicator x:Name="busyIndicator" IsBusy="False" BusyContent="Saving..." Visibility="{Binding IsBusy, Converter={StaticResource BoolToVisibleConverter}, RelativeSource={RelativeSource Self}}"/>
384
                                <!--캡쳐 화면을 위한 보더-->
385
                                <Border Background="LightGray" 
386
                                        Opacity="{Binding Capture_Opacity, Source={x:Static common:ViewerDataModel.Instance}}"
387
                                        IsHitTestVisible="False" >
388
                                    <TextBlock HorizontalAlignment="Right" Foreground="Red" Text="캡쳐 진행 화면" FontSize="30"/>
389
                                </Border>
390
                                <Angle:AngleControl x:Name="MainAngle"
391
                                                        Grid.Column="1"
392
                                                        Grid.ColumnSpan="2"
393
                                                        Margin="10"
394
                                                        AngleValue="{Binding MarkupAngle, Mode=TwoWay, StringFormat=\{0:F0\}°, Source={x:Static common:ViewerDataModel.Instance}}"
395
                                                        HorizontalAlignment="Right"
396
                                                        VerticalAlignment="Top"
397
                                                        IsHitTestVisible="False"
398
                                                        Visibility="{Binding MarkupAngleVisibility, Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}" />
399
                            </Grid>
400
                        </telerik:RadDocumentPane>
401
                    </telerik:RadPaneGroup>
402
                    <telerik:RadPaneGroup Style="{DynamicResource Style_RadPanelGroup}">
403
                        <telerik:RadPane CanFloat="False" CanUserClose="False" Title="Document 1" PaneHeaderVisibility="Collapsed" x:Name="testPanel2" IsHidden="True" Margin="0,-20,0,0" >
404
                            <Grid Background="{DynamicResource KCOMColor_DocumnetBackgroundBrush}">
405
                                <ZoomAndPan:ZoomAndPanControl x:Name="zoomAndPanControl2" AllowDrop="True"
406
                                                              MouseWheel="zoomAndPanControl2_MouseWheel"
407
                                                              MouseMove="zoomAndPanControl2_MouseMove"
408
                                                              MouseDown="zoomAndPanControl2_MouseDown"
409
                                                              MouseUp="zoomAndPanControl2_MouseUp"
410
                                                              MouseLeave="zoomAndPanControl_MouseLeave"
411
                                                              ContentScale="{Binding Sync_ContentScale, Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}"
412
                                                              ContentOffsetX="{Binding Sync_ContentOffsetX, Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}"
413
                                                              ContentOffsetY="{Binding Sync_ContentOffsetY, Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}"
414
                                                              ConstrainedContentViewportWidth="{Binding ContentViewportWidth, Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}"
415
                                                              ConstrainedContentViewportHeight="{Binding ContentViewportHeight, Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}"
416
                                                              Background="LightGray">
417
                                    <Canvas x:Name="zoomAndPanCanvas2" Opacity="1" Background="Transparent">
418
                                        <Canvas x:Name="drawingRotateCanvas2"
419
                                                        Panel.ZIndex="1"
420
                                                        Background="{Binding BackgroundImage, Mode=OneWay, Source={x:Static common:ViewerDataModel.Instance}}">
421
                                            <Canvas.RenderTransform>
422
                                                <TransformGroup>
423
                                                    <RotateTransform x:Name="rotate2" Angle="0"/>
424
                                                    <TranslateTransform x:Name="translate2" X="0" Y="0"/>
425
                                                </TransformGroup>
426
                                            </Canvas.RenderTransform>
427
                                            <ItemsControl x:Name="itemsControl" ItemsSource="{Binding MarkupControls_Sync, Source={x:Static common:ViewerDataModel.Instance}}"
428
                                          Panel.ZIndex="1">
429
                                                <ItemsControl.ItemsPanel>
430
                                                    <ItemsPanelTemplate>
431
                                                        <Canvas >
432

    
433
                                                        </Canvas>
434
                                                    </ItemsPanelTemplate>
435
                                                </ItemsControl.ItemsPanel>
436
                                            </ItemsControl>
437
                                            <Image x:Name="ComparePanel"
438
                                                   Source="{Binding ImageViewPath_C, Source={x:Static common:ViewerDataModel.Instance}}" 
439
                                                   Width="{Binding ImageViewWidth_C, Source={x:Static common:ViewerDataModel.Instance}}" 
440
                                                   Height="{Binding ImageViewHeight_C, Source={x:Static common:ViewerDataModel.Instance}}" >
441
                                            </Image>
442
                                            <Canvas x:Name="canvas_compareBorder" IsHitTestVisible="False" 
443
                                                    Width="{Binding ActualWidth, ElementName=zoomAndPanCanvas2}"
444
                                                    Height="{Binding ActualHeight, ElementName=zoomAndPanCanvas2}" Panel.ZIndex="1">
445
                                                <!--RenderTransform="{Binding RenderTransform, ElementName=zoomAndPanControl2}"-->
446
                                                <Canvas.RenderTransform>
447
                                                    <TransformGroup>
448
                                                        <RotateTransform x:Name="rotate2CompareBorder" Angle="0"/>
449
                                                        <TranslateTransform x:Name="translate2CompareBorder" X="0" Y="0"/>
450
                                                    </TransformGroup>
451
                                                </Canvas.RenderTransform>
452
                                                <!--<Canvas.RenderTransform>
453
                                                    <RotateTransform Angle="{Binding RenderTransform, ElementName=zoomAndPanControl2}"/>
454
                                                </Canvas.RenderTransform>-->
455
                                            </Canvas>
456
                                            <!--강인구 추가-->
457
                                        </Canvas>
458
                                    </Canvas>
459
                                </ZoomAndPan:ZoomAndPanControl>
460
                                <Grid Background="#FF353535" Opacity="0.1" IsHitTestVisible="False"/>
461

    
462
                                <!--<Viewbox VerticalAlignment="Stretch" HorizontalAlignment="Stretch" StretchDirection="DownOnly" Stretch="Uniform" IsHitTestVisible="False">
463
                                    <TextBlock Text="Previous Document" HorizontalAlignment="Center" VerticalAlignment="Center" RenderTransformOrigin="0.5, 0.5" FontSize="50"
464
                                           Foreground="White" Opacity="0.5" FontWeight="Bold">
465
                                        <TextBlock.RenderTransform>
466
                                            <RotateTransform Angle="-25"/>
467
                                        </TextBlock.RenderTransform>
468
                                    </TextBlock>
469
                                </Viewbox>-->
470

    
471
                                <!--<telerik:RadExpander Header="OPEN" Background="Transparent" telerik:StyleManager.Theme="Office2016"
472
                                                     ExpandDirection="Right" VerticalAlignment="Top" HorizontalAlignment="Left">-->
473
                                <Grid Height="Auto" VerticalAlignment="Top" >
474
                                    <Grid.RowDefinitions>
475
                                        <RowDefinition/>
476
                                        <RowDefinition/>
477
                                    </Grid.RowDefinitions>
478
                                    <!--<Border Background="#3b3838" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Opacity="0.5" Grid.RowSpan="2"/>-->
479
                                    <Border Background="Black" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Opacity="0.5" Grid.RowSpan="2" BorderThickness="0"/>
480
                                    <StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
481
                                        <!--<TextBlock Text="ReadOnly Mode" Foreground="#FFFF9A25" VerticalAlignment="Center" Margin="10"/>-->
482
                                        <TextBlock Text="Rev.A" Foreground="#FFFF9A25" VerticalAlignment="Center" Margin="10" x:Name="tlSyncRev"/>
483
                                        <TextBlock Text="Current Page : 1" Foreground="White" VerticalAlignment="Center"  x:Name="tlSyncPageNum"/>
484
                                    </StackPanel>
485
                                    <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
486
                                        <!--<telerik:RadToggleButton x:Name="CompareMode" IsChecked="False" Content="Compare"  Margin="5" Checked="SyncCompare_Click" Unchecked="SyncCompare_Click" BorderThickness="0" telerik:StyleManager.Theme="Office2013"
487
                                                                       Style="{DynamicResource RadToggleSwtichButtonStyle}" Width="Auto" Padding="10,0"/>-->
488
                                        <!--<telerik:RadRibbonToggleButton x:Name="UserList" Content="User List" Foreground="white"  Margin="5" Click="SyncUserListExpender_Click" BorderThickness="0" telerik:StyleManager.Theme="Office2013" VerticalAlignment="Center"/>-->
489

    
490
                                        <toggle:HorizontalToggleSwitch x:Name="Sync" CheckedContent="Sync" UncheckedContent="Sync" Width="75" IsChecked="False" ThumbSize="25"
491
                                                                       FontSize="10" FontWeight="Normal" BorderBrush="Transparent" Opacity="0.6"
492
                                                                       Margin="5" Checked="Sync_Click" Unchecked="Sync_Click" BorderThickness="0" telerik:StyleManager.Theme="Office2013"/>
493

    
494
                                        <toggle:HorizontalToggleSwitch x:Name="UserList" CheckedContent="User List" UncheckedContent="User List" Width="75" IsChecked="False" ThumbSize="25"
495
                                                                       FontSize="10" FontWeight="Normal" BorderBrush="Transparent" Opacity="0.6"
496
                                                                       Margin="5" Checked="SyncUserListExpender_Click" Unchecked="SyncUserListExpender_Click" BorderThickness="0" telerik:StyleManager.Theme="Office2013"/>
497

    
498
                                        <toggle:HorizontalToggleSwitch x:Name="CompareMode" CheckedContent="Compare On" UncheckedContent="Compare Off" Width="90" IsChecked="False" ThumbSize="25"
499
                                                                       FontSize="10" FontWeight="Normal" BorderBrush="Transparent" Opacity="0.6"
500
                                                                       Margin="5" Checked="SyncCompare_Click" Unchecked="SyncCompare_Click" BorderThickness="0" telerik:StyleManager.Theme="Office2013"/>
501

    
502
                                        <toggle:HorizontalToggleSwitch x:Name="MarkupMode" CheckedContent="Pdf" UncheckedContent="Markup" Width="75" IsChecked="False" ThumbSize="25"
503
                                                                       FontSize="10" FontWeight="Normal" BorderBrush="Transparent" Opacity="0.6" Visibility="Collapsed"
504
                                                                       Margin="5" Checked="SyncChange_Click" Unchecked="SyncChange_Click" BorderThickness="0" telerik:StyleManager.Theme="Office2013"/>
505

    
506
                                        <toggle:HorizontalToggleSwitch x:Name="BalanceMode" CheckedContent="Balance On" UncheckedContent="Balance Off" Width="90" IsChecked="False" ThumbSize="25"
507
                                                                       FontSize="10" FontWeight="Normal" BorderBrush="Transparent" Opacity="0.6"
508
                                                                       Margin="5" Visibility="Collapsed" Checked="SyncPageBalance_Click" Unchecked="SyncPageBalance_Click" BorderThickness="0" telerik:StyleManager.Theme="Office2013"/>
509
                                        <toggle:HorizontalToggleSwitch x:Name="OriginalSizeMode" CheckedContent="Original Size" UncheckedContent="Uniform Size" Width="90" IsChecked="False" ThumbSize="25"
510
                                                                       FontSize="10" FontWeight="Normal" BorderBrush="Transparent" Opacity="0.6"
511
                                                                       Checked="OriginalSizeMode_Click" Unchecked="OriginalSizeMode_Click"
512
                                                                       Margin="5"  BorderThickness="0" telerik:StyleManager.Theme="Office2013"/>
513

    
514
                                        <!--<telerik:RadRibbonToggleButton x:Name="MArkupMode" Content="Markup Mode" Foreground="White"  Margin="5"  Click="SyncChange_Click" BorderThickness="0" telerik:StyleManager.Theme="Office2013"/>-->
515
                                        <!--<telerik:RadRibbonToggleButton x:Name="BalanceMode" Content="Balance Mode" Foreground="White"  Margin="5" Click="SyncPageBalance_Click" BorderThickness="0" telerik:StyleManager.Theme="Office2013"/>-->
516
                                        <telerik:RadPathButton  Margin="5"  Height="10" Width="20" Style="{StaticResource IconPathButton}" Click="SyncPageChange_Click" PathGeometry="{telerik:RadGlyph Glyph={StaticResource GlyphArrowChevronUp}}" Tag="-1" telerik:StyleManager.Theme="Office2013" VerticalAlignment="Center">
517
                                            <!--<Image Height="20"
518
                                                               Source="/KCOM;component/Resources/Images/MenuImage_New/up-arrow.png"
519
                                                               Stretch="Uniform" />-->
520
                                        </telerik:RadPathButton>
521
                                        <telerik:RadPathButton Margin="5" Height="10" Width="20" Style="{StaticResource IconPathButton}"  Click="SyncPageChange_Click" PathGeometry="{telerik:RadGlyph Glyph={StaticResource GlyphArrowChevronDown}}" Tag="1" telerik:StyleManager.Theme="Office2013" VerticalAlignment="Center">
522
                                            <!--<Image Height="20"
523
                                                               Source="/KCOM;component/Resources/Images/MenuImage_New/up-arrow.png" RenderTransformOrigin="0.5 0.5"
524
                                                               Stretch="Uniform">
525
                                                <Image.RenderTransform>
526
                                                    <RotateTransform Angle="180"/>
527
                                                </Image.RenderTransform>
528
                                            </Image>-->
529
                                        </telerik:RadPathButton>
530
                                        <telerik:RadPathButton Margin="5" Height="10" Width="20" Style="{StaticResource IconPathButton}" Click="SyncRotation_Click" PathGeometry="{telerik:RadGlyph Glyph={StaticResource GlyphReloadSmall}}" Tag="1" telerik:StyleManager.Theme="Office2013" VerticalAlignment="Center"/>
531
                                        <telerik:RadPathButton Margin="5" Height="10" Width="20" Style="{StaticResource IconPathButton}"  Click="SyncRotation_Click" PathGeometry="{telerik:RadGlyph Glyph={StaticResource GlyphResetSmall}}" Tag="-1" telerik:StyleManager.Theme="Office2013" VerticalAlignment="Center"/>
532
                                        <telerik:RadPathButton  Margin="5" Height="10" Width="20" Style="{StaticResource IconPathButton}"   Click="SyncExit_Click" PathGeometry="{telerik:RadGlyph Glyph={StaticResource GlyphClose}}" telerik:StyleManager.Theme="Office2013" VerticalAlignment="Center">
533
                                            <!--<Image Height="20"
534
                                                               Source="/KCOM;component/Resources/Images/MenuImage_New/cancel.png"
535
                                                               Stretch="Uniform" />-->
536
                                        </telerik:RadPathButton>
537
                                    </StackPanel>
538
                                    <telerik:RadGridView telerik:StyleManager.Theme="Office2013" ShowGroupPanel="False" ShowGroupFooters="False" AutoExpandGroups="False"  x:Name="gridViewRevMarkup"
539
                                             AutoGenerateColumns="False" HorizontalContentAlignment="Center" SelectionChanged="gridViewRevMarkup_SelectionChanged" SelectionMode="Multiple" BorderThickness="0"
540
                                                      CanUserFreezeColumns ="False" Visibility="Collapsed"  GridLinesVisibility="None" 
541
                                             CanUserDeleteRows="True" CanUserInsertRows="False" IsFilteringAllowed="False" RowIndicatorVisibility="Collapsed" Grid.Row="1">
542
                                        <telerik:RadGridView.HeaderRowStyle>
543
                                            <Style TargetType="telerik:GridViewHeaderRow">
544
                                                <Setter Property="BorderThickness" Value="0"/>
545
                                                <Setter Property="Background" Value="Red"/>
546
                                                <Setter Property="Foreground" Value="White"/>
547
                                                <Setter Property="HorizontalContentAlignment" Value="Center"/>
548
                                                <Setter Property="FontWeight" Value="Black"/>
549
                                                <Setter Property="telerik:StyleManager.Theme" Value="Office2013"/>
550
                                            </Style>
551
                                        </telerik:RadGridView.HeaderRowStyle>
552
                                        <telerik:RadGridView.RowStyle>
553
                                            <Style TargetType="telerik:GridViewRow">
554
                                                <Setter Property="HorizontalContentAlignment" Value="Center"/>
555
                                                <Setter Property="Background" Value="{Binding Path=Consolidate, Converter={StaticResource ConsolidationBackgroudConverter}}" />
556
                                                <Setter Property="Foreground" Value="White"/>
557
                                            </Style>
558
                                        </telerik:RadGridView.RowStyle>
559
                                        <telerik:RadGridView.Columns>
560
                                            <telerik:GridViewSelectColumn Width="Auto"  HeaderCellStyle="{StaticResource GridViewHeaderStyle}">
561
                                                <telerik:GridViewSelectColumn.Header>
562
                                                    <telerik:RadRibbonToggleButton  telerik:StyleManager.Theme="Office2016"
563
                                                                           Visibility="Collapsed" Width="Auto">
564
                                                        <telerik:RadRibbonToggleButton.Content>
565
                                                            <Image HorizontalAlignment="Center"
566
                                                           VerticalAlignment="Center"
567
                                                           Source="/KCOM;component/Resources/Images/MenuImage/check.png" />
568
                                                        </telerik:RadRibbonToggleButton.Content>
569
                                                    </telerik:RadRibbonToggleButton>
570
                                                </telerik:GridViewSelectColumn.Header>
571
                                            </telerik:GridViewSelectColumn>
572
                                            <telerik:GridViewDataColumn Width="Auto"  HeaderCellStyle="{StaticResource GridViewHeaderStyle}"
573
                                                                Header="Color" 
574
                                                                IsReadOnly="True">
575
                                                <telerik:GridViewDataColumn.CellTemplate>
576
                                                    <DataTemplate>
577
                                                        <Grid>
578
                                                            <Grid>
579
                                                                <Rectangle Margin="0,2,2,2" Fill="{Binding DisplayColor, Converter={StaticResource StringToColorConverter}}" />
580
                                                                <TextBlock Foreground="#00000000" Text="Color" />
581
                                                            </Grid>
582
                                                            <Grid VerticalAlignment="Center" Visibility="{Binding AvoidConsolidate, Converter={StaticResource BoolToVisibleConverter}}">
583
                                                                <Image Height="15"
584
                                                               Source="/KCOM;component/Resources/Images/MenuImage/lock_2.png"
585
                                                               Stretch="Uniform" />
586
                                                            </Grid>
587
                                                        </Grid>
588

    
589
                                                    </DataTemplate>
590
                                                </telerik:GridViewDataColumn.CellTemplate>
591
                                            </telerik:GridViewDataColumn>
592
                                            <telerik:GridViewDataColumn Header="DEPT"  IsReadOnly="True"  Width="Auto" HeaderCellStyle="{StaticResource GridViewHeaderStyle}">
593
                                                <telerik:GridViewDataColumn.CellTemplate>
594
                                                    <DataTemplate>
595
                                                        <TextBlock Text="{Binding Depatment}"  FontSize="12"/>
596
                                                    </DataTemplate>
597
                                                </telerik:GridViewDataColumn.CellTemplate>
598
                                            </telerik:GridViewDataColumn>
599
                                            <telerik:GridViewDataColumn Header="NAME"  IsReadOnly="True" Width="Auto"  HeaderCellStyle="{StaticResource GridViewHeaderStyle}">
600
                                                <telerik:GridViewDataColumn.CellTemplate>
601
                                                    <DataTemplate>
602
                                                        <TextBlock Text="{Binding UserName, Mode=TwoWay}" FontSize="10"/>
603
                                                    </DataTemplate>
604
                                                </telerik:GridViewDataColumn.CellTemplate>
605
                                            </telerik:GridViewDataColumn>
606
                                            <telerik:GridViewDataColumn Header="CONSOLIDATION"  IsReadOnly="True" Width="Auto"  HeaderCellStyle="{StaticResource GridViewHeaderStyle}">
607
                                                <telerik:GridViewDataColumn.CellTemplate>
608
                                                    <DataTemplate>
609
                                                        <!--<TextBlock Text="{Binding Consolidate}"/>-->
610
                                                        <Grid>
611
                                                            <Grid.ColumnDefinitions>
612
                                                                <ColumnDefinition Width="Auto" />
613
                                                                <ColumnDefinition Width="Auto" />
614
                                                                <ColumnDefinition Width="Auto" />
615
                                                            </Grid.ColumnDefinitions>
616

    
617
                                                            <TextBlock Grid.Column="0"
618
                                                               Foreground="Red"
619
                                                               Text="{Binding AvoidConsolidate,
620
                                                                              Converter={StaticResource AvoidStringConverter}}" />
621
                                                            <TextBlock Grid.Column="1"
622
                                                               Foreground="Blue"
623
                                                               Text="{Binding PartConsolidate,
624
                                                                              Converter={StaticResource TeamConsoliStringConverter}}" />
625
                                                            <TextBlock Grid.Column="2" Text="{Binding Consolidate, Converter={StaticResource ConsoliStringConverter}}" />
626
                                                            <!--
627
                                                        <TextBlock HorizontalAlignment="Center" Grid.Column="2">
628
                                                        <TextBlock.Text>
629
                                                        <Binding Converter="{StaticResource ConsoliStringConverter}"/>
630
                                                        </TextBlock.Text>
631
                                                        </TextBlock>
632
                                                    -->
633
                                                        </Grid>
634
                                                    </DataTemplate>
635
                                                </telerik:GridViewDataColumn.CellTemplate>
636
                                            </telerik:GridViewDataColumn>
637

    
638
                                            <telerik:GridViewDataColumn Header="Comment Move"  IsReadOnly="True" Width="Auto"  HeaderCellStyle="{StaticResource GridViewHeaderStyle}">
639
                                                <telerik:GridViewDataColumn.CellTemplate>
640
                                                    <DataTemplate>
641
                                                        <telerik:RadButton telerik:StyleManager.Theme="Office2016" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Content="COPY" PreviewMouseDown="Comment_Move" />
642
                                                        <!--<TextBlock Text="{Binding UserName, Mode=TwoWay}" FontSize="10"/>-->
643
                                                    </DataTemplate>
644
                                                </telerik:GridViewDataColumn.CellTemplate>
645
                                            </telerik:GridViewDataColumn>
646

    
647
                                            <telerik:GridViewDataColumn Header=""  IsReadOnly="True" Width="*"  HeaderCellStyle="{StaticResource GridViewHeaderStyle}">
648
                                            </telerik:GridViewDataColumn>
649
                                        </telerik:RadGridView.Columns>
650
                                    </telerik:RadGridView>
651
                                </Grid>
652
                                <!--</telerik:RadExpander>-->
653

    
654

    
655
                            </Grid>
656
                        </telerik:RadPane>
657
                    </telerik:RadPaneGroup>
658
                </telerik:RadSplitContainer>
659
            </telerik:RadDocking.DocumentHost>
660
            <telerik:RadSplitContainer Orientation="Vertical" InitialPosition="DockedLeft" x:Name="thumbnailPanel" SizeChanged="thumbnailPanel_SizeChanged" Template="{DynamicResource RadSplitContainerControlTemplate}">
661
                <!-- Width="250" MinWidth="250" -->
662
                <!--<telerik:RadPaneGroup Margin="0" Style="{DynamicResource Style_RadPanelGroup}">-->
663
                <telerik:RadPaneGroup Margin="0" telerik:StyleManager.Theme="Office2016" x:Name="PN_Navi">
664
                    <telerik:RadPane Header="DOCUMENT" x:Name="radPanelPageNavi" CanFloat="False" telerik:RadDocking.FloatingSize="50,NaN" CanUserClose="False" CanUserPin="True"
665
                                     ContextMenuTemplate="{x:Null}" PaneHeaderVisibility="Visible" telerik:StyleManager.Theme="Office2016">
666
                        <!--<telerik:RadPane.TitleTemplate>
667
                            <DataTemplate>
668
                                <Grid>
669
                                    <Grid.ColumnDefinitions>
670
                                        <ColumnDefinition Width="Auto" />
671
                                        <ColumnDefinition />
672
                                    </Grid.ColumnDefinitions>
673
                                    <ContentPresenter Content="{Binding}"
674
                                                      Margin="0,0,75,0" />
675
                                         <telerik:RadButton Grid.Column="1" Content="PIN"/>
676
                                </Grid>
677
                            </DataTemplate>
678
                        </telerik:RadPane.TitleTemplate>-->
679
                        <!--<Grid VerticalAlignment="Stretch" Margin="0">
680
                            <Grid.RowDefinitions>
681
                                <RowDefinition Height="30"/>
682
                                <RowDefinition Height="*"/>
683
                            </Grid.RowDefinitions>
684
                            <Border BorderBrush="{Binding ElementName=leftPanel}" BorderThickness="0,1">
685
                                <TextBlock Text="Thumbnail" Margin="5"/>
686
                            </Border>
687
                            <controls:PageNavigator x:Name="pageNavigator" Grid.Row="1"/>
688
                        </Grid>-->
689
                        <Grid>
690
                            <!--<controls:PageNavigator x:Name="pageNavigator" Grid.Row="1" Visibility="Collapsed"/>-->
691
                            <!--<Grid.RowDefinitions>
692
                                <RowDefinition Height="Auto"/>
693
                                <RowDefinition Height="*"/>
694
                            </Grid.RowDefinitions>-->
695
                            <!--<telerik:RadButton Content="Panorama" telerik:StyleManager.Theme="Office2016" FontSize="8"  Background="#FF0054B9" Foreground="White"
696
                                       BorderThickness="0" CornerRadius="3" HorizontalAlignment="Right" Padding="5" Margin="5,10"/>-->
697
                            <controls:Sample x:Name="pageNavigator"/>
698
                        </Grid>
699

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

704
                        <Grid    xmlns:drag="clr-namespace:Telerik.Windows.DragDrop.Behaviors;assembly=Telerik.Windows.Controls" >
705
                            <Grid.Resources>
706
                                <Style TargetType="telerik:RadListBoxItem" BasedOn="{StaticResource RadListBoxItemStyle}">
707
                                    <Setter Property="telerik:DragDropManager.AllowCapturedDrag" Value="True"/>
708
                                </Style>
709
                            </Grid.Resources>
710
                            <telerik:RadListBox x:Name="lstSymbolPrivate" Background="#f5f5f5" FontWeight="Normal"  AllowDrop="True">
711
                                <telerik:RadListBox.DragDropBehavior>
712
                                    <telerik:ListBoxDragDropBehavior AllowReorder="True" />
713
                                </telerik:RadListBox.DragDropBehavior>
714
                                <telerik:RadListBox.DragVisualProvider >
715
                                    <telerik:ListBoxDragVisualProvider />
716
                                </telerik:RadListBox.DragVisualProvider>
717
                            </telerik:RadListBox>
718
                        </Grid>
719

720
                    </telerik:RadPane>-->
721

    
722
                </telerik:RadPaneGroup>
723
            </telerik:RadSplitContainer>
724

    
725
            <telerik:RadSplitContainer Orientation="Vertical" InitialPosition="DockedRight" MaxWidth="300" Width="300">
726
                <telerik:RadPaneGroup  IsTabStop="False" telerik:StyleManager.Theme="Office2016">
727
                    <telerik:RadPane Header="SEARCH" Visibility="Visible" CanFloat="False" CanUserClose="False"  ContextMenuTemplate="{x:Null}" IsPinned="False" telerik:StyleManager.Theme="Office2016" x:Name="searchPane">
728
                        <controls:SearchPanel x:Name="searchPanel_Instance"/>
729
                    </telerik:RadPane>
730
                </telerik:RadPaneGroup>
731
                <telerik:RadPaneGroup  IsTabStop="False" telerik:StyleManager.Theme="Office2016">
732
                    <telerik:RadPane Header="M-TALK" CanFloat="False" CanUserClose="False" ContextMenuTemplate="{x:Null}" IsPinned="False" telerik:StyleManager.Theme="Office2016"  x:Name="talkPane">
733
                        <messanger:ConversationView/>
734
                    </telerik:RadPane>
735
                </telerik:RadPaneGroup>
736
                <telerik:RadPaneGroup  IsTabStop="False" Visibility="Visible" telerik:StyleManager.Theme="Office2016">
737
                    <telerik:RadPane Header="SYMBOL" Visibility="Visible" CanFloat="False" CanUserClose="False"  ContextMenuTemplate="{x:Null}" IsPinned="False" telerik:StyleManager.Theme="Office2016"  x:Name="SymbolPane">
738
                        <!--<controls:Symbol />-->
739
                        <controls:Symbol x:Name="symbolPanel_Instance"/>
740
                        <!--<telerik:RadButton Click="Create_Symbol">Create</telerik:RadButton>-->
741
                    </telerik:RadPane>
742
                </telerik:RadPaneGroup>
743
                <telerik:RadPaneGroup  IsTabStop="False" telerik:StyleManager.Theme="Office2016"  telerik:ProportionalStackPanel.RelativeSize="60, 100">
744
                    <telerik:RadPane Header="FAVORITE" Visibility="Visible"  CanFloat="False" CanUserClose="False"  ContextMenuTemplate="{x:Null}" IsPinned="False" telerik:StyleManager.Theme="Office2016"  x:Name="FavoritePane">
745
                        <controls:FavoritePanel/>
746
                    </telerik:RadPane>
747
                </telerik:RadPaneGroup>
748
            </telerik:RadSplitContainer>
749
            <telerik:RadSplitContainer Orientation="Horizontal" InitialPosition="DockedBottom">
750
                <telerik:RadPaneGroup IsTabStop="False"  telerik:StyleManager.Theme="Office2016" telerik:ProportionalStackPanel.RelativeSize="140, 100" AllowDrop="False">
751
                    <telerik:RadPane Header="User information List"  CanFloat="False" CanUserClose="False"  ContextMenuTemplate="{x:Null}" telerik:StyleManager.Theme="Office2016"  x:Name="infoListPane">
752
                        <telerik:RadPane.TitleTemplate>
753
                            <DataTemplate>
754
                                <Grid>
755
                                    <Grid.ColumnDefinitions>
756
                                        <ColumnDefinition Width="*" />
757
                                        <ColumnDefinition Width="Auto" />
758
                                    </Grid.ColumnDefinitions>
759

    
760
                                    <StackPanel Orientation="Horizontal">
761
                                        <TextBlock Margin="1"
762
                                                   VerticalAlignment="Center"
763
                                                   Text="{Binding}" />
764
                                        <telerik:RadRibbonButton x:Name="btnConsolidate"
765
                                                                 VerticalAlignment="Center"
766
                                                                 Click="btnConsolidate_Click"
767
                                                                 Loaded="btnConsolidate_Loaded"
768
                                                                 telerik:StyleManager.Theme="Office2016"
769
                                                                 ToolTipService.ToolTip="Consolidate">
770
                                            <Border Background="#E9F0F8"
771
                                                    BorderBrush="#839AB3"
772
                                                    BorderThickness="1">
773
                                                <StackPanel Margin="1" Orientation="Horizontal">
774
                                                    <!--<Image Width="15" Source="/DeepView;component/Images/MenuImage/document-new.png" />-->
775
                                                    <TextBlock Margin="1"
776
                                                               VerticalAlignment="Center"
777
                                                               Foreground="Black"
778
                                                               Text="Consolidate" />
779
                                                </StackPanel>
780
                                            </Border>
781
                                        </telerik:RadRibbonButton>
782
                                        <telerik:RadRibbonButton x:Name="btnTeamConsolidate"
783
                                                                 VerticalAlignment="Center"
784
                                                                 Click="btnTeamConsolidate_Click"
785
                                                                 Loaded="btnTeamConsolidate_Loaded"
786
                                                                 telerik:StyleManager.Theme="Office2016"
787
                                                                 ToolTipService.ToolTip="Consolidate">
788
                                            <Border Background="#E9F0F8"
789
                                                    BorderBrush="#839AB3"
790
                                                    BorderThickness="1">
791
                                                <StackPanel Margin="1" Orientation="Horizontal">
792
                                                    <!--<Image Width="15" Source="/DeepView;component/Images/MenuImage/document-team.png" />-->
793
                                                    <TextBlock Margin="1"
794
                                                               VerticalAlignment="Center"
795
                                                               Foreground="Black"
796
                                                               Text="Team Consolidate" />
797
                                                </StackPanel>
798
                                            </Border>
799
                                        </telerik:RadRibbonButton>
800
                                        <telerik:RadRibbonButton x:Name="btnFinalPDF"
801
                                                                 VerticalAlignment="Center"
802
                                                                 Click="FinalPDFEvent"
803
                                                                 Loaded="btnFinalPDF_Loaded"
804
                                                                 telerik:StyleManager.Theme="Office2016"
805
                                                                 ToolTipService.ToolTip="FinalPDF">
806
                                            <Border Background="#E9F0F8"
807
                                                    BorderBrush="#839AB3"
808
                                                    BorderThickness="1">
809
                                                <StackPanel Margin="1" Orientation="Horizontal">
810
                                                    <!--<Image Width="15" Source="/DeepView;component/Images/MenuImage/final_pdf2.png" />-->
811
                                                    <TextBlock Margin="1"
812
                                                               VerticalAlignment="Center"
813
                                                               Foreground="Black"
814
                                                               Text="Merged PDF" />
815
                                                </StackPanel>
816
                                            </Border>
817
                                        </telerik:RadRibbonButton>
818
                                        <telerik:RadRibbonButton x:Name="btnConsolidateFinalPDF" Visibility="Collapsed"
819
                                                                 VerticalAlignment="Center"
820
                                                                 Click="ConsolidateFinalPDFEvent"
821
                                                                 Loaded="btnConsolidateFinalPDF_Loaded"
822
                                                                 telerik:StyleManager.Theme="Office2016"
823
                                                                 ToolTipService.ToolTip="Consolidate &amp; FinalPDF">
824
                                            <Border Background="#E9F0F8"
825
                                                    BorderBrush="#839AB3"
826
                                                    BorderThickness="1">
827
                                                <StackPanel Margin="1" Orientation="Horizontal">
828
                                                    <!--<Image Width="15" Source="/DeepView;component/Images/MenuImage/final_pdf2.png" />-->
829
                                                    <TextBlock Margin="1"
830
                                                               VerticalAlignment="Center"
831
                                                               Foreground="Black"
832
                                                               Text="Consolidate &amp; Merged PDF" />
833
                                                </StackPanel>
834
                                            </Border>
835
                                        </telerik:RadRibbonButton>
836
                                    </StackPanel>
837
                                    <!--<StackPanel Grid.Column="1"
838
                                                HorizontalAlignment="Right"
839
                                                Orientation="Horizontal">
840
                                        <telerik:RadRibbonButton VerticalAlignment="Center"
841
                                                                 Click="ExpandButtonEvent_Click"
842
                                                                 Tag="CLOSE"
843
                                                                 telerik:StyleManager.Theme="Windows8"
844
                                                                 ToolTipService.ToolTip="Expand On">
845
                                        </telerik:RadRibbonButton>
846

847
                                        <telerik:RadRibbonButton VerticalAlignment="Center"
848
                                                                 Click="ExpandButtonEvent_Click"
849
                                                                 Tag="OPEN"
850
                                                                 telerik:StyleManager.Theme="Windows8"
851
                                                                 ToolTipService.ToolTip="Expand Off">
852
                                            <Image Width="15"
853
                                                   RenderTransformOrigin="0.5,0.5">
854
                                                <Image.RenderTransform>
855
                                                    <RotateTransform Angle="180" />
856
                                                </Image.RenderTransform>
857
                                            </Image>
858
                                        </telerik:RadRibbonButton>
859
                                    </StackPanel>-->
860
                                </Grid>
861
                            </DataTemplate>
862
                        </telerik:RadPane.TitleTemplate>
863
                        <telerik:RadGridView IsReadOnly="True" telerik:StyleManager.Theme="Office2013" ShowGroupPanel="True" ShowGroupFooters="False" AutoExpandGroups="True"  x:Name="gridViewMarkup"
864
                                             AutoGenerateColumns="False" HorizontalContentAlignment="Center" SelectionChanged="gridViewMarkup_SelectionChanged" SelectionMode="Multiple"
865
                                             CanUserDeleteRows="True" CanUserInsertRows="False" IsFilteringAllowed="False" RowIndicatorVisibility="Collapsed" 
866
                                             Sorting="GridViewMarkup_Sorting" Sorted="GridViewMarkup_Sorted"
867
                                             CanUserSortColumns ="True" >
868
                            <!--<telerik:RadGridView.GroupDescriptors>
869
                                <telerik:GroupDescriptor Member="Depatment" SortDirection="Ascending" DisplayContent = "DEPT" x:Name="gDept">
870
                                    <telerik:GroupDescriptor.AggregateFunctions>
871
                                        <telerik:CountFunction Caption="Entries count : " />
872
                                    </telerik:GroupDescriptor.AggregateFunctions>
873
                                </telerik:GroupDescriptor>
874
                            </telerik:RadGridView.GroupDescriptors>-->
875
                            <telerik:RadGridView.RowStyle>
876
                                <Style TargetType="telerik:GridViewRow">
877
                                    <Setter Property="HorizontalContentAlignment" Value="Center"/>
878
                                    <Setter Property="Background" Value="{Binding Path=Consolidate, Converter={StaticResource ConsolidationBackgroudConverter}}" />
879
                                    <Setter Property="Visibility" Value="{Binding Path=IsPreviewUser,Converter={StaticResource previewerVisibleConverter}}"/>
880
                                    <!--<Setter Property="Template" Value="{StaticResource GridViewRowTemplate}" />-->
881
                                </Style>
882
                            </telerik:RadGridView.RowStyle>
883
                            <telerik:RadGridView.Columns>
884
                                <telerik:GridViewSelectColumn Width="Auto">
885
                                    <telerik:GridViewSelectColumn.Header>
886
                                        <CheckBox telerik:StyleManager.Theme="Office_Black" Click="gridViewMarkupAllSelect_Click"/>
887
                                    </telerik:GridViewSelectColumn.Header>
888
                                </telerik:GridViewSelectColumn>
889
                                <telerik:GridViewDataColumn Width="Auto"
890
                                                                Header="Color"
891
                                                                IsReadOnly="True">
892
                                    <telerik:GridViewDataColumn.CellTemplate>
893
                                        <DataTemplate>
894
                                            <Grid>
895
                                                <Grid>
896
                                                    <Rectangle Margin="0,2,2,2" Fill="{Binding DisplayColor, Converter={StaticResource StringToColorConverter}}" />
897
                                                    <TextBlock Foreground="#00000000" Text="Color" />
898
                                                </Grid>
899
                                                <Grid VerticalAlignment="Center" Visibility="{Binding AvoidConsolidate, Converter={StaticResource BoolToVisibleConverter}}">
900
                                                    <Image Height="15"
901
                                                               Source="/KCOM;component/Resources/Images/MenuImage/lock_2.png"
902
                                                               Stretch="Uniform" />
903
                                                </Grid>
904
                                            </Grid>
905

    
906
                                        </DataTemplate>
907
                                    </telerik:GridViewDataColumn.CellTemplate>
908
                                </telerik:GridViewDataColumn>
909
                                <telerik:GridViewDataColumn Header="DEPT"  IsReadOnly="True"  Width="Auto" DataMemberBinding="{Binding Depatment}" >
910
                                    <telerik:GridViewDataColumn.CellTemplate>
911
                                        <DataTemplate>
912
                                            <TextBlock Text="{Binding Depatment}"/>
913
                                        </DataTemplate>
914
                                    </telerik:GridViewDataColumn.CellTemplate>
915
                                </telerik:GridViewDataColumn>
916
                                <telerik:GridViewDataColumn Header="NAME" IsReadOnly="True" Width="Auto" DataMemberBinding="{Binding UserName}">
917
                                    <telerik:GridViewDataColumn.CellTemplate>
918
                                        <DataTemplate>
919
                                            <TextBlock Text="{Binding UserName, Mode=TwoWay}"/>
920
                                        </DataTemplate>
921
                                    </telerik:GridViewDataColumn.CellTemplate>
922
                                </telerik:GridViewDataColumn>
923
                                <telerik:GridViewDataColumn Header="UPDATETIME"  IsReadOnly="True" Width="Auto">
924
                                    <telerik:GridViewDataColumn.CellTemplate>
925
                                        <DataTemplate>
926
                                            <TextBlock Text="{Binding UpdateTime}"/>
927
                                        </DataTemplate>
928
                                    </telerik:GridViewDataColumn.CellTemplate>
929
                                </telerik:GridViewDataColumn>
930
                                <telerik:GridViewDataColumn Header="CONSOLIDATION"  IsReadOnly="True" Width="Auto">
931
                                    <telerik:GridViewDataColumn.CellTemplate>
932
                                        <DataTemplate>
933
                                            <!--<TextBlock Text="{Binding Consolidate}"/>-->
934
                                            <Grid>
935
                                                <Grid.ColumnDefinitions>
936
                                                    <ColumnDefinition Width="Auto" />
937
                                                    <ColumnDefinition Width="Auto" />
938
                                                    <ColumnDefinition Width="Auto" />
939
                                                </Grid.ColumnDefinitions>
940

    
941
                                                <TextBlock Grid.Column="0"
942
                                                               Foreground="Red"
943
                                                               Text="{Binding AvoidConsolidate,
944
                                                                              Converter={StaticResource AvoidStringConverter}}" />
945
                                                <TextBlock Grid.Column="1"
946
                                                               Foreground="Blue"
947
                                                               Text="{Binding PartConsolidate,
948
                                                                              Converter={StaticResource TeamConsoliStringConverter}}" />
949
                                                <TextBlock Grid.Column="2" Text="{Binding Consolidate, Converter={StaticResource ConsoliStringConverter}}" />
950
                                                <!--
951
                                                        <TextBlock HorizontalAlignment="Center" Grid.Column="2">
952
                                                        <TextBlock.Text>
953
                                                        <Binding Converter="{StaticResource ConsoliStringConverter}"/>
954
                                                        </TextBlock.Text>
955
                                                        </TextBlock>
956
                                                    -->
957
                                            </Grid>
958
                                        </DataTemplate>
959
                                    </telerik:GridViewDataColumn.CellTemplate>
960
                                </telerik:GridViewDataColumn>
961

    
962
                                <telerik:GridViewDataColumn Header="DELETE"  IsReadOnly="True" Width="Auto">
963
                                    <telerik:GridViewDataColumn.CellTemplate>
964
                                        <DataTemplate>
965
                                            <Button Content="DELETE" Visibility="{Binding userDelete, Converter={StaticResource BooleanToVisibilityConverter}}" Click="DeleteCommentEvent" CommandParameter="{Binding}"/>
966
                                        </DataTemplate>
967
                                    </telerik:GridViewDataColumn.CellTemplate>
968
                                </telerik:GridViewDataColumn>
969
                            </telerik:RadGridView.Columns>
970
                        </telerik:RadGridView>
971
                    </telerik:RadPane>
972
                </telerik:RadPaneGroup>
973
                <telerik:RadPaneGroup IsTabStop="False" telerik:StyleManager.Theme="Office2016"
974
                                      telerik:ProportionalStackPanel.RelativeSize="100, 100">
975
                    <telerik:RadPane Header="Document History"  CanFloat="False" CanUserClose="False"  ContextMenuTemplate="{x:Null}" telerik:StyleManager.Theme="Office2016"  x:Name="historyPane"
976
                                     Visibility="{Binding IsDocumentHistory, Source={x:Static common:ViewerDataModel.Instance},Mode=TwoWay, Converter={StaticResource BoolToVisibleConverter}}">
977
                        <Grid>
978
                            <telerik:RadGridView IsReadOnly="True" telerik:StyleManager.Theme="Office2013" ShowGroupPanel="False" ShowGroupFooters="False" AutoExpandGroups="False"  x:Name="gridViewHistory"
979
                                             CanUserDeleteRows="True" CanUserInsertRows="False" IsFilteringAllowed="False" RowIndicatorVisibility="Collapsed" AutoGenerateColumns="False">
980
                                <telerik:RadGridView.Columns>
981
                                    <telerik:GridViewDataColumn Header="Slip No"  IsReadOnly="True" Width="Auto"  IsVisible="{Binding IsDocumentHistory, Source={x:Static common:ViewerDataModel.Instance},Mode=TwoWay}">
982
                                        <telerik:GridViewDataColumn.CellTemplate>
983
                                            <DataTemplate>
984
                                                <telerik:RadButton Content="{Binding GroupNo}" Tag="{Binding EnsembleLink}" Margin="5" BorderThickness="0" Click="EnsembleLink_Button_Click" Background="Transparent">
985
                                                </telerik:RadButton>
986
                                            </DataTemplate>
987
                                        </telerik:GridViewDataColumn.CellTemplate>
988
                                    </telerik:GridViewDataColumn>
989
                                    <telerik:GridViewDataColumn Header="Doc No"  IsReadOnly="True" Width="Auto">
990
                                        <telerik:GridViewDataColumn.CellTemplate>
991
                                            <DataTemplate>
992
                                                <TextBlock Text="{Binding DocNo}" HorizontalAlignment="Center"/>
993
                                            </DataTemplate>
994
                                        </telerik:GridViewDataColumn.CellTemplate>
995
                                    </telerik:GridViewDataColumn>
996
                                    <telerik:GridViewDataColumn Header="Rev No"  IsReadOnly="True" Width="Auto">
997
                                        <telerik:GridViewDataColumn.CellTemplate>
998
                                            <DataTemplate>
999
                                                <TextBlock Text="{Binding RevNo}" HorizontalAlignment="Center"/>
1000
                                            </DataTemplate>
1001
                                        </telerik:GridViewDataColumn.CellTemplate>
1002
                                    </telerik:GridViewDataColumn>
1003
                                    <telerik:GridViewDataColumn Header="RESULT"  IsReadOnly="True" Width="Auto"  IsVisible="{Binding IsDocumentHistory, Source={x:Static common:ViewerDataModel.Instance},Mode=TwoWay}">
1004
                                        <telerik:GridViewDataColumn.CellTemplate>
1005
                                            <DataTemplate>
1006
                                                <TextBlock Text="{Binding RESULT}" HorizontalAlignment="Center"/>
1007
                                            </DataTemplate>
1008
                                        </telerik:GridViewDataColumn.CellTemplate>
1009
                                    </telerik:GridViewDataColumn>
1010
                                    <telerik:GridViewDataColumn CellStyle="{StaticResource GridViewAlign}"  IsReadOnly="True" IsVisible="{Binding IsDocumentHistory, Source={x:Static common:ViewerDataModel.Instance},Mode=TwoWay}"
1011
                                                                        DataMemberBinding="{Binding FROM_VENDOR}"
1012
                                                                        Header="File(in)" telerik:StyleManager.Theme="Office2013"
1013
                                                                        HeaderTextAlignment="Center">
1014
                                        <telerik:GridViewDataColumn.CellTemplate>
1015
                                            <DataTemplate>
1016
                                                <Image Height="22" Source="/KCOM;component/Resources/Images/MenuImage_New/PDF.png" 
1017
                                                       MouseLeftButtonDown="PdfLink_ButtonDown" Tag="{Binding FROM_VENDOR}"
1018
                                                       Visibility="{Binding FROM_VENDOR, Converter={StaticResource PDFVisibleConverter}}"/>
1019
                                            </DataTemplate>
1020
                                        </telerik:GridViewDataColumn.CellTemplate>
1021
                                    </telerik:GridViewDataColumn>
1022
                                    <telerik:GridViewDataColumn CellStyle="{StaticResource GridViewAlign}"  IsVisible="{Binding IsDocumentHistory, Source={x:Static common:ViewerDataModel.Instance},Mode=TwoWay}"
1023
                                                                        DataMemberBinding="{Binding TO_VENDOR}" IsReadOnly="True"
1024
                                                                        Header="File(out)" telerik:StyleManager.Theme="Office2013"
1025
                                                                        HeaderTextAlignment="Center">
1026
                                        <telerik:GridViewDataColumn.CellTemplate>
1027
                                            <DataTemplate>
1028
                                                <Image Height="22" Source="/KCOM;component/Resources/Images/MenuImage_New/PDF.png" 
1029
                                                       MouseLeftButtonDown="PdfLink_ButtonDown" Tag="{Binding TO_VENDOR}"
1030
                                                       Visibility="{Binding TO_VENDOR, Converter={StaticResource PDFVisibleConverter}}"/>
1031
                                            </DataTemplate>
1032
                                        </telerik:GridViewDataColumn.CellTemplate>
1033
                                    </telerik:GridViewDataColumn>
1034

    
1035

    
1036
                                    <!--<telerik:GridViewDataColumn Header="FROM_VENDOR"  IsReadOnly="True" Width="Auto">
1037
                                    <telerik:GridViewDataColumn.CellTemplate>
1038
                                        <DataTemplate>
1039
                                            <telerik:RadRibbonButton telerik:StyleManager.Theme="Office2016">
1040
                                                <
1041
                                                <TextBlock Text="{Binding FROM_VENDOR}" HorizontalAlignment="Center"/>
1042
                                            </telerik:RadRibbonButton>                                            
1043
                                        </DataTemplate>
1044
                                    </telerik:GridViewDataColumn.CellTemplate>
1045
                                </telerik:GridViewDataColumn>-->
1046
                                    <!--<telerik:GridViewDataColumn Header="TO_VENDOR"  IsReadOnly="True" Width="Auto">
1047
                                    <telerik:GridViewDataColumn.CellTemplate>
1048
                                        <DataTemplate>
1049
                                            <TextBlock Text="{Binding TO_VENDOR}" HorizontalAlignment="Center"/>
1050
                                        </DataTemplate>
1051
                                    </telerik:GridViewDataColumn.CellTemplate>
1052
                                </telerik:GridViewDataColumn>-->
1053
                                    <telerik:GridViewDataColumn Header="SYNC"  IsReadOnly="True" Width="Auto" CellStyle="{StaticResource GridViewAlign}" HeaderTextAlignment="Center">
1054
                                        <telerik:GridViewDataColumn.CellTemplate>
1055
                                            <DataTemplate>
1056
                                                <!--<Border Grid.Column="1" Background="#FF0054B9" CornerRadius="5" Margin="5" VerticalAlignment="Center" MinHeight="20"
1057
                                                        Visibility="{Binding IsSyncPossible, Converter={StaticResource BoolToVisibleConverter}}">
1058
                                                    <telerik:RadButton Content="OPEN" telerik:StyleManager.Theme="Office2016"  Foreground="White"
1059
                                                                       Background="Transparent" HorizontalAlignment="Stretch" Click="RadButton_Click" CommandParameter="{Binding}"/>
1060
                                                </Border>-->
1061
                                                <telerik:RadButton  Margin="5" BorderThickness="0" Click="btnSync_Click" CommandParameter="{Binding}" Background="Transparent"
1062
                                                                   Visibility="{Binding IsSyncPossible, Converter={StaticResource BoolToVisibleConverter}}">
1063
                                                    <telerik:RadButton.Content>
1064
                                                        <Image Source="/KCOM;component/Resources/Images/MenuImage_new/file.png" Stretch="Uniform" Width="20" Height="20"/>
1065
                                                    </telerik:RadButton.Content>
1066
                                                </telerik:RadButton>
1067

    
1068
                                                <!--<TextBlock Text="{Binding IsSyncPossible}" HorizontalAlignment="Center"/>-->
1069
                                            </DataTemplate>
1070
                                        </telerik:GridViewDataColumn.CellTemplate>
1071
                                    </telerik:GridViewDataColumn>
1072
                                    <telerik:GridViewDataColumn Header="Attachments" CellStyle="{StaticResource GridViewAlign}" IsVisible="{Binding IsDocumentHistory, Source={x:Static common:ViewerDataModel.Instance},Mode=TwoWay}"
1073
                                                                        DataMemberBinding="{Binding EnsembleLink}" IsReadOnly="True"
1074
                                                                        telerik:StyleManager.Theme="Office2013"
1075
                                                                        HeaderTextAlignment="Center">
1076
                                        <telerik:GridViewDataColumn.CellTemplate>
1077
                                            <DataTemplate>
1078
                                                <telerik:RadButton Content="Link" Tag="{Binding EnsembleLink}" Margin="5" BorderThickness="0" Click="EnsembleLink_Button_Click" Background="Transparent">
1079

    
1080
                                                </telerik:RadButton>
1081
                                            </DataTemplate>
1082
                                        </telerik:GridViewDataColumn.CellTemplate>
1083
                                    </telerik:GridViewDataColumn>
1084
                                </telerik:RadGridView.Columns>
1085
                            </telerik:RadGridView>
1086
                            <telerik:RadBusyIndicator x:Name="gridViewHistory_Busy" IsBusy="False" telerik:StyleManager.Theme="Office2016"
1087
                                                  BusyContent="Sync Data Loading"/>
1088
                        </Grid>
1089
                    </telerik:RadPane>
1090
                </telerik:RadPaneGroup>
1091
            </telerik:RadSplitContainer>
1092

    
1093

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