~halega/+junk/sharpdevelop

« back to all changes in this revision

Viewing changes to src/Libraries/AvalonDock/AvalonDock/Themes/aero.normalcolor.xaml

  • Committer: sk
  • Date: 2011-09-10 05:17:57 UTC
  • Revision ID: halega@halega.com-20110910051757-qfouz1llya9m6boy
4.1.0.7915 Release Candidate 1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<ResourceDictionary
 
2
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
 
3
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
 
4
    xmlns:ad="clr-namespace:AvalonDock"
 
5
    xmlns:adRes="clr-namespace:AvalonDock.Properties;assembly=AvalonDock"    
 
6
    >
 
7
 
 
8
 
 
9
        <ResourceDictionary.MergedDictionaries>
 
10
                <ResourceDictionary Source="/AvalonDock;component/themes/generic.xaml"/>
 
11
 
 
12
                <!--Aero colors-->
 
13
                <ResourceDictionary Source="/AvalonDock;component/themes/aero.normalcolor.brushes.xaml"/>
 
14
        </ResourceDictionary.MergedDictionaries>
 
15
 
 
16
 
 
17
        <!-- styles for Aero theme thanks to Alexey Potapov-->
 
18
 
 
19
        <!--DockableContentTabItemStyle-->
 
20
        <Style x:Key="DockableContentTabItemStyle" TargetType="{x:Type ad:DockableContent}">
 
21
                <Setter Property="Template">
 
22
                        <Setter.Value>
 
23
                                <ControlTemplate TargetType="{x:Type ad:DockableContent}">
 
24
                                        <Grid SnapsToDevicePixels="True">
 
25
                                                <Border 
 
26
                                                    x:Name="PART_DragArea" 
 
27
                                                    BorderBrush="{StaticResource ManagedContentTabControlNormalBorderBrush}" 
 
28
                                                    BorderThickness="1,0,1,1" 
 
29
                            Margin="0,2,-1,0"
 
30
                            CornerRadius="0"
 
31
                            Background="{StaticResource ManagedContentTabItemNormalBackground}"   
 
32
                            Padding="1"
 
33
                            >
 
34
                                                        <Grid Margin="4,0,4,0">
 
35
                                                                <Grid.ColumnDefinitions>
 
36
                                                                        <ColumnDefinition Width="Auto"/>
 
37
                                                                        <ColumnDefinition Width="*"/>
 
38
                                                                </Grid.ColumnDefinitions>
 
39
                                <ad:ImageEx x:Name="Icon" Width="16" Source="{TemplateBinding Icon}" />
 
40
                                <TextBlock 
 
41
                                                                        x:Name="tabItemTitle"
 
42
                                        Grid.Column="1"
 
43
                                                                        TextTrimming="CharacterEllipsis" TextWrapping="NoWrap"
 
44
                                                                        Text="{TemplateBinding Title}" 
 
45
                                                                        Margin="2,0,0,0" VerticalAlignment="Center"
 
46
                                                                        Foreground="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
 
47
                                                        </Grid>
 
48
                                                </Border>
 
49
                                        </Grid>
 
50
 
 
51
                                        <ControlTemplate.Triggers>
 
52
                                                <Trigger Property="Selector.IsSelected"
 
53
                                                                 Value="true">
 
54
                                                        <Setter Property="BorderBrush"
 
55
                                                                        Value="{StaticResource ManagedContentTabItemSelectedBorderBrush}" TargetName="PART_DragArea"/>
 
56
                                                        <Setter Property="Background"
 
57
                                                                        Value="{StaticResource ManagedContentTabItemSelectedBackground}" TargetName="PART_DragArea"/>
 
58
                                                        <Setter Property="Foreground"
 
59
                                                                        Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" TargetName="tabItemTitle"/>
 
60
                                                        <Setter Property="Margin"
 
61
                                    Value="0,1,-1,-2" TargetName="PART_DragArea"/>
 
62
                                                        <Setter Property="Padding"
 
63
                                    Value="2" TargetName="PART_DragArea"/>
 
64
                                                        <Setter Property="Panel.ZIndex" 
 
65
                                    Value="100" />
 
66
                                                </Trigger>
 
67
                                                <MultiTrigger>
 
68
                                                        <MultiTrigger.Conditions>
 
69
                                                                <Condition Property="IsMouseOver" Value="true"/>
 
70
                                                                <Condition Property="Selector.IsSelected" Value="false"/>
 
71
                                                        </MultiTrigger.Conditions>
 
72
                                                        <Setter Property="BorderBrush" Value="{StaticResource ManagedContentTabItemHotBorderBrush}" 
 
73
                                    TargetName="PART_DragArea" />
 
74
                                                        <Setter Property="Background" Value="{StaticResource ManagedContentTabItemHotBackground}" 
 
75
                                    TargetName="PART_DragArea" />
 
76
                                                        <Setter Property="Panel.ZIndex" Value="99" />
 
77
                                                </MultiTrigger>
 
78
                                                <Trigger Property="IsEnabled" Value="false">
 
79
                                                        <Setter Property="BorderBrush" Value="{StaticResource ManagedContentTabItemDisabledBorderBrush}"
 
80
                                    TargetName="PART_DragArea" />
 
