프로젝트

일반

사용자정보

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

markus / KCOM / Views / MainMenu.xaml @ 65768148

이력 | 보기 | 이력해설 | 다운로드 (80.3 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" xmlns:toggle="clr-namespace:ToggleSwitch;assembly=ToggleSwitch"
3
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:telerikGrid="clr-namespace:Telerik.Windows.Controls.GridView;assembly=Telerik.Windows.Controls.GridView"
4
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
5
             xmlns:converter="clr-namespace:KCOM.Common.Converter"
6
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"  xmlns:common="clr-namespace:KCOM.Common"
7
             xmlns:controls="clr-namespace:KCOM.Controls"  xmlns:ZoomAndPan="clr-namespace:ZoomAndPan;assembly=ZoomAndPan"
8
             mc:Ignorable="d"   
9
             d:DesignHeight="768" d:DesignWidth="1080" IsTabStop="True" xmlns:messanger="clr-namespace:KCOM.Messenger"
10
             xmlns:Angle="clr-namespace:MarkupToPDF.Controls.Angle;assembly=MarkupToPDF">
11
    <UserControl.Resources>
12
        <converter:ZeroToCollapsedConverter x:Key="ZeroToCollapsedConverter"/>
13
        <Style TargetType="{x:Type telerikGrid:GridViewHeaderCell}" x:Key="GridViewHeaderStyle">
14
            <Setter Property="VerticalContentAlignment" Value="Center"/>
15
            <Setter Property="HorizontalContentAlignment" Value="Center"/>
16
            <Setter Property="BorderThickness" Value="0"/>
17
            <Setter Property="Background">
18
                <Setter.Value>
19
                    <SolidColorBrush Color="Black" Opacity="0.5"/>
20
                </Setter.Value>
21
            </Setter>
22
            <!--<Setter Property="Background" Value="Black"/>-->
23
            <Setter Property="BorderBrush" Value="White"/>
24
            <Setter Property="Foreground" Value="White"/>
25
            <Setter Property="telerik:StyleManager.Theme" Value="Office2013"/>
26
            <!--<Setter Property="FontWeight" Value="Black"/>-->
27
        </Style>
28
        <Style x:Key="GridViewAlign" TargetType="{x:Type telerikGrid:GridViewCell}">
29
            <Setter Property="HorizontalContentAlignment" Value="Center" />
30
            <Setter Property="TextBlock.TextDecorations">
31
                <Setter.Value>
32
                    <TextDecorationCollection>
33
                        <TextDecoration Location="Underline" />
34
                        <TextDecoration Location="Overline" />
35
                        <TextDecoration  
36
                PenThicknessUnit="FontRecommended">
37
                            <TextDecoration.Pen>
38
                                <Pen Thickness="1.0">
39
                                    <Pen.Brush>
40
                                        <LinearGradientBrush Opacity="0.5"
41
                                StartPoint="0,0.5"  EndPoint="1,0.5">
42
                                            <GradientStop Color="Yellow" Offset="0" />
43
                                            <GradientStop Color="Red" Offset="1" />
44
                                        </LinearGradientBrush>
45
                                    </Pen.Brush>
46
                                </Pen>
47
                            </TextDecoration.Pen>
48
                        </TextDecoration>
49
                    </TextDecorationCollection>
50
                </Setter.Value>
51
            </Setter>
52
        </Style>
53
        <converter:PDFVisibleConverter x:Key="PDFVisibleConverter"/>
54
        <converter:ConsolidationBackgroudConverter x:Key="ConsolidationBackgroudConverter" />
55
        <converter:StringToColorConverter x:Key="StringToColorConverter"/>
56
        <converter:AvoidStringConverter x:Key="AvoidStringConverter" />
57
        <converter:TeamConsolidateStringConverter x:Key="TeamConsoliStringConverter" />
58
        <converter:ConsolidationStringConverter x:Key="ConsoliStringConverter" />
59
        <converter:BoolToVisibleConverter x:Key="BoolToVisibleConverter" />
60
        <converter:PreviewerVisibleConverter x:Key="previewerVisibleConverter"/>
61
    </UserControl.Resources>
62
    <Grid Background="{DynamicResource KCOMColor_MainBrush}">
63
        <!--<Grid.ColumnDefinitions>
64
            <ColumnDefinition Width="Auto"/>
65
            <ColumnDefinition Width="*"/>
66
        </Grid.ColumnDefinitions>-->
67
        <!--<Border Background="#fff5f5f5" BorderBrush="#d5d5d5" BorderThickness="0">
68
            -->
69
        <!--<controls:PageNavigator x:Name="pageNavigator" Grid.Row="1" Width="200"/>-->
70
        <!--
71
            <telerik:RadLayoutControl SelectedItem="{x:Null}" VirtualizingStackPanel.VirtualizationMode="Recycling" ScrollViewer.VerticalScrollBarVisibility="Hi">
72
                <telerik:LayoutControlTabGroup Template="{DynamicResource TabControlTemplate}" telerik:StyleManager.Theme="Office2016">
73
                    <telerik:LayoutControlTabGroupItem Header="Thumbnail">
74
                        <telerik:LayoutControlGroup BorderBrush="Transparent" Padding="5" Margin="0,-3">                            
75
                            <controls:PageNavigator x:Name="pageNavigator" Grid.Row="1" Width="300"/>                            
76
                        </telerik:LayoutControlGroup>
77
                    </telerik:LayoutControlTabGroupItem>
78
                    <telerik:LayoutControlTabGroupItem Header="Bookmark">
79
                        <telerik:LayoutControlGroup BorderBrush="Transparent">
80
                            <Border Background="Blue"/>
81
                        </telerik:LayoutControlGroup>
82
                    </telerik:LayoutControlTabGroupItem>
83
                </telerik:LayoutControlTabGroup>
84
            </telerik:RadLayoutControl>
85
        </Border>-->
86
        <!--<Grid.ColumnDefinitions>
87
            <ColumnDefinition Width="Auto"/>
88
            <ColumnDefinition Width="*"/>
89
            <ColumnDefinition Width="Auto"/>
90
        </Grid.ColumnDefinitions>-->
91
        <!--<Border Background="{DynamicResource Office2016Color_PrimaryBrush}">
92
            <Border Background="White" Margin="50"/>
93
        </Border>-->
94
        <telerik:RadDocking BorderThickness="0" Padding="0" Background="{DynamicResource KCOMColor_MainBrush}" Grid.Column="1">
95
            <telerik:RadDocking.DocumentHost>
96
                <telerik:RadSplitContainer Background="Transparent" Margin="0,-1,0,0">
97
                    <telerik:RadPaneGroup Style="{DynamicResource Style_RadPanelGroup}">
98
                        <telerik:RadDocumentPane x:Name="MainDocumentPanel" Header="VP-320A-728063" CanFloat="False" CanUserClose="False" Title="Document 1" PaneHeaderVisibility="Collapsed" Margin="0,-20,0,0">
99
                            <telerik:RadDocumentPane.HeaderTemplate>
100
                                <DataTemplate>
101
                                    <Border Margin="0,0,0,0"/>
102
                                </DataTemplate>
103
                            </telerik:RadDocumentPane.HeaderTemplate>
104
                            <!--<Grid Background="{DynamicResource KCOMColor_AlternativeBrush}">-->
105
                            <Grid Background="{DynamicResource KCOMColor_DocumnetBackgroundBrush}">
106
                                <Rectangle Name="rect" Margin="50,50,0,0" Width="100" Height="100" Fill="LightBlue"/>
107
                                <Popup Name="floatingTip" AllowsTransparency="True" Placement="Relative" PlacementTarget="{Binding ElementName=rect}">
108
                                    <TextBlock x:Name="txtBatch" Foreground="Red" FontSize="20" Text="Mark Control을 그립니다."/>
109
                                </Popup>
110
                                <ZoomAndPan:ZoomAndPanControl x:Name="zoomAndPanControl"
111
                                                              MouseWheel="zoomAndPanControl_MouseWheel"
112
                                                              MouseDown="zoomAndPanControl_MouseDown"
113
                                                              MouseMove="zoomAndPanControl_MouseMove"
114
                                                              MouseUp="zoomAndPanControl_MouseUp"
115
                                                              MouseLeave="zoomAndPanControl_MouseLeave"
116
                                                              ScaleChanged="ZoomAndPanControl_ScaleChanged"
117
                                                              MouseDoubleClick="zoomAndPanControl_MouseDoubleClick"
118
                                                              ContentScale="{Binding ContentScale, Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}"
119
                                                              ContentOffsetX="{Binding ContentOffsetX, Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}"
120
                                                              ContentOffsetY="{Binding ContentOffsetY, Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}"
121
                                                              ConstrainedContentViewportWidth="{Binding ContentViewportWidth, Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}"
122
                                                              ConstrainedContentViewportHeight="{Binding ContentViewportHeight, Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}"
123
                                                              Background="LightGray">
124
                                    <Canvas x:Name="zoomAndPanCanvas" Opacity="1" Background="White">
125

    
126
                                        <Canvas x:Name="drawingRotateCanvas"
127
                                                        Panel.ZIndex="1"
128
                                                        Background="{Binding BackgroundImage, Mode=OneWay, Source={x:Static common:ViewerDataModel.Instance}}">
129
                                            <Canvas.RenderTransform>
130
                                                <TransformGroup>
131
                                                    <RotateTransform x:Name="rotate" Angle="0"/>
132
                                                    <TranslateTransform x:Name="translate" X="0" Y="0"/>
133
                                                </TransformGroup>
134
                                            </Canvas.RenderTransform>
135

    
136
                                            <ItemsControl ItemsSource="{Binding MarkupControls, Source={x:Static common:ViewerDataModel.Instance}}"
137
                                          Panel.ZIndex="1">
138
                                                <ItemsControl.ItemsPanel>
139
                                                    <ItemsPanelTemplate>
140
                                                        <Canvas />
141
                                                    </ItemsPanelTemplate>
142
                                                </ItemsControl.ItemsPanel>
143
                                            </ItemsControl>
144
                                            <ItemsControl ItemsSource="{Binding MarkupControls_USER, Source={x:Static common:ViewerDataModel.Instance}}"
145
                                          Panel.ZIndex="30">
146
                                                <ItemsControl.ItemsPanel>
147
                                                    <ItemsPanelTemplate>
148
                                                        <Canvas />
149
                                                    </ItemsPanelTemplate>
150
                                                </ItemsControl.ItemsPanel>
151
                                            </ItemsControl>
152
                                            <InkPresenter x:Name="inkBoard" HorizontalAlignment="Stretch" Panel.ZIndex="1" VerticalAlignment="Stretch"/>
153
                                            <InkCanvas x:Name="inkDrawingCanvas"
154
                                               Background="Transparent"
155
                                               IsEnabled="False"
156
                                               Panel.ZIndex="1"
157
                                               Strokes="{Binding MarkupPens, Source={x:Static common:ViewerDataModel.Instance}}" Height="1" Width="1">
158
                                                <!--<Rectangle Height="41" HorizontalAlignment="Left"  Name="rectangle1" Stroke="Black" VerticalAlignment="Top" Width="69" Fill="#FFDB1111" />-->
159
                                                <!--<Ellipse Height="41" HorizontalAlignment="Left"  Name="rectangle1" Stroke="Black" VerticalAlignment="Top" Width="69" Fill="#FFDB1111" />-->
160

    
161
                                                <!--<MarkupToPDF:RectangleControl Height="200" HorizontalAlignment="Center" Name="rectangle2" StrokeColor="Black" VerticalAlignment="Top" Width="00" FillColor="Red"/>-->
162
                                            </InkCanvas>
163
                                            <!--강인구 추가-->
164
                                            <!--<controls:ScaleDecodeImage Panel.ZIndex="0" x:Name="mainPanel"
165
                                                   Source="{Binding ImageViewPath,Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}" 
166
                                                    Width="{Binding ImageViewWidth,Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}"
167
                                                        Height="{Binding ImageViewHeight,Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}">
168
                                                </controls:ScaleDecodeImage>-->
169
                                            <Image Panel.ZIndex="0" x:Name="mainPanel" RenderOptions.BitmapScalingMode="HighQuality"
170
                                                       RenderOptions.EdgeMode="Unspecified" RenderOptions.ClearTypeHint="Enabled"
171
                                                        Source="{Binding ImageViewPath,Mode=OneWay, Source={x:Static common:ViewerDataModel.Instance}}" 
172
                                                         Width="{Binding ImageViewWidth,Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}"
173
                                                        Height="{Binding ImageViewHeight,Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}"
174
                                                           >
175
                                            </Image>
176
                                            <Canvas x:Name="SelectLayer" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Panel.ZIndex="32766"/>
177
                                            <Border x:Name="dragSelectionBorder" Visibility="Collapsed"
178
                                                    BorderBrush="Blue"
179
                                                    BorderThickness="1"
180
                                                    Background="LightBlue" 
181
                                                    CornerRadius="1"
182
                                                    Panel.ZIndex="1"
183
                                                    Opacity="0.5"/>
184
                                            <Border x:Name="dragCaptureBorder" Visibility="Collapsed"
185
                                                    BorderBrush="Blue"
186
                                                    BorderThickness="1"
187
                                                    Background="Blue" 
188
                                                    CornerRadius="1"
189
                                                    Panel.ZIndex="1"
190
                                                    Opacity="0.5"/>
191

    
192
                                            <Border x:Name="dragZoomBorder" Visibility="Collapsed"
193
                                                    BorderThickness="3"
194
                                                    Background="Transparent" 
195
                                                    CornerRadius="1"
196
                                                    Panel.ZIndex="1"
197
                                                    Opacity="1">
198
                                                <Border.BorderBrush>
199
                                                    <VisualBrush>
200
                                                        <VisualBrush.Visual>
201
                                                            <Rectangle StrokeDashArray="4 2" Stroke="Gray" StrokeThickness="1"
202
                                                                  Width="{Binding RelativeSource={RelativeSource AncestorType={x:Type Border}}, Path=ActualWidth}"
203
                                                                  Height="{Binding RelativeSource={RelativeSource AncestorType={x:Type Border}}, Path=ActualHeight}"/>
204
                                                        </VisualBrush.Visual>
205
                                                    </VisualBrush>
206
                                                </Border.BorderBrush>
207
                                            </Border>
208
                                            <!--<Border x:Name="dragZoomBorder"
209
                                                    BorderBrush="Black"
210
                                                    BorderThickness="1"
211
                                                    
212
                                                    Background="Transparent" 
213
                                                    CornerRadius="1"
214
                                                    Panel.ZIndex="1"
215
                                                    Opacity="0.5"/>-->
216
                                            <Canvas x:Name="SearchFocusBorder" Visibility="Collapsed"
217
                                                    Background="#50FF5D00" 
218
                                                    Panel.ZIndex="99999" IsHitTestVisible="False">
219
                                                <Border Visibility="Collapsed"
220
                                                    BorderThickness="1"
221
                                                    Background="#50FF5D00" 
222
                                                    CornerRadius="1"
223
                                                    Panel.ZIndex="99999" IsHitTestVisible="False"
224
                                                             Width="{Binding Width, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Canvas}}}"
225
                                                            Height="{Binding Height, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Canvas}}}"></Border>
226
                                            </Canvas>
227
                                            <!--<Border Background="Red" Panel.ZIndex="1" Opacity="0.5" Visibility="Visible" Width="100" Height="100" />-->
228
                                        </Canvas>
229

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

    
232
                                        <!--<Leadtools_Windows_Controls:RasterImageViewer x:Name="_imageViewer" Grid.Row="1" BorderThickness="0"/>-->
233
                                    </Canvas>
234
                                </ZoomAndPan:ZoomAndPanControl>
235
                                <telerik:RadBusyIndicator x:Name="busyIndicator" IsBusy="False" BusyContent="Saving..." Visibility="{Binding IsBusy, Converter={StaticResource BoolToVisibleConverter}, RelativeSource={RelativeSource Self}}"/>
236
                                <!--캡쳐 화면을 위한 보더-->
237
                                <Border Background="LightGray" 
238
                                        Opacity="{Binding Capture_Opacity, Source={x:Static common:ViewerDataModel.Instance}}"
239
                                        IsHitTestVisible="False" >
240
                                    <TextBlock HorizontalAlignment="Right" Foreground="Red" Text="캡쳐 진행 화면" FontSize="30"/>
241
                                </Border>
242
                                <Angle:AngleControl x:Name="MainAngle"
243
                                                        Grid.Column="1"
244
                                                        Grid.ColumnSpan="2"
245
                                                        Margin="10"
246
                                                        AngleValue="{Binding Angle, Mode=TwoWay, StringFormat=\{0:F0\}°, Source={x:Static common:ViewerDataModel.Instance}}"
247
                                                        HorizontalAlignment="Right"
248
                                                        VerticalAlignment="Top"
249
                                                        IsHitTestVisible="False"
250
                                                        Visibility="{Binding AngleVisibility, Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}" />
251
                            </Grid>
252
                        </telerik:RadDocumentPane>
253
                    </telerik:RadPaneGroup>
254
                    <telerik:RadPaneGroup Style="{DynamicResource Style_RadPanelGroup}" >
255
                        <telerik:RadPane CanFloat="False" CanUserClose="False" Title="Document 1" PaneHeaderVisibility="Collapsed" x:Name="testPanel2" IsHidden="True" Margin="0,-20,0,0" >
256
                            <Grid Background="{DynamicResource KCOMColor_DocumnetBackgroundBrush}">
257
                                <ZoomAndPan:ZoomAndPanControl x:Name="zoomAndPanControl2" AllowDrop="True"
258
                                                              MouseWheel="zoomAndPanControl2_MouseWheel"
259
                                                              MouseMove="zoomAndPanControl2_MouseMove"
260
                                                              MouseDown="zoomAndPanControl2_MouseDown"
261
                                                              MouseUp="zoomAndPanControl2_MouseUp"
262
                                                              MouseLeave="zoomAndPanControl_MouseLeave"
263
                                                              ContentScale="{Binding Sync_ContentScale, Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}"
264
                                                              ContentOffsetX="{Binding Sync_ContentOffsetX, Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}"
265
                                                              ContentOffsetY="{Binding Sync_ContentOffsetY, Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}"
266
                                                              ConstrainedContentViewportWidth="{Binding ContentViewportWidth, Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}"
267
                                                              ConstrainedContentViewportHeight="{Binding ContentViewportHeight, Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}"
268
                                                              Background="LightGray">
269
                                    <Canvas x:Name="zoomAndPanCanvas2" Opacity="1" Background="White">
270
                                        <Canvas x:Name="drawingRotateCanvas2"
271
                                                        Panel.ZIndex="1"
272
                                                        Background="{Binding BackgroundImage, Mode=OneWay, Source={x:Static common:ViewerDataModel.Instance}}">
273
                                            <Canvas.RenderTransform>
274
                                                <TransformGroup>
275
                                                    <RotateTransform x:Name="rotate2" Angle="0"/>
276
                                                    <TranslateTransform x:Name="translate2" X="0" Y="0"/>
277
                                                </TransformGroup>
278
                                            </Canvas.RenderTransform>
279
                                            <ItemsControl x:Name="itemsControl" ItemsSource="{Binding MarkupControls_Sync, Source={x:Static common:ViewerDataModel.Instance}}"
280
                                          Panel.ZIndex="1">
281
                                                <ItemsControl.ItemsPanel>
282
                                                    <ItemsPanelTemplate>
283
                                                        <Canvas >
284

    
285
                                                        </Canvas>
286
                                                    </ItemsPanelTemplate>
287
                                                </ItemsControl.ItemsPanel>
288
                                            </ItemsControl>
289
                                            <Image x:Name="ComparePanel"
290
                                                   Source="{Binding ImageViewPath_C, Source={x:Static common:ViewerDataModel.Instance}}" 
291
                                                   Width="{Binding ImageViewWidth_C, Source={x:Static common:ViewerDataModel.Instance}}" 
292
                                                   Height="{Binding ImageViewHeight_C, Source={x:Static common:ViewerDataModel.Instance}}" >
293
                                            </Image>
294
                                            <Canvas x:Name="canvas_compareBorder" IsHitTestVisible="False" Width="{Binding ActualWidth, ElementName=zoomAndPanCanvas2}" Height="{Binding ActualHeight, ElementName=zoomAndPanCanvas2}" Panel.ZIndex="1">
295
                                                <!--<Canvas.RenderTransform>
296
                                                    -->
297
                                                <!--<RotateTransform Angle="{Binding Angle, Source={x:Static common:ViewerDataModel.Instance}}"/>-->
298
                                                <!--
299
                                                    <RotateTransform Angle="{Binding Angle, ElementName=zoomAndPanCanvas2}"/>
300
                                                </Canvas.RenderTransform>-->
301
                                            </Canvas>
302
                                            <!--강인구 추가-->
303
                                        </Canvas>
304
                                    </Canvas>
305
                                </ZoomAndPan:ZoomAndPanControl>
306
                                <Grid Background="#FF353535" Opacity="0.1" IsHitTestVisible="False"/>
307

    
308
                                <!--<Viewbox VerticalAlignment="Stretch" HorizontalAlignment="Stretch" StretchDirection="DownOnly" Stretch="Uniform" IsHitTestVisible="False">
309
                                    <TextBlock Text="Previous Document" HorizontalAlignment="Center" VerticalAlignment="Center" RenderTransformOrigin="0.5, 0.5" FontSize="50"
310
                                           Foreground="White" Opacity="0.5" FontWeight="Bold">
311
                                        <TextBlock.RenderTransform>
312
                                            <RotateTransform Angle="-25"/>
313
                                        </TextBlock.RenderTransform>
314
                                    </TextBlock>
315
                                </Viewbox>-->
316

    
317
                                <!--<telerik:RadExpander Header="OPEN" Background="Transparent" telerik:StyleManager.Theme="Office2016"
318
                                                     ExpandDirection="Right" VerticalAlignment="Top" HorizontalAlignment="Left">-->
319
                                <Grid Height="Auto" VerticalAlignment="Top" >
320
                                    <Grid.RowDefinitions>
321
                                        <RowDefinition/>
322
                                        <RowDefinition/>
323
                                    </Grid.RowDefinitions>
324
                                    <!--<Border Background="#3b3838" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Opacity="0.5" Grid.RowSpan="2"/>-->
325
                                    <Border Background="Black" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Opacity="0.5" Grid.RowSpan="2" BorderThickness="0"/>
326
                                    <StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
327
                                        <!--<TextBlock Text="ReadOnly Mode" Foreground="#FFFF9A25" VerticalAlignment="Center" Margin="10"/>-->
328
                                        <TextBlock Text="Rev.A" Foreground="#FFFF9A25" VerticalAlignment="Center" Margin="10" x:Name="tlSyncRev"/>
329
                                        <TextBlock Text="Current Page : 1" Foreground="White" VerticalAlignment="Center"  x:Name="tlSyncPageNum"/>
330
                                    </StackPanel>
331
                                    <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
332
                                        <!--<telerik:RadToggleButton x:Name="CompareMode" IsChecked="False" Content="Compare"  Margin="5" Checked="SyncCompare_Click" Unchecked="SyncCompare_Click" BorderThickness="0" telerik:StyleManager.Theme="Office2013"
333
                                                                       Style="{DynamicResource RadToggleSwtichButtonStyle}" Width="Auto" Padding="10,0"/>-->
334
                                        <!--<telerik:RadRibbonToggleButton x:Name="UserList" Content="User List" Foreground="white"  Margin="5" Click="SyncUserListExpender_Click" BorderThickness="0" telerik:StyleManager.Theme="Office2013" VerticalAlignment="Center"/>-->
335

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

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

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

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

    
352
                                        <toggle:HorizontalToggleSwitch x:Name="BalanceMode" CheckedContent="Balance On" UncheckedContent="Balance Off" Width="90" IsChecked="False" ThumbSize="25"
353
                                                                       FontSize="10" FontWeight="Normal" BorderBrush="Transparent" Opacity="0.6"
354
                                                                       Margin="5" Checked="SyncPageBalance_Click" Unchecked="SyncPageBalance_Click" BorderThickness="0" telerik:StyleManager.Theme="Office2013"/>
355

    
356

    
357
                                        <!--<telerik:RadRibbonToggleButton x:Name="MArkupMode" Content="Markup Mode" Foreground="White"  Margin="5"  Click="SyncChange_Click" BorderThickness="0" telerik:StyleManager.Theme="Office2013"/>-->
358
                                        <!--<telerik:RadRibbonToggleButton x:Name="BalanceMode" Content="Balance Mode" Foreground="White"  Margin="5" Click="SyncPageBalance_Click" BorderThickness="0" telerik:StyleManager.Theme="Office2013"/>-->
359
                                        <telerik:RadRibbonButton  Margin="5" Click="SyncPageChange_Click" Tag="-1" telerik:StyleManager.Theme="Office2013" VerticalAlignment="Center">
360
                                            <Image Height="20"
361
                                                               Source="/KCOM;component/Resources/Images/MenuImage_New/up-arrow.png"
362
                                                               Stretch="Uniform" />
363
                                        </telerik:RadRibbonButton>
364
                                        <telerik:RadRibbonButton Margin="5" Click="SyncPageChange_Click" Tag="1" telerik:StyleManager.Theme="Office2013" VerticalAlignment="Center">
365
                                            <Image Height="20"
366
                                                               Source="/KCOM;component/Resources/Images/MenuImage_New/up-arrow.png" RenderTransformOrigin="0.5 0.5"
367
                                                               Stretch="Uniform">
368
                                                <Image.RenderTransform>
369
                                                    <RotateTransform Angle="180"/>
370
                                                </Image.RenderTransform>
371
                                            </Image>
372
                                        </telerik:RadRibbonButton>
373
                                        <telerik:RadRibbonButton  Margin="5" Click="SyncExit_Click" telerik:StyleManager.Theme="Office2013" VerticalAlignment="Center">
374
                                            <Image Height="20"
375
                                                               Source="/KCOM;component/Resources/Images/MenuImage_New/cancel.png"
376
                                                               Stretch="Uniform" />
377
                                        </telerik:RadRibbonButton>
378
                                    </StackPanel>
379
                                    <telerik:RadGridView telerik:StyleManager.Theme="Office2013" ShowGroupPanel="False" ShowGroupFooters="False" AutoExpandGroups="False"  x:Name="gridViewRevMarkup"
380
                                             AutoGenerateColumns="False" HorizontalContentAlignment="Center" SelectionChanged="gridViewRevMarkup_SelectionChanged" SelectionMode="Multiple" BorderThickness="0"
381
                                                      CanUserFreezeColumns ="False" Visibility="Collapsed"  GridLinesVisibility="None" 
382
                                             CanUserDeleteRows="True" CanUserInsertRows="False" IsFilteringAllowed="False" RowIndicatorVisibility="Collapsed" Grid.Row="1">
383
                                        <telerik:RadGridView.HeaderRowStyle>
384
                                            <Style TargetType="telerik:GridViewHeaderRow">
385
                                                <Setter Property="BorderThickness" Value="0"/>
386
                                                <Setter Property="Background" Value="Red"/>
387
                                                <Setter Property="Foreground" Value="White"/>
388
                                                <Setter Property="HorizontalContentAlignment" Value="Center"/>
389
                                                <Setter Property="FontWeight" Value="Black"/>
390
                                                <Setter Property="telerik:StyleManager.Theme" Value="Office2013"/>
391
                                            </Style>
392
                                        </telerik:RadGridView.HeaderRowStyle>
393
                                        <telerik:RadGridView.RowStyle>
394
                                            <Style TargetType="telerik:GridViewRow">
395
                                                <Setter Property="HorizontalContentAlignment" Value="Center"/>
396
                                                <Setter Property="Background" Value="{Binding Path=Consolidate, Converter={StaticResource ConsolidationBackgroudConverter}}" />
397
                                                <Setter Property="Foreground" Value="White"/>
398
                                            </Style>
399
                                        </telerik:RadGridView.RowStyle>
400
                                        <telerik:RadGridView.Columns>
401
                                            <telerik:GridViewSelectColumn Width="Auto"  HeaderCellStyle="{StaticResource GridViewHeaderStyle}">
402
                                                <telerik:GridViewSelectColumn.Header>
403
                                                    <telerik:RadRibbonToggleButton  telerik:StyleManager.Theme="Office2016"
404
                                                                           Visibility="Collapsed" Width="Auto">
405
                                                        <telerik:RadRibbonToggleButton.Content>
406
                                                            <Image HorizontalAlignment="Center"
407
                                                           VerticalAlignment="Center"
408
                                                           Source="/KCOM;component/Resources/Images/MenuImage/check.png" />
409
                                                        </telerik:RadRibbonToggleButton.Content>
410
                                                    </telerik:RadRibbonToggleButton>
411
                                                </telerik:GridViewSelectColumn.Header>
412
                                            </telerik:GridViewSelectColumn>
413
                                            <telerik:GridViewDataColumn Width="Auto"  HeaderCellStyle="{StaticResource GridViewHeaderStyle}"
414
                                                                Header="Color" 
415
                                                                IsReadOnly="True">
416
                                                <telerik:GridViewDataColumn.CellTemplate>
417
                                                    <DataTemplate>
418
                                                        <Grid>
419
                                                            <Grid>
420
                                                                <Rectangle Margin="0,2,2,2" Fill="{Binding DisplayColor, Converter={StaticResource StringToColorConverter}}" />
421
                                                                <TextBlock Foreground="#00000000" Text="Color" />
422
                                                            </Grid>
423
                                                            <Grid VerticalAlignment="Center" Visibility="{Binding AvoidConsolidate, Converter={StaticResource BoolToVisibleConverter}}">
424
                                                                <Image Height="15"
425
                                                               Source="/KCOM;component/Resources/Images/MenuImage/lock_2.png"
426
                                                               Stretch="Uniform" />
427
                                                            </Grid>
428
                                                        </Grid>
429

    
430
                                                    </DataTemplate>
431
                                                </telerik:GridViewDataColumn.CellTemplate>
432
                                            </telerik:GridViewDataColumn>
433
                                            <telerik:GridViewDataColumn Header="DEPT"  IsReadOnly="True"  Width="Auto" HeaderCellStyle="{StaticResource GridViewHeaderStyle}">
434
                                                <telerik:GridViewDataColumn.CellTemplate>
435
                                                    <DataTemplate>
436
                                                        <TextBlock Text="{Binding Depatment}"  FontSize="12"/>
437
                                                    </DataTemplate>
438
                                                </telerik:GridViewDataColumn.CellTemplate>
439
                                            </telerik:GridViewDataColumn>
440
                                            <telerik:GridViewDataColumn Header="NAME"  IsReadOnly="True" Width="Auto"  HeaderCellStyle="{StaticResource GridViewHeaderStyle}">
441
                                                <telerik:GridViewDataColumn.CellTemplate>
442
                                                    <DataTemplate>
443
                                                        <TextBlock Text="{Binding UserName, Mode=TwoWay}" FontSize="10"/>
444
                                                    </DataTemplate>
445
                                                </telerik:GridViewDataColumn.CellTemplate>
446
                                            </telerik:GridViewDataColumn>
447
                                            <telerik:GridViewDataColumn Header="CONSOLIDATION"  IsReadOnly="True" Width="Auto"  HeaderCellStyle="{StaticResource GridViewHeaderStyle}">
448
                                                <telerik:GridViewDataColumn.CellTemplate>
449
                                                    <DataTemplate>
450
                                                        <!--<TextBlock Text="{Binding Consolidate}"/>-->
451
                                                        <Grid>
452
                                                            <Grid.ColumnDefinitions>
453
                                                                <ColumnDefinition Width="Auto" />
454
                                                                <ColumnDefinition Width="Auto" />
455
                                                                <ColumnDefinition Width="Auto" />
456
                                                            </Grid.ColumnDefinitions>
457

    
458
                                                            <TextBlock Grid.Column="0"
459
                                                               Foreground="Red"
460
                                                               Text="{Binding AvoidConsolidate,
461
                                                                              Converter={StaticResource AvoidStringConverter}}" />
