프로젝트

일반

사용자정보

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

markus / KCOM / Views / MainMenu.xaml @ 29e5dc6a

이력 | 보기 | 이력해설 | 다운로드 (75.2 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
        <Style TargetType="telerik:GridViewHeaderCell" x:Key="GridViewHeaderStyle">
13
            <Setter Property="VerticalContentAlignment" Value="Center"/>
14
            <Setter Property="HorizontalContentAlignment" Value="Center"/>
15
            <Setter Property="BorderThickness" Value="0"/>
16
            <Setter Property="Background">
17
                <Setter.Value>
18
                    <SolidColorBrush Color="Black" Opacity="0.5"/>
19
                </Setter.Value>
20
            </Setter>
21
            <!--<Setter Property="Background" Value="Black"/>-->
22
            <Setter Property="BorderBrush" Value="White"/>
23
            <Setter Property="Foreground" Value="White"/>
24
            <Setter Property="telerik:StyleManager.Theme" Value="Office2013"/>
25
            <!--<Setter Property="FontWeight" Value="Black"/>-->
26
        </Style>
27
        <Style x:Key="GridViewAlign" TargetType="telerikGrid:GridViewCell">
28
            <Setter Property="HorizontalContentAlignment" Value="Center" />
29
            <Setter Property="TextBlock.TextDecorations">
30
                <Setter.Value>
31
                    <TextDecorationCollection>
32
                        <TextDecoration Location="Underline" />
33
                        <TextDecoration Location="Overline" />
34
                        <TextDecoration  
35
                PenThicknessUnit="FontRecommended">
36
                            <TextDecoration.Pen>
37
                                <Pen Thickness="1.0">
38
                                    <Pen.Brush>
39
                                        <LinearGradientBrush Opacity="0.5"
40
                                StartPoint="0,0.5"  EndPoint="1,0.5">
41
                                            <LinearGradientBrush.GradientStops>
42
                                                <GradientStop Color="Yellow" Offset="0" />
43
                                                <GradientStop Color="Red" Offset="1" />
44
                                            </LinearGradientBrush.GradientStops>
45
                                        </LinearGradientBrush>
46
                                    </Pen.Brush>
47
                                </Pen>
48
                            </TextDecoration.Pen>
49
                        </TextDecoration>
50
                    </TextDecorationCollection>
51
                </Setter.Value>
52
            </Setter>
53
        </Style>
54
        <converter:PDFVisibleConverter x:Key="PDFVisibleConverter"/>
55
        <converter:ConsolidationBackgroudConverter x:Key="ConsolidationBackgroudConverter" />
56
        <converter:StringToColorConverter x:Key="StringToColorConverter"/>
57
        <converter:AvoidStringConverter x:Key="AvoidStringConverter" />
58
        <converter:TeamConsolidateStringConverter x:Key="TeamConsoliStringConverter" />
59
        <converter:ConsolidationStringConverter x:Key="ConsoliStringConverter" />
60
        <converter:BoolToVisibleConverter x:Key="BoolToVisibleConverter" />
61
        <converter:PreviewerVisibleConverter x:Key="previewerVisibleConverter"/>
62
    </UserControl.Resources>
63
    <Grid Background="{DynamicResource KCOMColor_MainBrush}">
64
        <!--<Grid.ColumnDefinitions>
65
            <ColumnDefinition Width="Auto"/>
66
            <ColumnDefinition Width="*"/>
67
        </Grid.ColumnDefinitions>-->
68
        <!--<Border Background="#fff5f5f5" BorderBrush="#d5d5d5" BorderThickness="0">
69
            -->
70
        <!--<controls:PageNavigator x:Name="pageNavigator" Grid.Row="1" Width="200"/>-->
71
        <!--
72
            <telerik:RadLayoutControl SelectedItem="{x:Null}" VirtualizingStackPanel.VirtualizationMode="Recycling" ScrollViewer.VerticalScrollBarVisibility="Hi">
73
                <telerik:LayoutControlTabGroup Template="{DynamicResource TabControlTemplate}" telerik:StyleManager.Theme="Office2016">
74
                    <telerik:LayoutControlTabGroupItem Header="Thumbnail">
75
                        <telerik:LayoutControlGroup BorderBrush="Transparent" Padding="5" Margin="0,-3">                            
76
                            <controls:PageNavigator x:Name="pageNavigator" Grid.Row="1" Width="300"/>                            
77
                        </telerik:LayoutControlGroup>
78
                    </telerik:LayoutControlTabGroupItem>
79
                    <telerik:LayoutControlTabGroupItem Header="Bookmark">
80
                        <telerik:LayoutControlGroup BorderBrush="Transparent">
81
                            <Border Background="Blue"/>
82
                        </telerik:LayoutControlGroup>
83
                    </telerik:LayoutControlTabGroupItem>
84
                </telerik:LayoutControlTabGroup>
85
            </telerik:RadLayoutControl>
86
        </Border>-->
87
        <!--<Grid.ColumnDefinitions>
88
            <ColumnDefinition Width="Auto"/>
89
            <ColumnDefinition Width="*"/>
90
            <ColumnDefinition Width="Auto"/>
91
        </Grid.ColumnDefinitions>-->
92
        <!--<Border Background="{DynamicResource Office2016Color_PrimaryBrush}">
93
            <Border Background="White" Margin="50"/>
94
        </Border>-->
95
        <telerik:RadDocking BorderThickness="0" Padding="0" Background="{DynamicResource KCOMColor_MainBrush}" Grid.Column="1">
96
            <telerik:RadDocking.DocumentHost>
97
                <telerik:RadSplitContainer Background="Transparent" Margin="0,-1,0,0">
98
                    <telerik:RadPaneGroup Style="{DynamicResource Style_RadPanelGroup}">
99
                        <telerik:RadDocumentPane Header="VP-320A-728063" CanFloat="False" CanUserClose="False" Title="Document 1" PaneHeaderVisibility="Collapsed" Margin="0,-20,0,0">
100
                            <telerik:RadDocumentPane.HeaderTemplate>
101
                                <DataTemplate>
102
                                    <Border Margin="0,0,0,0"/>
103
                                </DataTemplate>
104
                            </telerik:RadDocumentPane.HeaderTemplate>
105
                            <!--<Grid Background="{DynamicResource KCOMColor_AlternativeBrush}">-->
106
                            <Grid Background="{DynamicResource KCOMColor_DocumnetBackgroundBrush}">
107
                                <Rectangle Name="rect" Margin="50,50,0,0" Width="100" Height="100" Fill="LightBlue"/>
108
                                <Popup Name="floatingTip" AllowsTransparency="True" Placement="Relative" PlacementTarget="{Binding ElementName=rect}">
109
                                    <TextBlock x:Name="txtBatch" Foreground="Red" FontSize="20" Text="Mark Control을 그립니다."/>
110
                                </Popup>
111
                                <telerik:RadBusyIndicator x:Name="busyIndicator" IsBusy="False" BusyContent="Saving...">
112
                                <ZoomAndPan:ZoomAndPanControl x:Name="zoomAndPanControl"
113
                                                              MouseWheel="zoomAndPanControl_MouseWheel"
114
                                                              MouseDown="zoomAndPanControl_MouseDown"
115
                                                              MouseMove="zoomAndPanControl_MouseMove"
116
                                                              MouseUp="zoomAndPanControl_MouseUp"
117
                                                              MouseLeave="zoomAndPanControl_MouseLeave"
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
                                                <Image Panel.ZIndex="0" x:Name="mainPanel"
166
                                                   Source="{Binding ImageViewPath, Source={x:Static common:ViewerDataModel.Instance}}" 
167
                                                   Width="{Binding ImageViewWidth, Source={x:Static common:ViewerDataModel.Instance}}" 
168
                                                   Height="{Binding ImageViewHeight, Source={x:Static common:ViewerDataModel.Instance}}" >
169
                                            </Image>
170

    
171
                                            <Canvas x:Name="SelectLayer" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Panel.ZIndex="32766"/>
172
                                                <Border x:Name="dragSelectionBorder" Visibility="Collapsed"
173
                                                    BorderBrush="Blue"
174
                                                    BorderThickness="1"
175
                                                    Background="LightBlue" 
176
                                                    CornerRadius="1"
177
                                                    Panel.ZIndex="1"
178
                                                    Opacity="0.5"/>
179
                                                <Border x:Name="dragCaptureBorder" Visibility="Collapsed"
180
                                                    BorderBrush="Blue"
181
                                                    BorderThickness="1"
182
                                                    Background="Blue" 
183
                                                    CornerRadius="1"
184
                                                    Panel.ZIndex="1"
185
                                                    Opacity="0.5"/>
186
                                            <Border x:Name="dragZoomBorder" Visibility="Collapsed"
187
                                                    BorderThickness="3"
188
                                                    Background="Transparent" 
189
                                                    CornerRadius="1"
190
                                                    Panel.ZIndex="1"
191
                                                    Opacity="1">
192
                                                <Border.BorderBrush>
193
                                                    <VisualBrush>
194
                                                        <VisualBrush.Visual>
195
                                                            <Rectangle StrokeDashArray="4 2" Stroke="Gray" StrokeThickness="1"
196
                                                                  Width="{Binding RelativeSource={RelativeSource AncestorType={x:Type Border}}, Path=ActualWidth}"
197
                                                                  Height="{Binding RelativeSource={RelativeSource AncestorType={x:Type Border}}, Path=ActualHeight}"/>
198
                                                        </VisualBrush.Visual>
199
                                                    </VisualBrush>
200
                                                </Border.BorderBrush>
201
                                            </Border>
202
                                            <!--<Border x:Name="dragZoomBorder"
203
                                                    BorderBrush="Black"
204
                                                    BorderThickness="1"
205
                                                    
206
                                                    Background="Transparent" 
207
                                                    CornerRadius="1"
208
                                                    Panel.ZIndex="1"
209
                                                    Opacity="0.5"/>-->
210

    
211

    
212
                                            <!--<Border Background="Red" Panel.ZIndex="1" Opacity="0.5" Visibility="Visible" Width="100" Height="100" />-->
213
                                        </Canvas>
214

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

    
217
                                        <!--<Leadtools_Windows_Controls:RasterImageViewer x:Name="_imageViewer" Grid.Row="1" BorderThickness="0"/>-->
218
                                    </Canvas>
219

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

    
271
                                                        </Canvas>
272
                                                    </ItemsPanelTemplate>
273
                                                </ItemsControl.ItemsPanel>
274
                                            </ItemsControl>
275
                                            <Image
276
                                                   Source="{Binding ImageViewPath_C, Source={x:Static common:ViewerDataModel.Instance}}" 
277
                                                   Width="{Binding ImageViewWidth_C, Source={x:Static common:ViewerDataModel.Instance}}" 
278
                                                   Height="{Binding ImageViewHeight_C, Source={x:Static common:ViewerDataModel.Instance}}" >
279
                                            </Image>
280
                                            <Canvas x:Name="canvas_compareBorder" IsHitTestVisible="False" Width="{Binding ActualWidth, ElementName=zoomAndPanCanvas2}" Height="{Binding ActualHeight, ElementName=zoomAndPanCanvas2}" Panel.ZIndex="1">
281
                                                <!--<Canvas.RenderTransform>
282
                                                    -->
283
                                                <!--<RotateTransform Angle="{Binding Angle, Source={x:Static common:ViewerDataModel.Instance}}"/>-->
284
                                                <!--
285
                                                    <RotateTransform Angle="{Binding Angle, ElementName=zoomAndPanCanvas2}"/>
286
                                                </Canvas.RenderTransform>-->
287
                                            </Canvas>
288
                                            <!--강인구 추가-->
289
                                        </Canvas>
290
                                    </Canvas>
291
                                </ZoomAndPan:ZoomAndPanControl>
292
                                <Grid Background="#FF353535" Opacity="0.5" IsHitTestVisible="False"/>
293

    
294
                                <Viewbox VerticalAlignment="Stretch" HorizontalAlignment="Stretch" StretchDirection="DownOnly" Stretch="Uniform" IsHitTestVisible="False">
295
                                    <TextBlock Text="Previous Document" HorizontalAlignment="Center" VerticalAlignment="Center" RenderTransformOrigin="0.5, 0.5" FontSize="50"
296
                                           Foreground="White" Opacity="0.5" FontWeight="Bold">
297
                                        <TextBlock.RenderTransform>
298
                                            <RotateTransform Angle="-25"/>
299
                                        </TextBlock.RenderTransform>
300
                                    </TextBlock>
301
                                </Viewbox>
302

    
303
                                <!--<telerik:RadExpander Header="OPEN" Background="Transparent" telerik:StyleManager.Theme="Office2016"
304
                                                     ExpandDirection="Right" VerticalAlignment="Top" HorizontalAlignment="Left">-->
305
                                <Grid Height="Auto" VerticalAlignment="Top" >
306
                                    <Grid.RowDefinitions>
307
                                        <RowDefinition/>
308
                                        <RowDefinition/>
309
                                    </Grid.RowDefinitions>
310
                                    <!--<Border Background="#3b3838" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Opacity="0.5" Grid.RowSpan="2"/>-->
311
                                    <Border Background="Black" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Opacity="0.5" Grid.RowSpan="2" BorderThickness="0"/>
312
                                    <StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
313
                                        <!--<TextBlock Text="ReadOnly Mode" Foreground="#FFFF9A25" VerticalAlignment="Center" Margin="10"/>-->
314
                                        <TextBlock Text="Rev.A" Foreground="#FFFF9A25" VerticalAlignment="Center" Margin="10" x:Name="tlSyncRev"/>
315
                                        <TextBlock Text="Current Page : 1" Foreground="White" VerticalAlignment="Center"  x:Name="tlSyncPageNum"/>
316
                                    </StackPanel>
317
                                    <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
318
                                        <!--<telerik:RadToggleButton x:Name="CompareMode" IsChecked="False" Content="Compare"  Margin="5" Checked="SyncCompare_Click" Unchecked="SyncCompare_Click" BorderThickness="0" telerik:StyleManager.Theme="Office2013"
319
                                                                       Style="{DynamicResource RadToggleSwtichButtonStyle}" Width="Auto" Padding="10,0"/>-->
320
                                        <!--<telerik:RadRibbonToggleButton x:Name="UserList" Content="User List" Foreground="white"  Margin="5" Click="SyncUserListExpender_Click" BorderThickness="0" telerik:StyleManager.Theme="Office2013" VerticalAlignment="Center"/>-->
321

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

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

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

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

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

    
342

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

    
416
                                                    </DataTemplate>
417
                                                </telerik:GridViewDataColumn.CellTemplate>
418
                                            </telerik:GridViewDataColumn>
419
                                            <telerik:GridViewDataColumn Header="DEPT"  IsReadOnly="True"  Width="Auto" HeaderCellStyle="{StaticResource GridViewHeaderStyle}">
420
                                                <telerik:GridViewDataColumn.CellTemplate>
421
                                                    <DataTemplate>
422
                                                        <TextBlock Text="{Binding Depatment}"  FontSize="12"/>
423
                                                    </DataTemplate>
424
                                                </telerik:GridViewDataColumn.CellTemplate>
425
                                            </telerik:GridViewDataColumn>
426
                                            <telerik:GridViewDataColumn Header="NAME"  IsReadOnly="True" Width="Auto"  HeaderCellStyle="{StaticResource GridViewHeaderStyle}">
427
                                                <telerik:GridViewDataColumn.CellTemplate>
428
                                                    <DataTemplate>
429
                                                        <TextBlock Text="{Binding UserName, Mode=TwoWay}" FontSize="10"/>
430
                                                    </DataTemplate>
431
                                                </telerik:GridViewDataColumn.CellTemplate>
432
                                            </telerik:GridViewDataColumn>
433
                                            <telerik:GridViewDataColumn Header="CONSOLIDATION"  IsReadOnly="True" Width="Auto"  HeaderCellStyle="{StaticResource GridViewHeaderStyle}">
434
                                                <telerik:GridViewDataColumn.CellTemplate>
435
                                                    <DataTemplate>
436
                                                        <!--<TextBlock Text="{Binding Consolidate}"/>-->
437
                                                        <Grid>
438
                                                            <Grid.ColumnDefinitions>
439
                                                                <ColumnDefinition Width="Auto" />
440
                                                                <ColumnDefinition Width="Auto" />
441
                                                                <ColumnDefinition Width="Auto" />
442
                                                            </Grid.ColumnDefinitions>
443

    
444
                                                            <TextBlock Grid.Column="0"
445
                                                               Foreground="Red"
446
                                                               Text="{Binding AvoidConsolidate,
447
                                                                              Converter={StaticResource AvoidStringConverter}}" />