81
                                                        <Setter Property="Background" Value="{StaticResource ManagedContentTabItemDisabledBackground}"
 
82
                                    TargetName="PART_DragArea" />
 
83
                                                        <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"
 
84
                                    TargetName="tabItemTitle" />
 
85
                                                        <Setter TargetName="Icon" Property="IsEnabled" Value="false" />
 
86
                                                </Trigger>
 
87
                                                <Trigger Property="Icon"
 
88
                     Value="{x:Null}">
 
89
                                                        <Setter TargetName="Icon"
 
90
                        Property="Visibility"
 
91
                        Value="Collapsed"/>
 
92
                                                </Trigger>
 
93
                                        </ControlTemplate.Triggers>
 
94
                                </ControlTemplate>
 
95
                        </Setter.Value>
 
96
                </Setter>
 
97
        </Style>
 
98
 
 
99
        <!--DockablePane-->
 
100
        <Style x:Key="{x:Type ad:DockablePane}" TargetType="{x:Type ad:DockablePane}">
 
101
                <Setter Property="Background" Value="{DynamicResource {ComponentResourceKey {x:Type ad:DockingManager}, {x:Static ad:AvalonDockBrushes.DefaultBackgroundBrush}}}"/>
 
102
                <Setter Property="Template">
 
103
                        <Setter.Value>
 
104
                                <ControlTemplate TargetType="{x:Type ad:DockablePane}">
 
105
                                        <Border
 
106
                            Focusable="False"
 
107
                            Background="{TemplateBinding Background}"
 
108
                            >
 
109
                                                <Grid FocusManager.FocusedElement="{Binding ElementName=PART_SelectedContent}">
 
110
                                                        <Grid.RowDefinitions>
 
111
                                                                <RowDefinition Height="Auto"/>
 
112
                                                                <RowDefinition Height="*"/>
 
113
                                                                <RowDefinition Height="Auto"/>
 
114
                                                        </Grid.RowDefinitions>
 
115
                                                        <Border x:Name="PART_Header" 
 
116
                                                                Grid.Row="0" Focusable="False" 
 
117
                                                                Background="{DynamicResource {ComponentResourceKey {x:Type ad:DockingManager}, {x:Static ad:AvalonDockBrushes.DockablePaneTitleBackground}}}"
 
118
                                                                BorderThickness="1,1,1,0" 
 
119
                                                                BorderBrush="DarkGray"
 
120
                                    Height="18">
 
121
                                                                <DockPanel LastChildFill="True">
 
122
                                    <Button x:Name="btnClose" DockPanel.Dock="Right" Style="{StaticResource PaneHeaderCommandStyle}" Command="ad:ManagedContentCommands.Close" CommandTarget="{TemplateBinding SelectedItem}"
 
123
                                            ToolTip="{x:Static adRes:Resources.DockablePaneCommands_Close}"
 
124
                                                Width="15" Height="15" Margin="2,0,2,0" VerticalAlignment="Center">
 
125
                                        <ad:ImageEx Source="/AvalonDock;component/resources/Images/PinClose.png" Width="13" />
 
126
                                                                        </Button>
 
127
                                                                        <Button x:Name="btnPinAutoHide" DockPanel.Dock="Right" Style="{StaticResource PaneHeaderCommandStyle}" 
 
128
                                            ToolTip="{x:Static adRes:Resources.DockablePaneCommands_ToggleAutoHide}"
 
129
                                            Command="ad:DockablePaneCommands.ToggleAutoHide"
 
130
                                                Width="15" Height="15" VerticalAlignment="Center">
 
131
                                        <ad:ImageEx Source="/AvalonDock;component/resources/Images/PinAutoHide.png" Width="13" />
 
132
                                                                        </Button>
 
133
                                    <Border x:Name="PART_ShowContextMenuButton"  DockPanel.Dock="Right" Style="{StaticResource PaneHeaderContextMenuCommandStyle}" 
 
134
                                            ToolTip="{x:Static adRes:Resources.DockablePane_ShowOptionsMenu}"    
 
135
                                            Width="15" Height="15" VerticalAlignment="Center"> <!--Command="ad:DockablePaneCommands.ShowOptionsCommand"-->
 
136
                                        <ad:ImageEx Source="/AvalonDock;component/resources/Images/PinMenu.png" Width="13" />
 
137
                                    </Border>
 
138
                                                                        <TextBlock 
 
139
                                                                                Text="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=SelectedItem.Title}" 
 
140
                                                                                x:Name="paneTitle"
 
141
                                                                                Grid.Row="0" 
 
142
                                                                                Margin="2,0,0,0" TextTrimming="CharacterEllipsis" TextWrapping="NoWrap"
 
143
                                            VerticalAlignment="Center"
 
144
                                                                                Foreground="{DynamicResource {ComponentResourceKey {x:Type ad:DockingManager}, {x:Static ad:AvalonDockBrushes.DockablePaneTitleForeground}}}"/>
 
145
                                                                </DockPanel>
 
146
                                                        </Border>
 
147
                                                        <Border Grid.Row="1" 
 
148
                                    x:Name="intContentBorder"
 
149
                                                                    BorderThickness="1,0,1,1" 
 
150
                                                                    BorderBrush="DarkGray"
 
151
                                        Background="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=SelectedItem.Background}"   
 