462
                                                            <TextBlock Grid.Column="1"
463
                                                               Foreground="Blue"
464
                                                               Text="{Binding PartConsolidate,
465
                                                                              Converter={StaticResource TeamConsoliStringConverter}}" />
466
                                                            <TextBlock Grid.Column="2" Text="{Binding Consolidate, Converter={StaticResource ConsoliStringConverter}}" />
467
                                                            <!--
468
                                                        <TextBlock HorizontalAlignment="Center" Grid.Column="2">
469
                                                        <TextBlock.Text>
470
                                                        <Binding Converter="{StaticResource ConsoliStringConverter}"/>
471
                                                        </TextBlock.Text>
472
                                                        </TextBlock>
473
                                                    -->
474
                                                        </Grid>
475
                                                    </DataTemplate>
476
                                                </telerik:GridViewDataColumn.CellTemplate>
477
                                            </telerik:GridViewDataColumn>
478

    
479
                                            <telerik:GridViewDataColumn Header="Comment Move"  IsReadOnly="True" Width="Auto"  HeaderCellStyle="{StaticResource GridViewHeaderStyle}">
480
                                                <telerik:GridViewDataColumn.CellTemplate>
481
                                                    <DataTemplate>
482
                                                        <telerik:RadButton telerik:StyleManager.Theme="Office2016" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Content="COPY" PreviewMouseDown="Comment_Move" />