448
                                                            <TextBlock Grid.Column="1"
449
                                                               Foreground="Blue"
450
                                                               Text="{Binding PartConsolidate,
451
                                                                              Converter={StaticResource TeamConsoliStringConverter}}" />
452
                                                            <TextBlock Grid.Column="2" Text="{Binding Consolidate, Converter={StaticResource ConsoliStringConverter}}" />
453
                                                            <!--
454
                                                        <TextBlock HorizontalAlignment="Center" Grid.Column="2">
455
                                                        <TextBlock.Text>
456
                                                        <Binding Converter="{StaticResource ConsoliStringConverter}"/>
457
                                                        </TextBlock.Text>
458
                                                        </TextBlock>
459
                                                    -->
460
                                                        </Grid>
461
                                                    </DataTemplate>
462
                                                </telerik:GridViewDataColumn.CellTemplate>
463
                                            </telerik:GridViewDataColumn>
464

    
465
                                            <telerik:GridViewDataColumn Header="Comment Move"  IsReadOnly="True" Width="Auto"  HeaderCellStyle="{StaticResource GridViewHeaderStyle}">
466
                                                <telerik:GridViewDataColumn.CellTemplate>
467
                                                    <DataTemplate>
468
                                                        <telerik:RadButton telerik:StyleManager.Theme="Office2016" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Content="COPY" PreviewMouseDown="Comment_Move" />