152
                                    >
 
153
                                                                <ContentPresenter 
 
154
                                        x:Name="PART_SelectedContent"
 
155
                                        Content="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=SelectedItem.Content}"
 
156
                                                                        KeyboardNavigation.TabNavigation="Local"
 
157
                                                                        KeyboardNavigation.DirectionalNavigation="Contained"
 
158
                                                                        KeyboardNavigation.TabIndex="1"
 
159
                                        />
 
160
                                                        </Border>
 
161
                                                        <Border x:Name="PART_Tabs"
 
162
                                        Grid.Row="2" 
 
163
                                                                        Margin ="0,2,0,0" 
 
164
                                        Height ="23" 
 
165
                                                                        BorderThickness="0,1,0,0" 
 
166
                                                                        BorderBrush="{StaticResource ManagedContentTabControlNormalBorderBrush}" 
 
167
                                                                        >
 
168
                                                        </Border>
 
169
                                                        <ad:DockableTabPanel
 
170
                                        Grid.Row="2" 
 
171
                                        Height ="22" 
 
172
                                        KeyboardNavigation.TabIndex="2"                                                         
 
173
                                        IsItemsHost="True" 
 
174
                                        x:Name="paneTabsPanel" 
 
175
                                        Margin="0,0,0,2"
 
176
                                        TabItemStyle="{StaticResource DockableContentTabItemStyle}"/>
 
177
                                                </Grid>
 
178
                                        </Border>
 
179
                                        <ControlTemplate.Triggers>
 
180
                                                <DataTrigger Binding="{Binding RelativeSource={RelativeSource Self}, Path=SelectedItem.IsActiveContent}" Value="True" >
 
181
                                                        <Setter Property="Background" Value="{DynamicResource {ComponentResourceKey {x:Type ad:DockingManager}, {x:Static ad:AvalonDockBrushes.DockablePaneTitleBackgroundSelected}}}" TargetName="PART_Header"/>
 
182
                                                        <Setter Property="Foreground" Value="{DynamicResource {ComponentResourceKey {x:Type ad:DockingManager}, {x:Static ad:AvalonDockBrushes.DockablePaneTitleForegroundSelected}}}" TargetName="paneTitle"/>
 
183
                                                </DataTrigger>
 
184
                        <DataTrigger Binding="{Binding RelativeSource={RelativeSource Self},  Path=SelectedItem.IsCloseable}" Value="false">
 
185
                            <Setter Property="Visibility" TargetName="btnClose" Value="Collapsed"/>
 
186
                        </DataTrigger>                        
 
187
                                                <Trigger Property ="ShowHeader" Value="False">
 
188
                                                        <Setter Property="Visibility" Value="Collapsed" TargetName="PART_Header"/>
 
189
                            <Setter Property="BorderThickness" Value="0" TargetName="intContentBorder"/>
 
190
                                                </Trigger>
 
191
                                                <Trigger Property ="ShowTabs" Value="False">
 
192
                                                        <Setter Property="Visibility" Value="Collapsed" TargetName="PART_Tabs"/>
 
193
                                                </Trigger>
 
194
                                                <Trigger Property ="HasSingleItem" Value="True">
 
195
                                                        <Setter Property="Visibility" Value="Collapsed" TargetName="PART_Tabs"/>
 
196
                                                        <Setter Property="Visibility" Value="Collapsed" TargetName="paneTabsPanel"/>
 
197
                                                </Trigger>
 
198
                                                <DataTrigger Binding="{Binding RelativeSource={RelativeSource Self},  Path=SelectedItem.State}" Value="AutoHide">
 
199
                                                        <Setter Property="LayoutTransform" TargetName="btnPinAutoHide">
 
200
                                                                <Setter.Value>
 
201
                                                                        <RotateTransform Angle="90"/>
 
202
                                                                </Setter.Value>
 
203
                                                        </Setter>
 
204
                                                </DataTrigger>
 
205
                                        </ControlTemplate.Triggers>
 
206
                                </ControlTemplate>
 
207
                        </Setter.Value>
 
208
                </Setter>
 
209
        </Style>
 
210
 
 
211
    <!-- FloatingDockablePane -->
 
212
    <Style x:Key="{x:Type ad:FloatingDockablePane}" TargetType="{x:Type ad:FloatingDockablePane}" BasedOn="{StaticResource {x:Type ad:DockablePane}}">
 
213
 
 
214
    </Style>
 
215
 
 
216
    <!--DocumentTabItemStyle-->
 
217
    <Style x:Key="DocumentTabItemStyle" TargetType="{x:Type ad:ManagedContent}">
 
218
        <Setter Property="Background"
 
219
                Value="Transparent"/>
 
220
        <Setter Property="Template">
 
221
            <Setter.Value>
 
222
                <ControlTemplate TargetType="{x:Type ad:ManagedContent}">
 
223
                    <Border 
 
224
                                                x:Name="PART_DragArea" 
 
225
                                                BorderBrush="{StaticResource ManagedContentTabControlNormalBorderBrush}"
 
226
                        Margin="0,0,-10,0"
 
227
                                                SnapsToDevicePixels="True">
 
228
                        <Grid >
 
229
                            <Grid.ColumnDefinitions>
 
230
                                <ColumnDefinition Width="20"/>
 