483
                                                        <!--<TextBlock Text="{Binding UserName, Mode=TwoWay}" FontSize="10"/>-->
484
                                                    </DataTemplate>
485
                                                </telerik:GridViewDataColumn.CellTemplate>
486
                                            </telerik:GridViewDataColumn>
487

    
488
                                            <telerik:GridViewDataColumn Header=""  IsReadOnly="True" Width="*"  HeaderCellStyle="{StaticResource GridViewHeaderStyle}">
489
                                            </telerik:GridViewDataColumn>
490
                                        </telerik:RadGridView.Columns>
491
                                    </telerik:RadGridView>
492
                                </Grid>
493
                                <!--</telerik:RadExpander>-->
494

    
495

    
496
                            </Grid>
497
                        </telerik:RadPane>
498
                    </telerik:RadPaneGroup>
499
                </telerik:RadSplitContainer>
500
            </telerik:RadDocking.DocumentHost>
501

    
502

    
503
            <telerik:RadSplitContainer Orientation="Vertical" InitialPosition="DockedLeft" x:Name="thumbnailPanel" SizeChanged="thumbnailPanel_SizeChanged">
504
                <!-- Width="250" MinWidth="250" -->
505
                <!--<telerik:RadPaneGroup Margin="0" Style="{DynamicResource Style_RadPanelGroup}">-->