469
                                                        <!--<TextBlock Text="{Binding UserName, Mode=TwoWay}" FontSize="10"/>-->
470
                                                    </DataTemplate>
471
                                                </telerik:GridViewDataColumn.CellTemplate>
472
                                            </telerik:GridViewDataColumn>
473

    
474
                                            <telerik:GridViewDataColumn Header=""  IsReadOnly="True" Width="*"  HeaderCellStyle="{StaticResource GridViewHeaderStyle}">
475
                                            </telerik:GridViewDataColumn>
476
                                        </telerik:RadGridView.Columns>
477
                                    </telerik:RadGridView>
478
                                </Grid>
479
                                <!--</telerik:RadExpander>-->
480

    
481

    
482
                            </Grid>
483
                        </telerik:RadPane>
484
                    </telerik:RadPaneGroup>
485
                </telerik:RadSplitContainer>
486
            </telerik:RadDocking.DocumentHost>
487

    
488

    
489
            <telerik:RadSplitContainer Orientation="Vertical" InitialPosition="DockedLeft" x:Name="thumbnailPanel">
490
                <!-- Width="250" MinWidth="250" -->
491
                <!--<telerik:RadPaneGroup Margin="0" Style="{DynamicResource Style_RadPanelGroup}">-->
492
                <telerik:RadPaneGroup Margin="0" telerik:StyleManager.Theme="Office2016" x:Name="PN_Navi">