231
                                <ColumnDefinition Width="*"/>
 
232
                            </Grid.ColumnDefinitions>
 
233
                            <!--This image with width=0 is required to connect the icon visual to the presentation source,
 
234
                                without this navigatorwindow won't work-->
 
235
                            <Image Source="{TemplateBinding Icon}" Width="0"/>
 
236
                            <Path Data="M 20,0.5 Q 16,0.5 10,10 Q 5,19.5 0,19.5 L 20,19.5"
 
237
                                x:Name="tabItemIntPathBackground"  
 
238
                                  Fill="{DynamicResource {ComponentResourceKey {x:Type ad:DockingManager}, {x:Static ad:AvalonDockBrushes.DocumentHeaderBackground}}}"/>
 
239
                            <Path 
 
240
                                x:Name="tabItemIntPathBorder"  
 
241
                                Stroke="{StaticResource ManagedContentTabControlNormalBorderBrush}"
 
242
                                Data="M 20,0.5 Q 16,0.5 10,10 Q 5,19.5 0, 19.5"/>
 
243
                            <Border
 
244
                                    x:Name="tabItemIntBorder"
 
245
                                    Grid.Column="1"
 
246
                                    BorderThickness="0,1,1,0"
 
247
                                    Margin="-0.5,0,0,0"
 
248
                                    CornerRadius="0,3,0,0"
 
249
                                    BorderBrush="{StaticResource ManagedContentTabControlNormalBorderBrush}"
 
250
                                    Background="{DynamicResource {ComponentResourceKey {x:Type ad:DockingManager}, {x:Static ad:AvalonDockBrushes.DocumentHeaderBackground}}}"
 
251
                                >
 
252
                                <StackPanel Orientation="Horizontal" 
 
253
                                            Margin="5,0,5,0">
 
254
                                    <TextBlock 
 
255
                                                                        x:Name="tabItemTitle" 
 
256
                                                                        TextTrimming="CharacterEllipsis" 
 
257
                                            TextWrapping="NoWrap"
 
258
                                                                        Text="{Binding Title, RelativeSource={RelativeSource TemplatedParent}, StringFormat='{}{0} '}"
 
259
                                                                        Foreground="{DynamicResource {ComponentResourceKey {x:Type ad:DockingManager}, {x:Static ad:AvalonDockBrushes.DocumentHeaderForeground}}}"/>
 
260
                                    <!--<ad:AlignedImage x:Name="PART_LockedIcon" Margin="2,0,0,0" Visibility="Collapsed" VerticalAlignment="Center" HorizontalAlignment="Center">
 
261
                                        <Image Source="/AvalonDock;component/resources/Images/Locked.png" Width="6" Height="8" Stretch="Uniform"/>
 
262
                                    </ad:AlignedImage>-->
 
263
                                    <ad:ImageEx x:Name="PART_LockedIcon" Source="/AvalonDock;component/resources/Images/Locked.png" Width="6" Visibility="Collapsed"  Margin="2,0,0,0" VerticalAlignment="Center"/>
 
264
                                </StackPanel>
 
265
                            </Border>
 
266
                        </Grid>
 
267
                    </Border>
 
268
                    <ControlTemplate.Triggers>
 
269
                        <Trigger Property="Selector.IsSelected" Value="True">
 
270
                            <Setter Property="Background" 
 
271
                                    TargetName="tabItemIntBorder" 
 
272
                                    Value="{DynamicResource {ComponentResourceKey {x:Type ad:DockingManager}, {x:Static ad:AvalonDockBrushes.DocumentHeaderBackgroundSelected}}}"
 
273
                                    />
 
274
                            <Setter Property="Fill" 
 
275
                                    TargetName="tabItemIntPathBackground" 
 
276
                                    Value="{DynamicResource {ComponentResourceKey {x:Type ad:DockingManager}, {x:Static ad:AvalonDockBrushes.DocumentHeaderBackgroundSelected}}}"
 
277
                                    />
 
278
                            <Setter Property="BorderBrush" TargetName="tabItemIntBorder" Value="{DynamicResource {ComponentResourceKey {x:Type ad:DockingManager}, {x:Static ad:AvalonDockBrushes.DocumentHeaderBorder}}}"/>
 
279
                            <Setter Property="Stroke" TargetName="tabItemIntPathBorder" Value="{DynamicResource {ComponentResourceKey {x:Type ad:DockingManager}, {x:Static ad:AvalonDockBrushes.DocumentHeaderBorder}}}"/>
 
280
                        </Trigger>
 
281
                        <DataTrigger Binding="{Binding Path=IsActiveDocument, RelativeSource={RelativeSource Self}}" Value="True">
 
282
                            <Setter Property="TextBlock.FontWeight" TargetName="tabItemTitle" Value="Bold"/>
 
283
                        </DataTrigger>
 
284
                        <MultiTrigger>
 
285
                            <MultiTrigger.Conditions>
 
286
                                <Condition Property="IsMouseOver" SourceName="tabItemIntBorder" Value="True"/>
 
287
                                <Condition Property="Selector.IsSelected" Value="False"/>
 
288
                            </MultiTrigger.Conditions>
 
289
                            <Setter Property="Background" 
 
290
                                    TargetName="tabItemIntBorder" 
 
