프로젝트

일반

사용자정보

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

markus / KCOM / Views / MainMenu.xaml @ 6af42ff0

이력 | 보기 | 이력해설 | 다운로드 (77.6 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
                                                              ScaleChanged="ZoomAndPanControl_ScaleChanged"
119
                                                              MouseDoubleClick="zoomAndPanControl_MouseDoubleClick"
120
                                                              ContentScale="{Binding ContentScale, Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}"
121
                                                              ContentOffsetX="{Binding ContentOffsetX, Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}"
122
                                                              ContentOffsetY="{Binding ContentOffsetY, Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}"
123
                                                              ConstrainedContentViewportWidth="{Binding ContentViewportWidth, Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}"
124
                                                              ConstrainedContentViewportHeight="{Binding ContentViewportHeight, Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}"
125
                                                              Background="LightGray">
126
                                    <Canvas x:Name="zoomAndPanCanvas" Opacity="1" Background="White">
127

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

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

    
218

    
219
                                            <!--<Border Background="Red" Panel.ZIndex="1" Opacity="0.5" Visibility="Visible" Width="100" Height="100" />-->
220
                                        </Canvas>
221

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

    
224
                                        <!--<Leadtools_Windows_Controls:RasterImageViewer x:Name="_imageViewer" Grid.Row="1" BorderThickness="0"/>-->
225
                                    </Canvas>
226

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

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

    
301
                                <!--<Viewbox VerticalAlignment="Stretch" HorizontalAlignment="Stretch" StretchDirection="DownOnly" Stretch="Uniform" IsHitTestVisible="False">
302
                                    <TextBlock Text="Previous Document" HorizontalAlignment="Center" VerticalAlignment="Center" RenderTransformOrigin="0.5, 0.5" FontSize="50"
303
                                           Foreground="White" Opacity="0.5" FontWeight="Bold">
304
                                        <TextBlock.RenderTransform>
305
                                            <RotateTransform Angle="-25"/>
306
                                        </TextBlock.RenderTransform>
307
                                    </TextBlock>
308
                                </Viewbox>-->
309

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

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

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

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

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

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

    
349

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

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

    
451
                                                            <TextBlock Grid.Column="0"
452
                                                               Foreground="Red"
453
                                                               Text="{Binding AvoidConsolidate,
454
                                                                              Converter={StaticResource AvoidStringConverter}}" />
455
                                                            <TextBlock Grid.Column="1"
456
                                                               Foreground="Blue"
457
                                                               Text="{Binding PartConsolidate,
458
                                                                              Converter={StaticResource TeamConsoliStringConverter}}" />
459
                                                            <TextBlock Grid.Column="2" Text="{Binding Consolidate, Converter={StaticResource ConsoliStringConverter}}" />
460
                                                            <!--
461
                                                        <TextBlock HorizontalAlignment="Center" Grid.Column="2">
462
                                                        <TextBlock.Text>
463
                                                        <Binding Converter="{StaticResource ConsoliStringConverter}"/>
464
                                                        </TextBlock.Text>
465
                                                        </TextBlock>
466
                                                    -->
467
                                                        </Grid>
468
                                                    </DataTemplate>
469
                                                </telerik:GridViewDataColumn.CellTemplate>
470
                                            </telerik:GridViewDataColumn>
471

    
472
                                            <telerik:GridViewDataColumn Header="Comment Move"  IsReadOnly="True" Width="Auto"  HeaderCellStyle="{StaticResource GridViewHeaderStyle}">
473
                                                <telerik:GridViewDataColumn.CellTemplate>
474
                                                    <DataTemplate>
475
                                                        <telerik:RadButton telerik:StyleManager.Theme="Office2016" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Content="COPY" PreviewMouseDown="Comment_Move" />
476
                                                        <!--<TextBlock Text="{Binding UserName, Mode=TwoWay}" FontSize="10"/>-->
477
                                                    </DataTemplate>
478
                                                </telerik:GridViewDataColumn.CellTemplate>
479
                                            </telerik:GridViewDataColumn>
480

    
481
                                            <telerik:GridViewDataColumn Header=""  IsReadOnly="True" Width="*"  HeaderCellStyle="{StaticResource GridViewHeaderStyle}">
482
                                            </telerik:GridViewDataColumn>
483
                                        </telerik:RadGridView.Columns>
484
                                    </telerik:RadGridView>
485
                                </Grid>
486
                                <!--</telerik:RadExpander>-->
487

    
488

    
489
                            </Grid>
490
                        </telerik:RadPane>
491
                    </telerik:RadPaneGroup>
492
                </telerik:RadSplitContainer>
493
            </telerik:RadDocking.DocumentHost>
494

    
495

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

    
536
                    </telerik:RadPane>
537
                </telerik:RadPaneGroup>
538
            </telerik:RadSplitContainer>
539

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

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

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

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

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

    
843
                                    <telerik:GridViewDataColumn CellStyle="{StaticResource GridViewAlign}"
844
                                                                        DataMemberBinding="{Binding TO_VENDOR}" IsReadOnly="True"
845
                                                                        Header="File(out)" telerik:StyleManager.Theme="Office2013"
846
                                                                        HeaderTextAlignment="Center">
847
                                        <telerik:GridViewDataColumn.CellTemplate>
848
                                            <DataTemplate>
849
                                                <Image Height="22" Source="/KCOM;component/Resources/Images/MenuImage_New/PDF.png" 
850
                                                       MouseLeftButtonDown="PdfLink_ButtonDown" Tag="{Binding TO_VENDOR}"
851
                                                       Visibility="{Binding TO_VENDOR, Converter={StaticResource PDFVisibleConverter}}"/>
852
                                            </DataTemplate>
853
                                        </telerik:GridViewDataColumn.CellTemplate>
854
                                    </telerik:GridViewDataColumn>
855

    
856

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

    
889
                                                <!--<TextBlock Text="{Binding IsSyncPossible}" HorizontalAlignment="Center"/>-->
890
                                            </DataTemplate>
891
                                        </telerik:GridViewDataColumn.CellTemplate>
892
                                    </telerik:GridViewDataColumn>
893
                                    <telerik:GridViewDataColumn CellStyle="{StaticResource GridViewAlign}"
894
                                                                        DataMemberBinding="{Binding EnsembleLink}" IsReadOnly="True"
895
                                                                        Header="Attachments" telerik:StyleManager.Theme="Office2013"
896
                                                                        HeaderTextAlignment="Center">
897
                                        <telerik:GridViewDataColumn.CellTemplate>
898
                                            <DataTemplate>
899
                                                <telerik:RadButton Content="Link" Tag="{Binding EnsembleLink}" Margin="5" BorderThickness="0" Click="EnsembleLink_Button_Click" Background="Transparent">
900

    
901
                                                </telerik:RadButton>
902
                                            </DataTemplate>
903
                                        </telerik:GridViewDataColumn.CellTemplate>
904
                                    </telerik:GridViewDataColumn>
905
                                </telerik:RadGridView.Columns>
906
                            </telerik:RadGridView>
907
                            <telerik:RadBusyIndicator x:Name="gridViewHistory_Busy" IsBusy="False" telerik:StyleManager.Theme="Office2016"
908
                                                  BusyContent="Sync Data Loading"/>
909
                        </Grid>
910
                    </telerik:RadPane>
911
                </telerik:RadPaneGroup>
912
            </telerik:RadSplitContainer>
913

    
914

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