493
                    <telerik:RadPane Header="DOCUMENT" CanFloat="False" CanUserClose="False" CanUserPin="True" 
494
                                     ContextMenuTemplate="{x:Null}" PaneHeaderVisibility="Visible" telerik:StyleManager.Theme="Office2016">
495
                        <!--<telerik:RadPane.TitleTemplate>
496
                            <DataTemplate>
497
                                <Grid>
498
                                    <Grid.ColumnDefinitions>
499
                                        <ColumnDefinition Width="Auto" />
500
                                        <ColumnDefinition />
501
                                    </Grid.ColumnDefinitions>
502
                                    <ContentPresenter Content="{Binding}"
503
                                                      Margin="0,0,75,0" />
504
                                         <telerik:RadButton Grid.Column="1" Content="PIN"/>
505
                                </Grid>
506
                            </DataTemplate>
507
                        </telerik:RadPane.TitleTemplate>-->
508
                        <!--<Grid VerticalAlignment="Stretch" Margin="0">
509
                            <Grid.RowDefinitions>
510
                                <RowDefinition Height="30"/>
511
                                <RowDefinition Height="*"/>
512
                            </Grid.RowDefinitions>
513
                            <Border BorderBrush="{Binding ElementName=leftPanel}" BorderThickness="0,1">