506
                <telerik:RadPaneGroup Margin="0" telerik:StyleManager.Theme="Office2016" x:Name="PN_Navi">
507
                    <telerik:RadPane Header="DOCUMENT" x:Name="radPanelPageNavi" CanFloat="False" telerik:RadDocking.FloatingSize="50,NaN" CanUserClose="False" CanUserPin="True"
508
                                     ContextMenuTemplate="{x:Null}" PaneHeaderVisibility="Visible" telerik:StyleManager.Theme="Office2016">
509
                        <!--<telerik:RadPane.TitleTemplate>
510
                            <DataTemplate>
511
                                <Grid>
512
                                    <Grid.ColumnDefinitions>
513
                                        <ColumnDefinition Width="Auto" />
514
                                        <ColumnDefinition />
515
                                    </Grid.ColumnDefinitions>
516
                                    <ContentPresenter Content="{Binding}"
517
                                                      Margin="0,0,75,0" />
518
                                         <telerik:RadButton Grid.Column="1" Content="PIN"/>
519
                                </Grid>
520
                            </DataTemplate>
521
                        </telerik:RadPane.TitleTemplate>-->
522
                        <!--<Grid VerticalAlignment="Stretch" Margin="0">
523
                            <Grid.RowDefinitions>
524
                                <RowDefinition Height="30"/>