291
                                    Value="{DynamicResource {ComponentResourceKey {x:Type ad:DockingManager}, {x:Static ad:AvalonDockBrushes.DocumentHeaderBackgroundMouseOver}}}"
 
292
                                    />
 
293
                            <Setter Property="Fill" 
 
294
                                    TargetName="tabItemIntPathBackground" 
 
295
                                    Value="{DynamicResource {ComponentResourceKey {x:Type ad:DockingManager}, {x:Static ad:AvalonDockBrushes.DocumentHeaderBackgroundMouseOver}}}"
 
296
                                    />
 
297
                        </MultiTrigger>
 
298
                        <Trigger Property="IsLocked" Value="True">
 
299
                            <Setter Property="Visibility" Value="Visible" TargetName="PART_LockedIcon"/>
 
300
                        </Trigger>
 
301
                    </ControlTemplate.Triggers>
 
302
                </ControlTemplate>
 
303
            </Setter.Value>
 
304
        </Setter>
 
305
    </Style>
 
306
 
 
307
    <!--DocumentPane-->
 
308
    <Style TargetType="{x:Type ad:DocumentPane}">
 
309
        <Setter Property="Background" Value="{DynamicResource {ComponentResourceKey {x:Type ad:DockingManager}, {x:Static ad:AvalonDockBrushes.DefaultBackgroundBrush}}}"/>
 
310
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
 
311
        <Setter Property="Template">
 
312
            <Setter.Value>
 
313
                <ControlTemplate TargetType="{x:Type ad:DocumentPane}" >
 
314
                    <ControlTemplate.Resources>
 
315
                        <ContextMenu x:Key="DocumentsListMenu" StaysOpen="True"  ></ContextMenu>
 
316
                    </ControlTemplate.Resources>                    
 
317
                    <Border 
 
318
                        Focusable="False"
 
319
                        Background="{TemplateBinding Background}">
 
320
                        <Grid>
 
321
                            <Grid.RowDefinitions>
 
322
                                <RowDefinition Height="Auto"/>
 
323
                                <RowDefinition Height="*"/>
 
324
                            </Grid.RowDefinitions>
 
325
                            <Grid x:Name="extGrid" Grid.Row="1" Margin="0,-1,0,0" >
 
326
                                <Border 
 
327
                                    x:Name="intBorder1"
 
328
                                    BorderThickness="5" 
 
329
                                    BorderBrush="{DynamicResource {ComponentResourceKey {x:Type ad:DockingManager}, {x:Static ad:AvalonDockBrushes.DocumentHeaderBorder}}}" 
 
330
                                    CornerRadius="3" 
 
331
                                    Focusable="False">
 
332
                                </Border>
 
333
                                <Border 
 
334
                                        x:Name="intBorder2"
 
335
                                        BorderThickness="2" 
 
336
                                        BorderBrush="{StaticResource ResourceKey=DocumentHeaderBorder2}"
 
337
                                        CornerRadius="3" 
 
338
                                        Margin="2,1,2,2" 
 
339
                                        Focusable="False"
 
340
                                        Background="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=SelectedItem.Background}">
 
341
                                    <ContentPresenter 
 
342
                                        x:Name="contentPresenter"
 
343
                                        Content="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=SelectedItem.Content}"
 
344
                                        Margin="2"
 
345
                                                                        KeyboardNavigation.TabNavigation="Local"
 
346
                                                                        KeyboardNavigation.DirectionalNavigation="Contained"
 
347
                                        />
 
348
                                </Border>
 
349
                            </Grid>
 
350
                            <Border x:Name="PART_Header" 
 
351
                                                            Grid.Row="0" 
 
352
                                                            Focusable="False" 
 
353
                                Height="20"
 
354
                                                            BorderThickness="1,1,1,0">
 
355
                                <DockPanel LastChildFill="True">
 
356
                                    <Button DockPanel.Dock="Right" Width="15" Height="15" Margin="2,0,2,0" Style="{StaticResource PaneHeaderCommandStyle}" 
 
357
                                            Command="ad:ManagedContentCommands.Close"
 
358
                                            CommandTarget="{TemplateBinding SelectedItem}">
 
359
                                        <ad:ImageEx Source="/AvalonDock;component/resources/Images/PinClose.png" Width="13" />
 
360
                                    </Button>
 
361
                                    <Button x:Name="PART_ShowContextMenuButton" DockPanel.Dock="Right" Width="15" Height="15" Style="{StaticResource PaneHeaderCommandStyle}">
 
362
                                        <ad:ImageEx x:Name="ShowContextMenuIcon" Source="/AvalonDock;component/resources/Images/PinMenu.png" Width="13" />
 
363
                                    </Button>
 
364
                                    <ad:DocumentTabPanel 
 
365
                                      x:Name="paneTabsPanel" 
 
366
                                      Panel.ZIndex ="1"                                                 
 
367
                                                                      IsItemsHost="True" 
 
368
                                                                      TabItemStyle="{StaticResource DocumentTabItemStyle}"/>
 
369
                                </DockPanel>
 
370
                            </Border>
 
371
                        </Grid>
 
372
                    </Border>
 
373
                    <ControlTemplate.Triggers>
 
374
                        <Trigger Property ="ShowHeader" Value="False">
 