514
                                <TextBlock Text="Thumbnail" Margin="5"/>
515
                            </Border>
516
                            <controls:PageNavigator x:Name="pageNavigator" Grid.Row="1"/>
517
                        </Grid>-->
518
                        <Grid>
519
                            <!--<controls:PageNavigator x:Name="pageNavigator" Grid.Row="1" Visibility="Collapsed"/>-->
520
                            <!--<Grid.RowDefinitions>
521
                                <RowDefinition Height="Auto"/>
522
                                <RowDefinition Height="*"/>
523
                            </Grid.RowDefinitions>-->
524
                            <!--<telerik:RadButton Content="Panorama" telerik:StyleManager.Theme="Office2016" FontSize="8"  Background="#FF0054B9" Foreground="White"
525
                                       BorderThickness="0" CornerRadius="3" HorizontalAlignment="Right" Padding="5" Margin="5,10"/>-->
526
                            <controls:Sample x:Name="pageNavigator"/>
527
                        </Grid>
528

    
529
                    </telerik:RadPane>
530
                </telerik:RadPaneGroup>
531
            </telerik:RadSplitContainer>
532

    
533
            <telerik:RadSplitContainer Orientation="Vertical" InitialPosition="DockedRight" MaxWidth="300" Width="300">
534
                <telerik:RadPaneGroup telerik:StyleManager.Theme="Office2016">