525
                                <RowDefinition Height="*"/>
526
                            </Grid.RowDefinitions>
527
                            <Border BorderBrush="{Binding ElementName=leftPanel}" BorderThickness="0,1">
528
                                <TextBlock Text="Thumbnail" Margin="5"/>
529
                            </Border>
530
                            <controls:PageNavigator x:Name="pageNavigator" Grid.Row="1"/>
531
                        </Grid>-->
532
                        <Grid>
533
                            <!--<controls:PageNavigator x:Name="pageNavigator" Grid.Row="1" Visibility="Collapsed"/>-->
534
                            <!--<Grid.RowDefinitions>
535
                                <RowDefinition Height="Auto"/>
536
                                <RowDefinition Height="*"/>
537
                            </Grid.RowDefinitions>-->
538
                            <!--<telerik:RadButton Content="Panorama" telerik:StyleManager.Theme="Office2016" FontSize="8"  Background="#FF0054B9" Foreground="White"
539
                                       BorderThickness="0" CornerRadius="3" HorizontalAlignment="Right" Padding="5" Margin="5,10"/>-->
540
                            <controls:Sample x:Name="pageNavigator"/>
541
                        </Grid>
542

    
543
                    </telerik:RadPane>
544
                    <telerik:RadPane Header="test" CanFloat="False" telerik:RadDocking.FloatingSize="50,NaN" CanUserClose="False" CanUserPin="True"
545
                                     ContextMenuTemplate="{x:Null}" PaneHeaderVisibility="Visible" telerik:StyleManager.Theme="Office2016">
546

    
547
                        <Grid    xmlns:drag="clr-namespace:Telerik.Windows.DragDrop.Behaviors;assembly=Telerik.Windows.Controls" >
548
                            <Grid.Resources>
549
                                <Style TargetType="telerik:RadListBoxItem" BasedOn="{StaticResource RadListBoxItemStyle}">
550
                                    <Setter Property="telerik:DragDropManager.AllowCapturedDrag" Value="True"/>
551
                                </Style>
552
                            </Grid.Resources>
553
                            <telerik:RadListBox x:Name="lstSymbolPrivate" Background="#f5f5f5" FontWeight="Normal"  AllowDrop="True">
554
                                <telerik:RadListBox.DragDropBehavior>
555
                                    <telerik:ListBoxDragDropBehavior AllowReorder="True" />
556
                                </telerik:RadListBox.DragDropBehavior>
557
                                <telerik:RadListBox.DragVisualProvider >
558
                                    <telerik:ListBoxDragVisualProvider />
559
                                </telerik:RadListBox.DragVisualProvider>
560
                            </telerik:RadListBox>
561
                        </Grid>
562

    
563
                    </telerik:RadPane>
564

    
565
                </telerik:RadPaneGroup>
566
            </telerik:RadSplitContainer>
567

    
568
            <telerik:RadSplitContainer Orientation="Vertical" InitialPosition="DockedRight" MaxWidth="300" Width="300">
569
                <telerik:RadPaneGroup  IsTabStop="False" telerik:StyleManager.Theme="Office2016">
570
                    <telerik:RadPane Header="SEARCH" Visibility="Visible" CanFloat="False" CanUserClose="False"  ContextMenuTemplate="{x:Null}" IsPinned="False" telerik:StyleManager.Theme="Office2016" x:Name="searchPane">
571
                        <controls:SearchPanel x:Name="searchPanel_Instance"/>
572
                    </telerik:RadPane>
573
                </telerik:RadPaneGroup>
574
                <telerik:RadPaneGroup  IsTabStop="False" telerik:StyleManager.Theme="Office2016">
575
                    <telerik:RadPane Header="M-TALK" CanFloat="False" CanUserClose="False" ContextMenuTemplate="{x:Null}" IsPinned="False" telerik:StyleManager.Theme="Office2016"  x:Name="talkPane">
576
                        <messanger:ConversationView/>
577
                    </telerik:RadPane>
578
                </telerik:RadPaneGroup>
579
                <telerik:RadPaneGroup  IsTabStop="False" Visibility="Visible" telerik:StyleManager.Theme="Office2016">