375
                            <Setter Property="Visibility" Value="Collapsed" TargetName="PART_Header"/>
 
376
                            <Setter Property="BorderThickness" Value="0" TargetName="intBorder1"/>
 
377
                            <Setter Property="BorderThickness" Value="0" TargetName="intBorder2"/>
 
378
                            <Setter Property="Margin" Value="0" TargetName="intBorder2"/>
 
379
                            <Setter Property="Margin" Value="0" TargetName="contentPresenter"/>
 
380
                            <Setter Property="Margin" Value="0" TargetName="extGrid"/>
 
381
                        </Trigger>
 
382
                        <Trigger Property="HasItems" Value="False">
 
383
                            <Setter Property="Visibility" Value="Hidden"/>
 
384
                        </Trigger>
 
385
                        <DataTrigger Binding="{Binding Path=IsMainDocumentPane, RelativeSource={RelativeSource Self}}" Value="True">
 
386
                            <Setter Property="Source" Value="/AvalonDock;component/resources/Images\PinDocMenu.png" TargetName="ShowContextMenuIcon"/>
 
387
                        </DataTrigger>
 
388
                        <EventTrigger RoutedEvent="Window.Loaded">
 
389
                            <BeginStoryboard>
 
390
                                <Storyboard>
 
391
                                    <DoubleAnimation
 
392
                                        Storyboard.TargetProperty="Opacity"
 
393
                                        From="0" To="1"  Duration="0:0:0.200" />
 
394
                                </Storyboard>
 
395
                            </BeginStoryboard>
 
396
                        </EventTrigger>
 
397
                    </ControlTemplate.Triggers>
 
398
                </ControlTemplate>
 
399
            </Setter.Value>
 
400
        </Setter>
 
401
    </Style>
 
402
 
 
403
        <!--DockablePaneAnchorTab-->
 
404
    <Style x:Key="{x:Type ad:DockablePaneAnchorTab}" TargetType="{x:Type ad:DockablePaneAnchorTab}">
 
405
                <Setter Property="Template">
 
406
                        <Setter.Value>
 
407
                                <ControlTemplate TargetType="{x:Type ad:DockablePaneAnchorTab}">
 
408
                                        <Grid>
 
409
                                                <Border 
 
410
                          Name="PART_Border" 
 
411
                          BorderThickness="1,0,1,1" 
 
412
                          BorderBrush="{StaticResource ManagedContentTabControlNormalBorderBrush}"
 
413
                          Background="{StaticResource ManagedContentTabItemNormalBackground}">
 
414
                                                        
 
415
                                                        <Grid>
 
416
                                                                <Grid.ColumnDefinitions>
 
417
                                                                        <ColumnDefinition Width="Auto"/>
 
418
                                                                        <ColumnDefinition Width="*"/>
 
419
                                                                </Grid.ColumnDefinitions>
 
420
                                <ad:ImageEx x:Name="Icon" Width="16" Source="{TemplateBinding Icon}" />
 
421
                                                                <TextBlock 
 
422
                                    Grid.Column="1"
 
423
                                    Text="{TemplateBinding Title}"  
 
424
                                    Foreground="{DynamicResource {x:Static SystemColors.WindowTextBrushKey}}"  
 
425
                                    Margin="4,2,2,2"/>
 
426
                                                        </Grid>
 
427
                                                </Border>
 
428
                                        </Grid>
 
429
                                        <ControlTemplate.Triggers>
 
430
                                                <Trigger Property="Anchor" >
 
431
                                                        <Trigger.Value>
 
432
                                                                <ad:AnchorStyle>
 
433
                                                                        Left
 
434
                                                                </ad:AnchorStyle>
 
435
                                                        </Trigger.Value>
 
436
                                                        <Setter TargetName="PART_Border" Property="Background" Value="{StaticResource ManagedContentTabItemInvNormalBackground}"/>
 
437
                                                        <Setter TargetName="PART_Border" Property="BorderThickness" Value="1,1,1,0"/>
 
438
                                                </Trigger>
 
439
                                                <Trigger Property="Anchor">
 
440
                                                        <Trigger.Value>
 
441
                                                                <ad:AnchorStyle>
 
442
                                                                        Bottom
 
443
                                                                </ad:AnchorStyle>
 
444
                                                        </Trigger.Value>
 
445
                                                        <Setter TargetName="PART_Border" Property="Background" Value="{StaticResource ManagedContentTabItemInvNormalBackground}"/>
 
446
                                                        <Setter TargetName="PART_Border" Property="BorderThickness" Value="1,1,1,0"/>
 
447
                                                </Trigger>
 
448
 
 
449
                                                <Trigger Property="IsMouseOver"
 
450
                                                                 Value="true">
 
451
                                                        <Setter Property="BorderBrush" Value="{StaticResource ManagedContentTabItemHotBorderBrush}" 
 
452
                                    TargetName="PART_Border" />
 
453
                                                        <Setter Property="Background" Value="{StaticResource ManagedContentTabItemInvHotBackground}" 
 
454
                                    TargetName="PART_Border" />
 
455
                                                </Trigger>
 
456
 
 
457
                                                <MultiTrigger>
 
458
                                                        <MultiTrigger.Conditions>
 
459
                                                                <Condition Property="IsMouseOver" Value="True"/>
 