535
                    <telerik:RadPane Header="SEARCH" Visibility="Visible" CanFloat="False" CanUserClose="False"  ContextMenuTemplate="{x:Null}" IsPinned="False" telerik:StyleManager.Theme="Office2016" x:Name="searchPane">
536
                        <controls:SearchPanel x:Name="searchPanel_Instance"/>
537
                    </telerik:RadPane>
538
                </telerik:RadPaneGroup>
539
                <telerik:RadPaneGroup telerik:StyleManager.Theme="Office2016">
540
                    <telerik:RadPane Header="M-TALK" CanFloat="False" CanUserClose="False" ContextMenuTemplate="{x:Null}" IsPinned="False" telerik:StyleManager.Theme="Office2016"  x:Name="talkPane">
541
                        <messanger:ConversationView/>
542
                    </telerik:RadPane>
543
                </telerik:RadPaneGroup>
544
                <telerik:RadPaneGroup Visibility="Visible" telerik:StyleManager.Theme="Office2016">
545
                    <telerik:RadPane Header="SYMBOL" Visibility="Visible" CanFloat="False" CanUserClose="False"  ContextMenuTemplate="{x:Null}" IsPinned="False" telerik:StyleManager.Theme="Office2016"  x:Name="SymbolPane">
546
                        <!--<controls:Symbol />-->
547
                        <controls:Symbol x:Name="symbolPanel_Instance"/>
548
                        <!--<telerik:RadButton Click="Create_Symbol">Create</telerik:RadButton>-->
549
                    </telerik:RadPane>
550
                </telerik:RadPaneGroup>
551
                <telerik:RadPaneGroup telerik:StyleManager.Theme="Office2016"  telerik:ProportionalStackPanel.RelativeSize="60, 100">