580
                    <telerik:RadPane Header="SYMBOL" Visibility="Visible" CanFloat="False" CanUserClose="False"  ContextMenuTemplate="{x:Null}" IsPinned="False" telerik:StyleManager.Theme="Office2016"  x:Name="SymbolPane">
581
                        <!--<controls:Symbol />-->
582
                        <controls:Symbol x:Name="symbolPanel_Instance"/>
583
                        <!--<telerik:RadButton Click="Create_Symbol">Create</telerik:RadButton>-->
584
                    </telerik:RadPane>
585
                </telerik:RadPaneGroup>
586
                <telerik:RadPaneGroup  IsTabStop="False" telerik:StyleManager.Theme="Office2016"  telerik:ProportionalStackPanel.RelativeSize="60, 100">
587
                    <telerik:RadPane Header="FAVORITE" Visibility="Visible"  CanFloat="False" CanUserClose="False"  ContextMenuTemplate="{x:Null}" IsPinned="False" telerik:StyleManager.Theme="Office2016"  x:Name="FavoritePane">
588
                        <controls:FavoritePanel/>
589
                    </telerik:RadPane>
590
                </telerik:RadPaneGroup>
591
            </telerik:RadSplitContainer>
592
            <telerik:RadSplitContainer Orientation="Horizontal" InitialPosition="DockedBottom">
593
                <telerik:RadPaneGroup IsTabStop="False"  telerik:StyleManager.Theme="Office2016" telerik:ProportionalStackPanel.RelativeSize="140, 100">
594
                    <telerik:RadPane Header="User information List"  CanFloat="False" CanUserClose="False"  ContextMenuTemplate="{x:Null}" telerik:StyleManager.Theme="Office2016"  x:Name="infoListPane">
595
                        <telerik:RadPane.TitleTemplate>
596
                            <DataTemplate>
597
                                <Grid>
598
                                    <Grid.ColumnDefinitions>
599
                                        <ColumnDefinition Width="*" />
600
                                        <ColumnDefinition Width="Auto" />
601
                                    </Grid.ColumnDefinitions>
602

    
603
                                    <StackPanel Orientation="Horizontal">
604
                                        <TextBlock Margin="1"
605
                                                   VerticalAlignment="Center"
606
                                                   Text="{Binding}" />
607
                                        <telerik:RadRibbonButton x:Name="btnConsolidate"
608
                                                                 VerticalAlignment="Center"
609
                                                                 Click="btnConsolidate_Click"
610
                                                                 Loaded="btnConsolidate_Loaded"
611
                                                                 telerik:StyleManager.Theme="Office2016"
612
                                                                 ToolTipService.ToolTip="Consolidate">
613
                                            <Border Background="#E9F0F8"
614
                                                    BorderBrush="#839AB3"
615
                                                    BorderThickness="1">
616
                                                <StackPanel Margin="1" Orientation="Horizontal">
617
                                                    <!--<Image Width="15" Source="/DeepView;component/Images/MenuImage/document-new.png" />-->
618
                                                    <TextBlock Margin="1"
619
                                                               VerticalAlignment="Center"
620
                                                               Foreground="Black"
621
                                                               Text="Consolidate" />
622
                                                </StackPanel>
623
                                            </Border>
624
                                        </telerik:RadRibbonButton>
625
                                        <telerik:RadRibbonButton x:Name="btnTeamConsolidate"
626
                                                                 VerticalAlignment="Center"
627
                                                                 Click="btnTeamConsolidate_Click"
628
                                                                 Loaded="btnTeamConsolidate_Loaded"
629
                                                                 telerik:StyleManager.Theme="Office2016"
630
                                                                 ToolTipService.ToolTip="Consolidate">
631
                                            <Border Background="#E9F0F8"
632
                                                    BorderBrush="#839AB3"
633
                                                    BorderThickness="1">
634
                                                <StackPanel Margin="1" Orientation="Horizontal">
635
                                                    <!--<Image Width="15" Source="/DeepView;component/Images/MenuImage/document-team.png" />-->
636
                                                    <TextBlock Margin="1"
637
                                                               VerticalAlignment="Center"
638
                                                               Foreground="Black"
639
                                                               Text="Team Consolidate" />
640
                                                </StackPanel>
641
                                            </Border>
642
                                        </telerik:RadRibbonButton>
643
                                        <telerik:RadRibbonButton x:Name="btnFinalPDF"
644
                                                                 VerticalAlignment="Center"
645
                                                                 Click="FinalPDFEvent"
646
                                                                 Loaded="btnFinalPDF_Loaded"
647
                                                                 telerik:StyleManager.Theme="Office2016"
648
                                                                 ToolTipService.ToolTip="FinalPDF">
649
                                            <Border Background="#E9F0F8"
650
                                                    BorderBrush="#839AB3"
651
                                                    BorderThickness="1">
652
                                                <StackPanel Margin="1" Orientation="Horizontal">
653
                                                    <!--<Image Width="15" Source="/DeepView;component/Images/MenuImage/final_pdf2.png" />-->
654
                                                    <TextBlock Margin="1"
655
                                                               VerticalAlignment="Center"
656
                                                               Foreground="Black"
657
                                                               Text="Merged PDF" />
658
                                                </StackPanel>
659
                                            </Border>
660
                                        </telerik:RadRibbonButton>
661
                                        <telerik:RadRibbonButton x:Name="btnConsolidateFinalPDF"
662
                                                                 VerticalAlignment="Center"
663
                                                                 Click="ConsolidateFinalPDFEvent"
664
                                                                 Loaded="btnConsolidateFinalPDF_Loaded"
665
                                                                 telerik:StyleManager.Theme="Office2016"
666
                                                                 ToolTipService.ToolTip="Consolidate &amp; FinalPDF">
667
                                            <Border Background="#E9F0F8"
668
                                                    BorderBrush="#839AB3"
669
                                                    BorderThickness="1">
670
                                                <StackPanel Margin="1" Orientation="Horizontal">
671
                                                    <!--<Image Width="15" Source="/DeepView;component/Images/MenuImage/final_pdf2.png" />-->
672
                                                    <TextBlock Margin="1"
673
                                                               VerticalAlignment="Center"
674
                                                               Foreground="Black"
675
                                                               Text="Consolidate &amp; Merged PDF" />
676
                                                </StackPanel>
677
                                            </Border>
678
                                        </telerik:RadRibbonButton>
679
                                    </StackPanel>
680
                                    <!--<StackPanel Grid.Column="1"
681
                                                HorizontalAlignment="Right"
682
                                                Orientation="Horizontal">
683
                                        <telerik:RadRibbonButton VerticalAlignment="Center"
684
                                                                 Click="ExpandButtonEvent_Click"
685
                                                                 Tag="CLOSE"
686
                                                                 telerik:StyleManager.Theme="Windows8"
687
                                                                 ToolTipService.ToolTip="Expand On">
688
                                        </telerik:RadRibbonButton>
689

690
                                        <telerik:RadRibbonButton VerticalAlignment="Center"
691
                                                                 Click="ExpandButtonEvent_Click"
692
                                                                 Tag="OPEN"
693
                                                                 telerik:StyleManager.Theme="Windows8"
694
                                                                 ToolTipService.ToolTip="Expand Off">
695
                                            <Image Width="15"
696
                                                   RenderTransformOrigin="0.5,0.5">
697
                                                <Image.RenderTransform>
698
                                                    <RotateTransform Angle="180" />
699
                                                </Image.RenderTransform>
700
                                            </Image>
701
                                        </telerik:RadRibbonButton>
702
                                    </StackPanel>-->
703
                                </Grid>
704
                            </DataTemplate>
705
                        </telerik:RadPane.TitleTemplate>
706
                        <telerik:RadGridView IsReadOnly="True" telerik:StyleManager.Theme="Office2013" ShowGroupPanel="True" ShowGroupFooters="False" AutoExpandGroups="True"  x:Name="gridViewMarkup"
707
                                             AutoGenerateColumns="False" HorizontalContentAlignment="Center" SelectionChanged="gridViewMarkup_SelectionChanged" SelectionMode="Multiple"
708
                                             CanUserDeleteRows="True" CanUserInsertRows="False" IsFilteringAllowed="False" RowIndicatorVisibility="Collapsed" 