460
                                                                <Condition Property="Anchor">
 
461
                                                                        <Condition.Value>
 
462
                                                                                <ad:AnchorStyle>
 
463
                                                                                        Top
 
464
                                                                                </ad:AnchorStyle>
 
465
                                                                        </Condition.Value>
 
466
                                                                </Condition>
 
467
                                                        </MultiTrigger.Conditions>
 
468
                                                        <Setter TargetName="PART_Border" Property="Background" Value="{StaticResource ManagedContentTabItemHotBackground}"/>
 
469
                                                </MultiTrigger>
 
470
                                                <MultiTrigger>
 
471
                                                        <MultiTrigger.Conditions>
 
472
                                                                <Condition Property="IsMouseOver" Value="True"/>
 
473
                                                                <Condition Property="Anchor">
 
474
                                                                        <Condition.Value>
 
475
                                                                                <ad:AnchorStyle>
 
476
                                                                                        Right
 
477
                                                                                </ad:AnchorStyle>
 
478
                                                                        </Condition.Value>
 
479
                                                                </Condition>
 
480
                                                        </MultiTrigger.Conditions>
 
481
                                                        <Setter TargetName="PART_Border" Property="Background" Value="{StaticResource ManagedContentTabItemHotBackground}"/>
 
482
                                                </MultiTrigger>
 
483
 
 
484
                                        </ControlTemplate.Triggers>
 
485
                                </ControlTemplate>
 
486
                        </Setter.Value>
 
487
                </Setter>
 
488
        </Style>
 
489
 
 
490
        <!--DockablePaneAnchorTabGroup-->
 
491
    <Style x:Key="{x:Type ad:DockablePaneAnchorTabGroup}" TargetType="{x:Type ad:DockablePaneAnchorTabGroup}">
 
492
                <Setter Property="Orientation" Value="Horizontal"/>
 
493
                <Setter Property="Margin" Value="7,0,0,0"/>
 
494
        </Style>
 
495
 
 
496
        <!--OverlayWindow-->
 
497
    <Style x:Key="{x:Type ad:OverlayWindow}" TargetType="{x:Type ad:OverlayWindow}">
 
498
                <Setter Property="Background" Value="Transparent"/>
 
499
                <Setter Property="Focusable" Value="False"/>
 
500
                <Setter Property="Template">
 
501
                        <Setter.Value>
 
502
                                <ControlTemplate TargetType="{x:Type ad:OverlayWindow}">
 
503
                                        <Grid SnapsToDevicePixels="True" Opacity="0.9">
 
504
                                                <Canvas>
 
505
                                                        <Border x:Name="PART_SelectionBox" Background="{DynamicResource {x:Static SystemColors.ActiveCaptionBrushKey}}" BorderBrush="Gray" BorderThickness="3" Opacity="0.2" Visibility="Hidden"/>
 
506
                                                </Canvas>
 
507
                                                <Grid x:Name="panelDrag" >
 
508
                                                        <!--<ad:AlignedImage >-->
 
509
                            <ad:ImageEx x:Name="PART_btnDockLeft" VerticalAlignment="Center" HorizontalAlignment="Left" Source="/AvalonDock;component/resources/Images/Aero/AeroDockLeft.PNG" Width="32"  />
 
510
                                                        <!--</ad:AlignedImage>-->
 
511
                            <!--<ad:AlignedImage >-->
 
512
                            <ad:ImageEx x:Name="PART_btnDockRight" VerticalAlignment="Center" HorizontalAlignment="Right" Source="/AvalonDock;component/resources/Images/Aero/AeroDockRight.PNG" Width="32"  />
 
513
                            <!--</ad:AlignedImage>-->
 
514
                            <!--<ad:AlignedImage >-->
 
515
                            <ad:ImageEx x:Name="PART_btnDockBottom" VerticalAlignment="Bottom" HorizontalAlignment="Center" Source="/AvalonDock;component/resources/Images/Aero/AeroDockBottom.PNG" Width="31" />
 
516
                            <!--</ad:AlignedImage>-->
 
517
                            <!--<ad:AlignedImage >-->
 
518
                            <ad:ImageEx x:Name="PART_btnDockTop" VerticalAlignment="Top" HorizontalAlignment="Center" Source="/AvalonDock;component/resources/Images/Aero/AeroDockTop.PNG"  Width="31" />
 
519
                            <!--</ad:AlignedImage>-->
 
520
                                                </Grid>
 
521
                        <Canvas>
 
522
                                                <Grid Name="PART_gridPaneRelativeDockingOptions" Visibility="Collapsed">
 
523
                                <ad:ImageEx x:Name="PART_btnDockPane" VerticalAlignment="Center" HorizontalAlignment="Center" Source="/AvalonDock;component/resources/Images/Aero/AeroDockPane.png" Width="103" Stretch="Uniform" />
 
524
 
 
525
                            <Grid Width="103" Height="101" VerticalAlignment="Center" HorizontalAlignment="Center">
 
526
                                <Grid.ColumnDefinitions>
 
527
                                    <ColumnDefinition/>
 
528
                                    <ColumnDefinition/>
 
529
                                    <ColumnDefinition/>
 
530
                                </Grid.ColumnDefinitions>
 
531
                                <Grid.RowDefinitions>
 