552
                    <telerik:RadPane Header="FAVORITE" Visibility="Visible"  CanFloat="False" CanUserClose="False"  ContextMenuTemplate="{x:Null}" IsPinned="False" telerik:StyleManager.Theme="Office2016"  x:Name="FavoritePane">
553
                        <controls:FavoritePanel/>
554
                    </telerik:RadPane>
555
                </telerik:RadPaneGroup>
556
            </telerik:RadSplitContainer>
557
            <telerik:RadSplitContainer Orientation="Horizontal" InitialPosition="DockedBottom">
558
                <telerik:RadPaneGroup telerik:StyleManager.Theme="Office2016" telerik:ProportionalStackPanel.RelativeSize="140, 100">
559
                    <telerik:RadPane Header="User information List"  CanFloat="False" CanUserClose="False"  ContextMenuTemplate="{x:Null}" telerik:StyleManager.Theme="Office2016"  x:Name="infoListPane">
560
                        <telerik:RadPane.TitleTemplate>
561
                            <DataTemplate>
562
                                <Grid>
563
                                    <Grid.ColumnDefinitions>
564
                                        <ColumnDefinition Width="*" />
565
                                        <ColumnDefinition Width="Auto" />
566
                                    </Grid.ColumnDefinitions>
567

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

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

    
721
                                        </DataTemplate>
722
                                    </telerik:GridViewDataColumn.CellTemplate>
723
                                </telerik:GridViewDataColumn>
724
                                <telerik:GridViewDataColumn Header="DEPT"  IsReadOnly="True"  Width="Auto" DataMemberBinding="{Binding Depatment}" >
725
                                    <telerik:GridViewDataColumn.CellTemplate>
726
                                        <DataTemplate>
727
                                            <TextBlock Text="{Binding Depatment}"/>
728
                                        </DataTemplate>
729
                                    </telerik:GridViewDataColumn.CellTemplate>
730
                                </telerik:GridViewDataColumn>
731
                                <telerik:GridViewDataColumn Header="NAME"  IsReadOnly="True" Width="Auto" DataMemberBinding="{Binding UserName}">
732
                                    <telerik:GridViewDataColumn.CellTemplate>
733
                                        <DataTemplate>
734
                                            <TextBlock Text="{Binding UserName, Mode=TwoWay}"/>
735
                                        </DataTemplate>
736
                                    </telerik:GridViewDataColumn.CellTemplate>
737
                                </telerik:GridViewDataColumn>
738
                                <telerik:GridViewDataColumn Header="UPDATETIME"  IsReadOnly="True" Width="Auto">
739
                                    <telerik:GridViewDataColumn.CellTemplate>
740
                                        <DataTemplate>
741
                                            <TextBlock Text="{Binding UpdateTime}"/>
742
                                        </DataTemplate>
743
                                    </telerik:GridViewDataColumn.CellTemplate>
744
                                </telerik:GridViewDataColumn>
745
                                <telerik:GridViewDataColumn Header="CONSOLIDATION"  IsReadOnly="True" Width="Auto">
746
                                    <telerik:GridViewDataColumn.CellTemplate>
747
                                        <DataTemplate>
748
                                            <!--<TextBlock Text="{Binding Consolidate}"/>-->
749
                                            <Grid>
750
                                                <Grid.ColumnDefinitions>
751
                                                    <ColumnDefinition Width="Auto" />
752
                                                    <ColumnDefinition Width="Auto" />
753
                                                    <ColumnDefinition Width="Auto" />
754
                                                </Grid.ColumnDefinitions>
755

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

    
835
                                    <telerik:GridViewDataColumn CellStyle="{StaticResource GridViewAlign}"
836
                                                                        DataMemberBinding="{Binding TO_VENDOR}" IsReadOnly="True"
837
                                                                        Header="File(out)" telerik:StyleManager.Theme="Office2013"
838
                                                                        HeaderTextAlignment="Center">
839
                                        <telerik:GridViewDataColumn.CellTemplate>