709
                                             CanUserSortColumns ="True" >
710
                            <telerik:RadGridView.GroupDescriptors>
711
                                <telerik:GroupDescriptor Member="Depatment" SortDirection="Ascending" DisplayContent = "DEPT" x:Name="gDept">
712
                                    <telerik:GroupDescriptor.AggregateFunctions>
713
                                        <telerik:CountFunction Caption="Entries count : " />
714
                                    </telerik:GroupDescriptor.AggregateFunctions>
715
                                </telerik:GroupDescriptor>
716
                                
717
                            </telerik:RadGridView.GroupDescriptors>
718
                            <telerik:RadGridView.RowStyle>
719
                                <Style TargetType="telerik:GridViewRow">
720
                                    <Setter Property="HorizontalContentAlignment" Value="Center"/>
721
                                    <Setter Property="Background" Value="{Binding Path=Consolidate, Converter={StaticResource ConsolidationBackgroudConverter}}" />
722
                                    <Setter Property="Visibility" Value="{Binding Path=IsPreviewUser,Converter={StaticResource previewerVisibleConverter}}"/>
723
                                    <!--<Setter Property="Template" Value="{StaticResource GridViewRowTemplate}" />-->
724
                                </Style>
725
                            </telerik:RadGridView.RowStyle>
726
                            <telerik:RadGridView.Columns>
727
                                <telerik:GridViewSelectColumn Width="Auto">
728
                                    <telerik:GridViewSelectColumn.Header>
729
                                        <telerik:RadRibbonToggleButton  telerik:StyleManager.Theme="Office2016"
730
                                                                           Visibility="Collapsed" Width="Auto">
731
                                            <telerik:RadRibbonToggleButton.Content>
732
                                                <Image HorizontalAlignment="Center"
733
                                                           VerticalAlignment="Center"
734
                                                           Source="/KCOM;component/Resources/Images/MenuImage/check.png" />
735
                                            </telerik:RadRibbonToggleButton.Content>
736
                                        </telerik:RadRibbonToggleButton>
737
                                    </telerik:GridViewSelectColumn.Header>
738
                                </telerik:GridViewSelectColumn>
739
                                <telerik:GridViewDataColumn Width="Auto"
740
                                                                Header="Color"
741
                                                                IsReadOnly="True">
742
                                    <telerik:GridViewDataColumn.CellTemplate>
743
                                        <DataTemplate>
744
                                            <Grid>
745
                                                <Grid>
746
                                                    <Rectangle Margin="0,2,2,2" Fill="{Binding DisplayColor, Converter={StaticResource StringToColorConverter}}" />
747
                                                    <TextBlock Foreground="#00000000" Text="Color" />
748
                                                </Grid>
749
                                                <Grid VerticalAlignment="Center" Visibility="{Binding AvoidConsolidate, Converter={StaticResource BoolToVisibleConverter}}">
750
                                                    <Image Height="15"
751
                                                               Source="/KCOM;component/Resources/Images/MenuImage/lock_2.png"
752
                                                               Stretch="Uniform" />
753
                                                </Grid>
754
                                            </Grid>
755

    
756
                                        </DataTemplate>
757
                                    </telerik:GridViewDataColumn.CellTemplate>
758
                                </telerik:GridViewDataColumn>
759
                                <telerik:GridViewDataColumn Header="DEPT"  IsReadOnly="True"  Width="Auto" DataMemberBinding="{Binding Depatment}" >
760
                                    <telerik:GridViewDataColumn.CellTemplate>
761
                                        <DataTemplate>
762
                                            <TextBlock Text="{Binding Depatment}"/>
763
                                        </DataTemplate>
764
                                    </telerik:GridViewDataColumn.CellTemplate>
765
                                </telerik:GridViewDataColumn>
766
                                <telerik:GridViewDataColumn Header="NAME"  IsReadOnly="True" Width="Auto" DataMemberBinding="{Binding UserName}">
767
                                    <telerik:GridViewDataColumn.CellTemplate>
768
                                        <DataTemplate>
769
                                            <TextBlock Text="{Binding UserName, Mode=TwoWay}"/>
770
                                        </DataTemplate>
771
                                    </telerik:GridViewDataColumn.CellTemplate>
772
                                </telerik:GridViewDataColumn>
773
                                <telerik:GridViewDataColumn Header="UPDATETIME"  IsReadOnly="True" Width="Auto">
774
                                    <telerik:GridViewDataColumn.CellTemplate>
775
                                        <DataTemplate>
776
                                            <TextBlock Text="{Binding UpdateTime}"/>
777
                                        </DataTemplate>
778
                                    </telerik:GridViewDataColumn.CellTemplate>
779
                                </telerik:GridViewDataColumn>
780
                                <telerik:GridViewDataColumn Header="CONSOLIDATION"  IsReadOnly="True" Width="Auto">
781
                                    <telerik:GridViewDataColumn.CellTemplate>
782
                                        <DataTemplate>
783
                                            <!--<TextBlock Text="{Binding Consolidate}"/>-->
784
                                            <Grid>
785
                                                <Grid.ColumnDefinitions>
786
                                                    <ColumnDefinition Width="Auto" />
787
                                                    <ColumnDefinition Width="Auto" />
788
                                                    <ColumnDefinition Width="Auto" />
789
                                                </Grid.ColumnDefinitions>
790

    
791
                                                <TextBlock Grid.Column="0"
792
                                                               Foreground="Red"
793
                                                               Text="{Binding AvoidConsolidate,
794
                                                                              Converter={StaticResource AvoidStringConverter}}" />
795
                                                <TextBlock Grid.Column="1"
796
                                                               Foreground="Blue"
797
                                                               Text="{Binding PartConsolidate,
798
                                                                              Converter={StaticResource TeamConsoliStringConverter}}" />
799
                                                <TextBlock Grid.Column="2" Text="{Binding Consolidate, Converter={StaticResource ConsoliStringConverter}}" />
800
                                                <!--
801
                                                        <TextBlock HorizontalAlignment="Center" Grid.Column="2">
802
                                                        <TextBlock.Text>
803
                                                        <Binding Converter="{StaticResource ConsoliStringConverter}"/>
804
                                                        </TextBlock.Text>
805
                                                        </TextBlock>
806
                                                    -->
807
                                            </Grid>
808
                                        </DataTemplate>
809
                                    </telerik:GridViewDataColumn.CellTemplate>
810
                                </telerik:GridViewDataColumn>
811
                                
812
                                <telerik:GridViewDataColumn Header="DELETE"  IsReadOnly="True" Width="Auto">
813
                                    <telerik:GridViewDataColumn.CellTemplate>
814
                                        <DataTemplate>
815
                                            <Button Content="DELETE" Visibility="{Binding userDelete, Converter={StaticResource BooleanToVisibilityConverter}}" Click="DeleteCommentEvent" CommandParameter="{Binding}"/>
816
                                        </DataTemplate>
817
                                    </telerik:GridViewDataColumn.CellTemplate>
818
                                </telerik:GridViewDataColumn>
819
                            </telerik:RadGridView.Columns>
820
                        </telerik:RadGridView>
821
                    </telerik:RadPane>
822
                </telerik:RadPaneGroup>
823
                <telerik:RadPaneGroup IsTabStop="False" telerik:StyleManager.Theme="Office2016" telerik:ProportionalStackPanel.RelativeSize="100, 100">
824
                    <telerik:RadPane Header="Document History"  CanFloat="False" CanUserClose="False"  ContextMenuTemplate="{x:Null}" telerik:StyleManager.Theme="Office2016"  x:Name="historyPane">
825
                        <Grid>
826
                            <telerik:RadGridView IsReadOnly="True" telerik:StyleManager.Theme="Office2013" ShowGroupPanel="False" ShowGroupFooters="False" AutoExpandGroups="False"  x:Name="gridViewHistory"
827
                                             CanUserDeleteRows="True" CanUserInsertRows="False" IsFilteringAllowed="False" RowIndicatorVisibility="Collapsed" AutoGenerateColumns="False">
828
                                <telerik:RadGridView.Columns>
829
                                    <telerik:GridViewDataColumn Header="Slip No"  IsReadOnly="True" Width="Auto">