532
                                    <RowDefinition/>
 
533
                                    <RowDefinition/>
 
534
                                    <RowDefinition/>
 
535
                                </Grid.RowDefinitions>
 
536
                                <!--<ad:AlignedImage  >-->
 
537
                                <!--</ad:AlignedImage>-->
 
538
                                <Border Name="PART_btnDockPaneTop" Grid.Column="1" Grid.Row="0"/>
 
539
                                <Border Name="PART_btnDockPaneRight" Grid.Column="2" Grid.Row="1"/>
 
540
                                <Border Name="PART_btnDockPaneBottom" Grid.Column="1" Grid.Row="2"/>
 
541
                                <Border Name="PART_btnDockPaneLeft" Grid.Column="0" Grid.Row="1"/>
 
542
                                <Border Name="PART_btnDockPaneInto" Grid.Column="1" Grid.Row="1"/>
 
543
                            </Grid>
 
544
                        </Grid>
 
545
                        </Canvas>
 
546
                    </Grid>
 
547
                                        <ControlTemplate.Triggers>
 
548
                                                <DataTrigger Binding="{Binding Path=OverlayButtonHover, RelativeSource={RelativeSource Self}}" Value="DropBorderLeft">
 
549
                            <Setter Property="Source" Value="/AvalonDock;component/resources/Images/Aero/AeroDockLeftHover.PNG" TargetName="PART_btnDockLeft"/>
 
550
                                                </DataTrigger>
 
551
                                                <DataTrigger Binding="{Binding Path=OverlayButtonHover, RelativeSource={RelativeSource Self}}" Value="DropBorderRight">
 
552
                            <Setter Property="Source" Value="/AvalonDock;component/resources/Images/Aero/AeroDockRightHover.PNG" TargetName="PART_btnDockRight"/>
 
553
                                                </DataTrigger>
 
554
                                                <DataTrigger Binding="{Binding Path=OverlayButtonHover, RelativeSource={RelativeSource Self}}" Value="DropBorderTop">
 
555
                            <Setter Property="Source" Value="/AvalonDock;component/resources/Images/Aero/AeroDockTopHover.PNG" TargetName="PART_btnDockTop"/>
 
556
                                                </DataTrigger>
 
557
                                                <DataTrigger Binding="{Binding Path=OverlayButtonHover, RelativeSource={RelativeSource Self}}" Value="DropBorderBottom">
 
558
                            <Setter Property="Source" Value="/AvalonDock;component/resources/Images/Aero/AeroDockBottomHover.PNG" TargetName="PART_btnDockBottom"/>
 
559
                                                </DataTrigger>
 
560
 
 
561
                                                <DataTrigger Binding="{Binding Path=OverlayButtonHover, RelativeSource={RelativeSource Self}}" Value="DropPaneInto">
 
562
                            <Setter Property="Source" Value="/AvalonDock;component/resources/Images/Aero/AeroDockPaneInto.PNG" TargetName="PART_btnDockPane"/>
 
563
                                                </DataTrigger>
 
564
 
 
565
                                                <DataTrigger Binding="{Binding Path=OverlayButtonHover, RelativeSource={RelativeSource Self}}" Value="DropPaneLeft">
 
566
                            <Setter Property="Source" Value="/AvalonDock;component/resources/Images/Aero/AeroDockPaneLeft.PNG" TargetName="PART_btnDockPane"/>
 
567
                                                </DataTrigger>
 
568
                                                <DataTrigger Binding="{Binding Path=OverlayButtonHover, RelativeSource={RelativeSource Self}}" Value="DropPaneRight">
 
569
                            <Setter Property="Source" Value="/AvalonDock;component/resources/Images/Aero/AeroDockPaneRight.PNG" TargetName="PART_btnDockPane"/>
 
570
                                                </DataTrigger>
 
571
                                                <DataTrigger Binding="{Binding Path=OverlayButtonHover, RelativeSource={RelativeSource Self}}" Value="DropPaneTop">
 
572
                            <Setter Property="Source" Value="/AvalonDock;component/resources/Images/Aero/AeroDockPaneTop.PNG" TargetName="PART_btnDockPane"/>
 
573
                                                </DataTrigger>
 
574
                                                <DataTrigger Binding="{Binding Path=OverlayButtonHover, RelativeSource={RelativeSource Self}}" Value="DropPaneBottom">
 
575
                            <Setter Property="Source" Value="/AvalonDock;component/resources/Images/Aero/AeroDockPaneBottom.PNG" TargetName="PART_btnDockPane"/>
 
576
                                                </DataTrigger>
 
577
 
 
578
                                                <DataTrigger Binding="{Binding Path=OverlayButtonHover, RelativeSource={RelativeSource Self}}" Value="None">
 
579
                            <Setter Property="Source" Value="/AvalonDock;component/resources/Images/Aero/AeroDockPane.PNG" TargetName="PART_btnDockPane"/>
 
580
                                                </DataTrigger>
 
581
 
 
582
                                        </ControlTemplate.Triggers>
 
583
 
 
584
                                </ControlTemplate>
 
585
                        </Setter.Value>
 
586
                </Setter>
 
587
 
 
588
        </Style>
 
589
</ResourceDictionary>
 
 
b'\\ No newline at end of file'