프로젝트

일반

사용자정보

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

markus / KCOM / Views / MainMenu.xaml @ f87dfb18

이력 | 보기 | 이력해설 | 다운로드 (78.9 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
                                <telerik:RadBusyIndicator x:Name="busyIndicator" IsBusy="False" BusyContent="Saving...">
111
                                <ZoomAndPan:ZoomAndPanControl x:Name="zoomAndPanControl"
112
                                                              MouseWheel="zoomAndPanControl_MouseWheel"
113
                                                              MouseDown="zoomAndPanControl_MouseDown"
114
                                                              MouseMove="zoomAndPanControl_MouseMove"
115
                                                              MouseUp="zoomAndPanControl_MouseUp"
116
                                                              MouseLeave="zoomAndPanControl_MouseLeave"
117
                                                              ScaleChanged="ZoomAndPanControl_ScaleChanged"
118
                                                              MouseDoubleClick="zoomAndPanControl_MouseDoubleClick"
119
                                                              ContentScale="{Binding ContentScale, Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}"
120
                                                              ContentOffsetX="{Binding ContentOffsetX, Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}"
121
                                                              ContentOffsetY="{Binding ContentOffsetY, Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}"
122
                                                              ConstrainedContentViewportWidth="{Binding ContentViewportWidth, Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}"
123
                                                              ConstrainedContentViewportHeight="{Binding ContentViewportHeight, Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}"
124
                                                              Background="LightGray">
125
                                    <Canvas x:Name="zoomAndPanCanvas" Opacity="1" Background="White">
126

    
127
                                        <Canvas x:Name="drawingRotateCanvas"
128
                                                        Panel.ZIndex="1"
129
                                                        Background="{Binding BackgroundImage, Mode=OneWay, Source={x:Static common:ViewerDataModel.Instance}}">
130
                                            <Canvas.RenderTransform>
131
                                                <TransformGroup>
132
                                                    <RotateTransform x:Name="rotate" Angle="0"/>
133
                                                    <TranslateTransform x:Name="translate" X="0" Y="0"/>
134
                                                </TransformGroup>
135
                                            </Canvas.RenderTransform>
136
                                            
137
                                            <ItemsControl ItemsSource="{Binding MarkupControls, Source={x:Static common:ViewerDataModel.Instance}}"
138
                                          Panel.ZIndex="1">
139
                                                <ItemsControl.ItemsPanel>
140
                                                    <ItemsPanelTemplate>
141
                                                        <Canvas />
142
                                                    </ItemsPanelTemplate>
143
                                                </ItemsControl.ItemsPanel>
144
                                            </ItemsControl>
145
                                            <ItemsControl ItemsSource="{Binding MarkupControls_USER, Source={x:Static common:ViewerDataModel.Instance}}"
146
                                          Panel.ZIndex="30">
147
                                                <ItemsControl.ItemsPanel>
148
                                                    <ItemsPanelTemplate>
149
                                                        <Canvas />
150
                                                    </ItemsPanelTemplate>
151
                                                </ItemsControl.ItemsPanel>
152
                                            </ItemsControl>
153
                                            <InkPresenter x:Name="inkBoard" HorizontalAlignment="Stretch" Panel.ZIndex="1" VerticalAlignment="Stretch"/>
154
                                            <InkCanvas x:Name="inkDrawingCanvas"
155
                                               Background="Transparent"
156
                                               IsEnabled="False"
157
                                               Panel.ZIndex="1"
158
                                               Strokes="{Binding MarkupPens, Source={x:Static common:ViewerDataModel.Instance}}" Height="1" Width="1">
159
                                                <!--<Rectangle Height="41" HorizontalAlignment="Left"  Name="rectangle1" Stroke="Black" VerticalAlignment="Top" Width="69" Fill="#FFDB1111" />-->
160
                                                <!--<Ellipse Height="41" HorizontalAlignment="Left"  Name="rectangle1" Stroke="Black" VerticalAlignment="Top" Width="69" Fill="#FFDB1111" />-->
161

    
162
                                                <!--<MarkupToPDF:RectangleControl Height="200" HorizontalAlignment="Center" Name="rectangle2" StrokeColor="Black" VerticalAlignment="Top" Width="00" FillColor="Red"/>-->
163
                                            </InkCanvas>
164
                                            <!--강인구 추가-->
165
                                                <!--<controls:ScaleDecodeImage Panel.ZIndex="0" x:Name="mainPanel"
166
                                                   Source="{Binding ImageViewPath,Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}" 
167
                                                    Width="{Binding ImageViewWidth,Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}"
168
                                                        Height="{Binding ImageViewHeight,Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}">
169
                                                </controls:ScaleDecodeImage>-->
170
                                                <Image Panel.ZIndex="0" x:Name="mainPanel" RenderOptions.BitmapScalingMode="HighQuality"
171
                                                       RenderOptions.EdgeMode="Unspecified" RenderOptions.ClearTypeHint="Enabled"
172
                                                        Source="{Binding ImageViewPath,Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}" 
173
                                                         Width="{Binding ImageViewWidth,Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}"
174
                                                        Height="{Binding ImageViewHeight,Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}"
175
                                                           >
176
                                                    </Image>
177
                                                <Canvas x:Name="SelectLayer" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Panel.ZIndex="32766"/>
178
                                                <Border x:Name="dragSelectionBorder" Visibility="Collapsed"
179
                                                    BorderBrush="Blue"
180
                                                    BorderThickness="1"
181
                                                    Background="LightBlue" 
182
                                                    CornerRadius="1"
183
                                                    Panel.ZIndex="1"
184
                                                    Opacity="0.5"/>
185
                                                <Border x:Name="dragCaptureBorder" Visibility="Collapsed"
186
                                                    BorderBrush="Blue"
187
                                                    BorderThickness="1"
188
                                                    Background="Blue" 
189
                                                    CornerRadius="1"
190
                                                    Panel.ZIndex="1"
191
                                                    Opacity="0.5"/>
192
                                                
193
                                                <Border x:Name="dragZoomBorder" Visibility="Collapsed"
194
                                                    BorderThickness="3"
195
                                                    Background="Transparent" 
196
                                                    CornerRadius="1"
197
                                                    Panel.ZIndex="1"
198
                                                    Opacity="1">
199
                                                <Border.BorderBrush>
200
                                                    <VisualBrush>
201
                                                        <VisualBrush.Visual>
202
                                                            <Rectangle StrokeDashArray="4 2" Stroke="Gray" StrokeThickness="1"
203
                                                                  Width="{Binding RelativeSource={RelativeSource AncestorType={x:Type Border}}, Path=ActualWidth}"
204
                                                                  Height="{Binding RelativeSource={RelativeSource AncestorType={x:Type Border}}, Path=ActualHeight}"/>
205
                                                        </VisualBrush.Visual>
206
                                                    </VisualBrush>
207
                                                </Border.BorderBrush>
208
                                            </Border>
209
                                            <!--<Border x:Name="dragZoomBorder"
210
                                                    BorderBrush="Black"
211
                                                    BorderThickness="1"
212
                                                    
213
                                                    Background="Transparent" 
214
                                                    CornerRadius="1"
215
                                                    Panel.ZIndex="1"
216
                                                    Opacity="0.5"/>-->
217
                                                <Canvas x:Name="SearchFocusBorder" Visibility="Collapsed"
218
                                                    Background="#50FF5D00" 
219
                                                    Panel.ZIndex="99999" IsHitTestVisible="False">
220
                                                    <Border Visibility="Collapsed"
221
                                                    BorderThickness="1"
222
                                                    Background="#50FF5D00" 
223
                                                    CornerRadius="1"
224
                                                    Panel.ZIndex="99999" IsHitTestVisible="False"
225
                                                             Width="{Binding Width, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Canvas}}}"
226
                                                            Height="{Binding Height, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Canvas}}}"></Border>
227
                                                </Canvas>
228
                                                <!--<Border Background="Red" Panel.ZIndex="1" Opacity="0.5" Visibility="Visible" Width="100" Height="100" />-->
229
                                        </Canvas>
230

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

    
233
                                        <!--<Leadtools_Windows_Controls:RasterImageViewer x:Name="_imageViewer" Grid.Row="1" BorderThickness="0"/>-->
234
                                    </Canvas>
235

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

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

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

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

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

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

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

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

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

    
358

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

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

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

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

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

    
497

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

    
504

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

    
545
                    </telerik:RadPane>
546
                </telerik:RadPaneGroup>
547
            </telerik:RadSplitContainer>
548

    
549
            <telerik:RadSplitContainer Orientation="Vertical" InitialPosition="DockedRight" MaxWidth="300" Width="300">
550
                <telerik:RadPaneGroup  IsTabStop="False" telerik:StyleManager.Theme="Office2016">
551
                    <telerik:RadPane Header="SEARCH" Visibility="Visible" CanFloat="False" CanUserClose="False"  ContextMenuTemplate="{x:Null}" IsPinned="False" telerik:StyleManager.Theme="Office2016" x:Name="searchPane">
552
                        <controls:SearchPanel x:Name="searchPanel_Instance"/>
553
                    </telerik:RadPane>
554
                </telerik:RadPaneGroup>
555
                <telerik:RadPaneGroup  IsTabStop="False" telerik:StyleManager.Theme="Office2016">
556
                    <telerik:RadPane Header="M-TALK" CanFloat="False" CanUserClose="False" ContextMenuTemplate="{x:Null}" IsPinned="False" telerik:StyleManager.Theme="Office2016"  x:Name="talkPane">
557
                        <messanger:ConversationView/>
558
                    </telerik:RadPane>
559
                </telerik:RadPaneGroup>
560
                <telerik:RadPaneGroup  IsTabStop="False" Visibility="Visible" telerik:StyleManager.Theme="Office2016">
561
                    <telerik:RadPane Header="SYMBOL" Visibility="Visible" CanFloat="False" CanUserClose="False"  ContextMenuTemplate="{x:Null}" IsPinned="False" telerik:StyleManager.Theme="Office2016"  x:Name="SymbolPane">
562
                        <!--<controls:Symbol />-->
563
                        <controls:Symbol x:Name="symbolPanel_Instance"/>
564
                        <!--<telerik:RadButton Click="Create_Symbol">Create</telerik:RadButton>-->
565
                    </telerik:RadPane>
566
                </telerik:RadPaneGroup>
567
                <telerik:RadPaneGroup  IsTabStop="False" telerik:StyleManager.Theme="Office2016"  telerik:ProportionalStackPanel.RelativeSize="60, 100">
568
                    <telerik:RadPane Header="FAVORITE" Visibility="Visible"  CanFloat="False" CanUserClose="False"  ContextMenuTemplate="{x:Null}" IsPinned="False" telerik:StyleManager.Theme="Office2016"  x:Name="FavoritePane">
569
                        <controls:FavoritePanel/>
570
                    </telerik:RadPane>
571
                </telerik:RadPaneGroup>
572
            </telerik:RadSplitContainer>
573
            <telerik:RadSplitContainer Orientation="Horizontal" InitialPosition="DockedBottom">
574
                <telerik:RadPaneGroup IsTabStop="False"  telerik:StyleManager.Theme="Office2016" telerik:ProportionalStackPanel.RelativeSize="140, 100">
575
                    <telerik:RadPane Header="User information List"  CanFloat="False" CanUserClose="False"  ContextMenuTemplate="{x:Null}" telerik:StyleManager.Theme="Office2016"  x:Name="infoListPane">
576
                        <telerik:RadPane.TitleTemplate>
577
                            <DataTemplate>
578
                                <Grid>
579
                                    <Grid.ColumnDefinitions>
580
                                        <ColumnDefinition Width="*" />
581
                                        <ColumnDefinition Width="Auto" />
582
                                    </Grid.ColumnDefinitions>
583

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

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

    
737
                                        </DataTemplate>
738
                                    </telerik:GridViewDataColumn.CellTemplate>
739
                                </telerik:GridViewDataColumn>
740
                                <telerik:GridViewDataColumn Header="DEPT"  IsReadOnly="True"  Width="Auto" DataMemberBinding="{Binding Depatment}" >
741
                                    <telerik:GridViewDataColumn.CellTemplate>
742
                                        <DataTemplate>
743
                                            <TextBlock Text="{Binding Depatment}"/>
744
                                        </DataTemplate>
745
                                    </telerik:GridViewDataColumn.CellTemplate>
746
                                </telerik:GridViewDataColumn>
747
                                <telerik:GridViewDataColumn Header="NAME"  IsReadOnly="True" Width="Auto" DataMemberBinding="{Binding UserName}">
748
                                    <telerik:GridViewDataColumn.CellTemplate>
749
                                        <DataTemplate>
750
                                            <TextBlock Text="{Binding UserName, Mode=TwoWay}"/>
751
                                        </DataTemplate>
752
                                    </telerik:GridViewDataColumn.CellTemplate>
753
                                </telerik:GridViewDataColumn>
754
                                <telerik:GridViewDataColumn Header="UPDATETIME"  IsReadOnly="True" Width="Auto">
755
                                    <telerik:GridViewDataColumn.CellTemplate>
756
                                        <DataTemplate>
757
                                            <TextBlock Text="{Binding UpdateTime}"/>
758
                                        </DataTemplate>
759
                                    </telerik:GridViewDataColumn.CellTemplate>
760
                                </telerik:GridViewDataColumn>
761
                                <telerik:GridViewDataColumn Header="CONSOLIDATION"  IsReadOnly="True" Width="Auto">
762
                                    <telerik:GridViewDataColumn.CellTemplate>
763
                                        <DataTemplate>
764
                                            <!--<TextBlock Text="{Binding Consolidate}"/>-->
765
                                            <Grid>
766
                                                <Grid.ColumnDefinitions>
767
                                                    <ColumnDefinition Width="Auto" />
768
                                                    <ColumnDefinition Width="Auto" />
769
                                                    <ColumnDefinition Width="Auto" />
770
                                                </Grid.ColumnDefinitions>
771

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

    
852
                                    <telerik:GridViewDataColumn CellStyle="{StaticResource GridViewAlign}"
853
                                                                        DataMemberBinding="{Binding TO_VENDOR}" IsReadOnly="True"
854
                                                                        Header="File(out)" telerik:StyleManager.Theme="Office2013"
855
                                                                        HeaderTextAlignment="Center">
856
                                        <telerik:GridViewDataColumn.CellTemplate>
857
                                            <DataTemplate>
858
                                                <Image Height="22" Source="/KCOM;component/Resources/Images/MenuImage_New/PDF.png" 
859
                                                       MouseLeftButtonDown="PdfLink_ButtonDown" Tag="{Binding TO_VENDOR}"
860
                                                       Visibility="{Binding TO_VENDOR, Converter={StaticResource PDFVisibleConverter}}"/>
861
                                            </DataTemplate>
862
                                        </telerik:GridViewDataColumn.CellTemplate>
863
                                    </telerik:GridViewDataColumn>
864

    
865

    
866
                                    <!--<telerik:GridViewDataColumn Header="FROM_VENDOR"  IsReadOnly="True" Width="Auto">
867
                                    <telerik:GridViewDataColumn.CellTemplate>
868
                                        <DataTemplate>
869
                                            <telerik:RadRibbonButton telerik:StyleManager.Theme="Office2016">
870
                                                <
871
                                                <TextBlock Text="{Binding FROM_VENDOR}" HorizontalAlignment="Center"/>
872
                                            </telerik:RadRibbonButton>                                            
873
                                        </DataTemplate>
874
                                    </telerik:GridViewDataColumn.CellTemplate>
875
                                </telerik:GridViewDataColumn>-->
876
                                    <!--<telerik:GridViewDataColumn Header="TO_VENDOR"  IsReadOnly="True" Width="Auto">
877
                                    <telerik:GridViewDataColumn.CellTemplate>
878
                                        <DataTemplate>
879
                                            <TextBlock Text="{Binding TO_VENDOR}" HorizontalAlignment="Center"/>
880
                                        </DataTemplate>
881
                                    </telerik:GridViewDataColumn.CellTemplate>
882
                                </telerik:GridViewDataColumn>-->
883
                                    <telerik:GridViewDataColumn Header="SYNC"  IsReadOnly="True" Width="Auto" CellStyle="{StaticResource GridViewAlign}" HeaderTextAlignment="Center">
884
                                        <telerik:GridViewDataColumn.CellTemplate>
885
                                            <DataTemplate>
886
                                                <!--<Border Grid.Column="1" Background="#FF0054B9" CornerRadius="5" Margin="5" VerticalAlignment="Center" MinHeight="20"
887
                                                        Visibility="{Binding IsSyncPossible, Converter={StaticResource BoolToVisibleConverter}}">
888
                                                    <telerik:RadButton Content="OPEN" telerik:StyleManager.Theme="Office2016"  Foreground="White"
889
                                                                       Background="Transparent" HorizontalAlignment="Stretch" Click="RadButton_Click" CommandParameter="{Binding}"/>
890
                                                </Border>-->
891
                                                <telerik:RadButton  Margin="5" BorderThickness="0" Click="RadButton_Click" CommandParameter="{Binding}" Background="Transparent"
892
                                                                   Visibility="{Binding IsSyncPossible, Converter={StaticResource BoolToVisibleConverter}}">
893
                                                    <telerik:RadButton.Content>
894
                                                        <Image Source="/KCOM;component/Resources/Images/MenuImage_new/file.png" Stretch="Uniform" Width="20" Height="20"/>
895
                                                    </telerik:RadButton.Content>
896
                                                </telerik:RadButton>
897

    
898
                                                <!--<TextBlock Text="{Binding IsSyncPossible}" HorizontalAlignment="Center"/>-->
899
                                            </DataTemplate>
900
                                        </telerik:GridViewDataColumn.CellTemplate>
901
                                    </telerik:GridViewDataColumn>
902
                                    <telerik:GridViewDataColumn CellStyle="{StaticResource GridViewAlign}"
903
                                                                        DataMemberBinding="{Binding EnsembleLink}" IsReadOnly="True"
904
                                                                        Header="Attachments" telerik:StyleManager.Theme="Office2013"
905
                                                                        HeaderTextAlignment="Center">
906
                                        <telerik:GridViewDataColumn.CellTemplate>
907
                                            <DataTemplate>
908
                                                <telerik:RadButton Content="Link" Tag="{Binding EnsembleLink}" Margin="5" BorderThickness="0" Click="EnsembleLink_Button_Click" Background="Transparent">
909

    
910
                                                </telerik:RadButton>
911
                                            </DataTemplate>
912
                                        </telerik:GridViewDataColumn.CellTemplate>
913
                                    </telerik:GridViewDataColumn>
914
                                </telerik:RadGridView.Columns>
915
                            </telerik:RadGridView>
916
                            <telerik:RadBusyIndicator x:Name="gridViewHistory_Busy" IsBusy="False" telerik:StyleManager.Theme="Office2016"
917
                                                  BusyContent="Sync Data Loading"/>
918
                        </Grid>
919
                    </telerik:RadPane>
920
                </telerik:RadPaneGroup>
921
            </telerik:RadSplitContainer>
922

    
923

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