830
                                        <telerik:GridViewDataColumn.CellTemplate>
831
                                            <DataTemplate>
832
                                                <telerik:RadButton Content="{Binding GroupNo}" Tag="{Binding EnsembleLink}" Margin="5" BorderThickness="0" Click="EnsembleLink_Button_Click" Background="Transparent">
833
                                                </telerik:RadButton>
834
                                            </DataTemplate>
835
                                        </telerik:GridViewDataColumn.CellTemplate>
836
                                    </telerik:GridViewDataColumn>
837
                                    <telerik:GridViewDataColumn Header="Doc No"  IsReadOnly="True" Width="Auto">
838
                                        <telerik:GridViewDataColumn.CellTemplate>
839
                                            <DataTemplate>
840
                                                <TextBlock Text="{Binding DocNo}" HorizontalAlignment="Center"/>
841
                                            </DataTemplate>
842
                                        </telerik:GridViewDataColumn.CellTemplate>
843
                                    </telerik:GridViewDataColumn>
844
                                    <telerik:GridViewDataColumn Header="Rev No"  IsReadOnly="True" Width="Auto">
845
                                        <telerik:GridViewDataColumn.CellTemplate>
846
                                            <DataTemplate>
847
                                                <TextBlock Text="{Binding RevNo}" HorizontalAlignment="Center"/>
848
                                            </DataTemplate>
849
                                        </telerik:GridViewDataColumn.CellTemplate>
850
                                    </telerik:GridViewDataColumn>
851
                                    <telerik:GridViewDataColumn Header="RESULT"  IsReadOnly="True" Width="Auto">
852
                                        <telerik:GridViewDataColumn.CellTemplate>
853
                                            <DataTemplate>
854
                                                <TextBlock Text="{Binding RESULT}" HorizontalAlignment="Center"/>
855
                                            </DataTemplate>
856
                                        </telerik:GridViewDataColumn.CellTemplate>
857
                                    </telerik:GridViewDataColumn>
858
                                    <telerik:GridViewDataColumn CellStyle="{StaticResource GridViewAlign}"  IsReadOnly="True"
859
                                                                        DataMemberBinding="{Binding FROM_VENDOR}"
860
                                                                        Header="File(in)" telerik:StyleManager.Theme="Office2013"
861
                                                                        HeaderTextAlignment="Center">
862
                                        <telerik:GridViewDataColumn.CellTemplate>
863
                                            <DataTemplate>
864
                                                <Image Height="22" Source="/KCOM;component/Resources/Images/MenuImage_New/PDF.png" 
865
                                                       MouseLeftButtonDown="PdfLink_ButtonDown" Tag="{Binding FROM_VENDOR}"
866
                                                       Visibility="{Binding FROM_VENDOR, Converter={StaticResource PDFVisibleConverter}}"/>
867
                                            </DataTemplate>
868
                                        </telerik:GridViewDataColumn.CellTemplate>
869
                                    </telerik:GridViewDataColumn>
870

    
871
                                    <telerik:GridViewDataColumn CellStyle="{StaticResource GridViewAlign}"
872
                                                                        DataMemberBinding="{Binding TO_VENDOR}" IsReadOnly="True"
873
                                                                        Header="File(out)" telerik:StyleManager.Theme="Office2013"
874
                                                                        HeaderTextAlignment="Center">
875
                                        <telerik:GridViewDataColumn.CellTemplate>
876
                                            <DataTemplate>
877
                                                <Image Height="22" Source="/KCOM;component/Resources/Images/MenuImage_New/PDF.png" 
878
                                                       MouseLeftButtonDown="PdfLink_ButtonDown" Tag="{Binding TO_VENDOR}"
879
                                                       Visibility="{Binding TO_VENDOR, Converter={StaticResource PDFVisibleConverter}}"/>
880
                                            </DataTemplate>
881
                                        </telerik:GridViewDataColumn.CellTemplate>
882
                                    </telerik:GridViewDataColumn>
883

    
884

    
885
                                    <!--<telerik:GridViewDataColumn Header="FROM_VENDOR"  IsReadOnly="True" Width="Auto">
886
                                    <telerik:GridViewDataColumn.CellTemplate>
887
                                        <DataTemplate>
888
                                            <telerik:RadRibbonButton telerik:StyleManager.Theme="Office2016">
889
                                                <
890
                                                <TextBlock Text="{Binding FROM_VENDOR}" HorizontalAlignment="Center"/>
891
                                            </telerik:RadRibbonButton>                                            
892
                                        </DataTemplate>
893
                                    </telerik:GridViewDataColumn.CellTemplate>
894
                                </telerik:GridViewDataColumn>-->
895
                                    <!--<telerik:GridViewDataColumn Header="TO_VENDOR"  IsReadOnly="True" Width="Auto">
896
                                    <telerik:GridViewDataColumn.CellTemplate>
897
                                        <DataTemplate>
898
                                            <TextBlock Text="{Binding TO_VENDOR}" HorizontalAlignment="Center"/>
899
                                        </DataTemplate>
900
                                    </telerik:GridViewDataColumn.CellTemplate>
901
                                </telerik:GridViewDataColumn>-->
902
                                    <telerik:GridViewDataColumn Header="SYNC"  IsReadOnly="True" Width="Auto" CellStyle="{StaticResource GridViewAlign}" HeaderTextAlignment="Center">
903
                                        <telerik:GridViewDataColumn.CellTemplate>
904
                                            <DataTemplate>
905
                                                <!--<Border Grid.Column="1" Background="#FF0054B9" CornerRadius="5" Margin="5" VerticalAlignment="Center" MinHeight="20"
906
                                                        Visibility="{Binding IsSyncPossible, Converter={StaticResource BoolToVisibleConverter}}">
907
                                                    <telerik:RadButton Content="OPEN" telerik:StyleManager.Theme="Office2016"  Foreground="White"
908
                                                                       Background="Transparent" HorizontalAlignment="Stretch" Click="RadButton_Click" CommandParameter="{Binding}"/>
909
                                                </Border>-->
910
                                                <telerik:RadButton  Margin="5" BorderThickness="0" Click="RadButton_Click" CommandParameter="{Binding}" Background="Transparent"
911
                                                                   Visibility="{Binding IsSyncPossible, Converter={StaticResource BoolToVisibleConverter}}">
912
                                                    <telerik:RadButton.Content>
913
                                                        <Image Source="/KCOM;component/Resources/Images/MenuImage_new/file.png" Stretch="Uniform" Width="20" Height="20"/>
914
                                                    </telerik:RadButton.Content>
915
                                                </telerik:RadButton>
916

    
917
                                                <!--<TextBlock Text="{Binding IsSyncPossible}" HorizontalAlignment="Center"/>-->
918
                                            </DataTemplate>
919
                                        </telerik:GridViewDataColumn.CellTemplate>
920
                                    </telerik:GridViewDataColumn>
921
                                    <telerik:GridViewDataColumn CellStyle="{StaticResource GridViewAlign}"
922
                                                                        DataMemberBinding="{Binding EnsembleLink}" IsReadOnly="True"
923
                                                                        Header="Attachments" telerik:StyleManager.Theme="Office2013"
924
                                                                        HeaderTextAlignment="Center">
925
                                        <telerik:GridViewDataColumn.CellTemplate>
926
                                            <DataTemplate>
927
                                                <telerik:RadButton Content="Link" Tag="{Binding EnsembleLink}" Margin="5" BorderThickness="0" Click="EnsembleLink_Button_Click" Background="Transparent">
928

    
929
                                                </telerik:RadButton>
930
                                            </DataTemplate>
931
                                        </telerik:GridViewDataColumn.CellTemplate>
932
                                    </telerik:GridViewDataColumn>
933
                                </telerik:RadGridView.Columns>
934
                            </telerik:RadGridView>
935
                            <telerik:RadBusyIndicator x:Name="gridViewHistory_Busy" IsBusy="False" telerik:StyleManager.Theme="Office2016"
936
                                                  BusyContent="Sync Data Loading"/>
937
                        </Grid>
938
                    </telerik:RadPane>
939
                </telerik:RadPaneGroup>
940
            </telerik:RadSplitContainer>
941

    
942

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