840
                                            <DataTemplate>
841
                                                <Image Height="22" Source="/KCOM;component/Resources/Images/MenuImage_New/PDF.png" 
842
                                                       MouseLeftButtonDown="PdfLink_ButtonDown" Tag="{Binding TO_VENDOR}"
843
                                                       Visibility="{Binding TO_VENDOR, Converter={StaticResource PDFVisibleConverter}}"/>
844
                                            </DataTemplate>
845
                                        </telerik:GridViewDataColumn.CellTemplate>
846
                                    </telerik:GridViewDataColumn>
847

    
848

    
849
                                    <!--<telerik:GridViewDataColumn Header="FROM_VENDOR"  IsReadOnly="True" Width="Auto">
850
                                    <telerik:GridViewDataColumn.CellTemplate>
851
                                        <DataTemplate>
852
                                            <telerik:RadRibbonButton telerik:StyleManager.Theme="Office2016">
853
                                                <
854
                                                <TextBlock Text="{Binding FROM_VENDOR}" HorizontalAlignment="Center"/>
855
                                            </telerik:RadRibbonButton>                                            
856
                                        </DataTemplate>
857
                                    </telerik:GridViewDataColumn.CellTemplate>
858
                                </telerik:GridViewDataColumn>-->
859
                                    <!--<telerik:GridViewDataColumn Header="TO_VENDOR"  IsReadOnly="True" Width="Auto">
860
                                    <telerik:GridViewDataColumn.CellTemplate>
861
                                        <DataTemplate>
862
                                            <TextBlock Text="{Binding TO_VENDOR}" HorizontalAlignment="Center"/>
863
                                        </DataTemplate>
864
                                    </telerik:GridViewDataColumn.CellTemplate>
865
                                </telerik:GridViewDataColumn>-->
866
                                    <telerik:GridViewDataColumn Header="SYNC"  IsReadOnly="True" Width="Auto" CellStyle="{StaticResource GridViewAlign}" HeaderTextAlignment="Center">
867
                                        <telerik:GridViewDataColumn.CellTemplate>
868
                                            <DataTemplate>
869
                                                <!--<Border Grid.Column="1" Background="#FF0054B9" CornerRadius="5" Margin="5" VerticalAlignment="Center" MinHeight="20"
870
                                                        Visibility="{Binding IsSyncPossible, Converter={StaticResource BoolToVisibleConverter}}">
871
                                                    <telerik:RadButton Content="OPEN" telerik:StyleManager.Theme="Office2016"  Foreground="White"
872
                                                                       Background="Transparent" HorizontalAlignment="Stretch" Click="RadButton_Click" CommandParameter="{Binding}"/>
873
                                                </Border>-->
874
                                                <telerik:RadButton  Margin="5" BorderThickness="0" Click="RadButton_Click" CommandParameter="{Binding}" Background="Transparent"
875
                                                                   Visibility="{Binding IsSyncPossible, Converter={StaticResource BoolToVisibleConverter}}">
876
                                                    <telerik:RadButton.Content>
877
                                                        <Image Source="/KCOM;component/Resources/Images/MenuImage_new/file.png" Stretch="Uniform" Width="20" Height="20"/>
878
                                                    </telerik:RadButton.Content>
879
                                                </telerik:RadButton>
880

    
881
                                                <!--<TextBlock Text="{Binding IsSyncPossible}" HorizontalAlignment="Center"/>-->
882
                                            </DataTemplate>
883
                                        </telerik:GridViewDataColumn.CellTemplate>
884
                                    </telerik:GridViewDataColumn>
885
                                </telerik:RadGridView.Columns>
886
                            </telerik:RadGridView>
887
                            <telerik:RadBusyIndicator x:Name="gridViewHistory_Busy" IsBusy="False" telerik:StyleManager.Theme="Office2016"
888
                                                  BusyContent="Sync Data Loading"/>
889
                        </Grid>
890
                    </telerik:RadPane>
891
                </telerik:RadPaneGroup>
892
            </telerik:RadSplitContainer>
893

    
894

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