Subversion Repositories SoapBoxCore

Rev

Rev 7 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7 Rev 17
Line 2... Line 2...
2
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
3
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4
    xmlns:ad="clr-namespace:AvalonDock";>;
4
    xmlns:ad="clr-namespace:AvalonDock"
-
 
5
    xmlns:adRes="clr-namespace:AvalonDock.Properties;assembly=AvalonDock"
-
 
6
    >
5
 
7
 
6
    <ResourceDictionary.MergedDictionaries>
8
    <ResourceDictionary.MergedDictionaries>
7
        <ResourceDictionary Source="/AvalonDock;component/Resources/Brushes.xaml"/>
9
        <ResourceDictionary Source="/AvalonDock;component/Resources/Brushes.xaml"/>
8
        <ResourceDictionary Source="/AvalonDock;component/Resources/Common.xaml"/>
10
        <ResourceDictionary Source="/AvalonDock;component/Resources/Common.xaml"/>
9
        <ResourceDictionary Source="/AvalonDock;component/Resources/ManagedContentStyle.xaml"/>
11
        <ResourceDictionary Source="/AvalonDock;component/Resources/ManagedContentStyle.xaml"/>
Line 11... Line 13...
11
 
13
 
12
 
14
 
13
    <ContextMenu
15
    <ContextMenu
14
		     x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type ad:DockingManager}, ResourceId={x:Static ad:ContextMenuElement.DockablePane}}"
16
		     x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type ad:DockingManager}, ResourceId={x:Static ad:ContextMenuElement.DockablePane}}"
15
		     >
17
		     >
16
        <MenuItem Header="Floating"
18
        <MenuItem
17
			Command="ad:DockableContent.FloatingCommand"  />
19
			Command="ad:DockableContentCommands.FloatingWindow"  />
18
        <!--<MenuItem Header="Dockable"
20
        <MenuItem
19
			Command="ad:DockableContent.DockableCommand" />-->
21
			Command="ad:ManagedContentCommands.Show" />
20
        <MenuItem Header="Tabbed document"
22
        <MenuItem
21
			Command="ad:DockableContent.ShowAsDocumentCommand" />
23
			Command="ad:DockableContentCommands.ShowAsDocument" />
22
        <MenuItem Header="Auto Hide"
24
        <MenuItem
23
			Command="ad:DockablePane.ToggleAutoHideCommand" />
25
			Command="ad:DockableContentCommands.ToggleAutoHide" />
24
        <MenuItem Header="Hide"
26
        <MenuItem
-
 
27
			Command="ad:ManagedContentCommands.Hide"
25
			Command="ad:DockableContent.HideCommand" Visibility="{Binding Path=IsCloseable, Converter={x:Static ad:Converters.BoolToVisibilityConverter}}" />
28
                  Visibility="{Binding Path=IsCloseable, Converter={x:Static ad:Converters.BoolToVisibilityConverter}}" />
26
    </ContextMenu>
29
    </ContextMenu>
27
 
30
 
28
 
31
 
29
	<!--DockableContentTabItemStyle-->
32
	<!--DockableContentTabItemStyle-->
30
    <Style x:Key="DockableContentTabItemStyle" TargetType="{x:Type ad:DockableContent}">
33
    <Style x:Key="DockableContentTabItemStyle" TargetType="{x:Type ad:DockableContent}">
Line 47... Line 50...
47
									<Grid Margin="4,0,4,0">
50
									<Grid Margin="4,0,4,0">
48
										<Grid.ColumnDefinitions>
51
										<Grid.ColumnDefinitions>
49
											<ColumnDefinition Width="Auto"/>
52
											<ColumnDefinition Width="Auto"/>
50
											<ColumnDefinition Width="*"/>
53
											<ColumnDefinition Width="*"/>
51
										</Grid.ColumnDefinitions>
54
										</Grid.ColumnDefinitions>
52
										<ad:AlignedImage>
-
 
53
											<ContentPresenter x:Name="Icon"
-
 
54
													Grid.Column="0"
-
 
55
													Margin="1"
-
 
56
													VerticalAlignment="Center"
-
 
57
													ContentSource="Icon"
-
 
58
													SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
55
                                        <Image x:Name="Icon" Width="16" Source="{TemplateBinding Icon}" UseLayoutRounding="True"/>
59
										</ad:AlignedImage>
-
 
60
										<TextBlock
56
										<TextBlock
61
											x:Name="tabItemTitle"
57
											x:Name="tabItemTitle"
62
											Grid.Column="1"
58
											Grid.Column="1"
63
											TextTrimming="CharacterEllipsis" TextWrapping="NoWrap"
59
											TextTrimming="CharacterEllipsis" TextWrapping="NoWrap"
64
											Text="{TemplateBinding Title}"
60
											Text="{TemplateBinding Title}"
Line 114... Line 110...
114
            </Setter.Value>
110
            </Setter.Value>
115
        </Setter>
111
        </Setter>
116
    </Style>
112
    </Style>
117
 
113
 
118
	<!--DockablePane-->
114
	<!--DockablePane-->
119
    <Style TargetType="{x:Type ad:DockablePane}">
115
    <Style x:Key="{x:Type ad:DockablePane}" TargetType="{x:Type ad:DockablePane}">
120
        <Setter Property="Background" Value="{DynamicResource {ComponentResourceKey {x:Type ad:DockingManager}, {x:Static ad:AvalonDockBrushes.DefaultBackgroundBrush}}}"/>
116
        <Setter Property="Background" Value="{DynamicResource {ComponentResourceKey {x:Type ad:DockingManager}, {x:Static ad:AvalonDockBrushes.DefaultBackgroundBrush}}}"/>
121
		<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
117
		<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
122
		<Setter Property="Template">
118
		<Setter Property="Template">
123
            <Setter.Value>
119
            <Setter.Value>
124
                <ControlTemplate TargetType="{x:Type ad:DockablePane}"><!--Background="{TemplateBinding Background}"-->
120
                <ControlTemplate TargetType="{x:Type ad:DockablePane}"><!--Background="{TemplateBinding Background}"-->
125
                    <Border
121
                    <Border
126
                        Focusable="True"
122
                        Focusable="False"
127
                        Background="{TemplateBinding Background}">
123
                        Background="{TemplateBinding Background}">
128
                        <Grid FocusManager.FocusedElement="{Binding ElementName=PART_SelectedContent}">
124
                        <Grid FocusManager.FocusedElement="{Binding ElementName=PART_SelectedContent}">
129
                            <Grid.RowDefinitions>
125
                            <Grid.RowDefinitions>
130
                                <RowDefinition Height="Auto"/>
126
                                <RowDefinition Height="Auto"/>
131
                                <RowDefinition Height="*"/>
127
                                <RowDefinition Height="*"/>
Line 136... Line 132...
136
							    Background="{DynamicResource {ComponentResourceKey {x:Type ad:DockingManager}, {x:Static ad:AvalonDockBrushes.DockablePaneTitleBackground}}}"
132
							    Background="{DynamicResource {ComponentResourceKey {x:Type ad:DockingManager}, {x:Static ad:AvalonDockBrushes.DockablePaneTitleBackground}}}"
137
							    BorderThickness="1,1,1,0"
133
							    BorderThickness="1,1,1,0"
138
							    BorderBrush="DarkGray"
134
							    BorderBrush="DarkGray"
139
                                Height="18">
135
                                Height="18">
140
                                <DockPanel LastChildFill="True">
136
                                <DockPanel LastChildFill="True">
141
                                    <Button DockPanel.Dock="Right" Width="15" Height="15" Style="{StaticResource PaneHeaderCommandStyle}" Command="ad:DockablePane.CloseCommand" Visibility="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=SelectedItem.IsCloseable, Converter={x:Static ad:Converters.BoolToVisibilityConverter}}">
137
                                    <Button DockPanel.Dock="Right" Width="15" Height="15" Style="{StaticResource PaneHeaderCommandStyle}" Command="ad:DockablePaneCommands.Close" Visibility="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=SelectedItem.IsCloseable, Converter={x:Static ad:Converters.BoolToVisibilityConverter}}" ToolTip="{x:Static adRes:Resources.DockablePaneCommands_Close}">
142
										<ad:AlignedImage>
138
										<!--<ad:AlignedImage>-->
143
											<Image Source="Images\PinClose.png" Width="13" Height="13" Stretch="None"/>
139
                                        <Image Source="Images\PinClose.png" Width="13" UseLayoutRounding="True"/>
144
										</ad:AlignedImage>
140
										<!--</ad:AlignedImage>-->
145
                                    </Button>
141
                                    </Button>
146
                                    <Button x:Name="btnPinAutoHide" DockPanel.Dock="Right" Width="15" Height="15"  Style="{StaticResource PaneHeaderCommandStyle}" Command="ad:DockablePane.ToggleAutoHideCommand">
142
                                    <Button x:Name="btnPinAutoHide" DockPanel.Dock="Right" Width="15" Height="15"  Style="{StaticResource PaneHeaderCommandStyle}" Command="ad:DockablePaneCommands.ToggleAutoHide" ToolTip="{x:Static adRes:Resources.DockablePaneCommands_ToggleAutoHide}">
147
										<ad:AlignedImage>
143
										<!--<ad:AlignedImage>-->
148
											<Image Source="Images\PinAutoHide.png" Width="13" Height="13" Stretch="None"/>
144
                                        <Image Source="Images\PinAutoHide.png" Width="13" UseLayoutRounding="True"/>
149
										</ad:AlignedImage>
145
										<!--</ad:AlignedImage>-->
150
									</Button>
146
									</Button>
151
                                    <Button x:Name="PART_ShowContextMenuButton"  DockPanel.Dock="Right" Width="15" Height="15"  Style="{StaticResource PaneHeaderContextMenuCommandStyle}" Command="ad:DockablePane.ShowOptionsCommand">
147
                                    <Border x:Name="PART_ShowContextMenuButton"  DockPanel.Dock="Right" Width="15" Height="15"  Style="{StaticResource PaneHeaderContextMenuCommandStyle}"  ToolTip="{x:Static adRes:Resources.DockablePane_ShowOptionsMenu}">
152
										<ad:AlignedImage>
148
										<!--<ad:AlignedImage>-->
153
											<Image Source="Images\PinMenu.png" Width="13" Height="13" Stretch="None"/>
149
											<Image Source="Images\PinMenu.png" Width="13" UseLayoutRounding="True"/>
154
										</ad:AlignedImage>
150
										<!--</ad:AlignedImage>-->
155
                                    </Button>
151
                                    </Border>
156
                                    <TextBlock
152
                                    <TextBlock
157
									    Text="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=SelectedItem.Title}"
153
									    Text="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=SelectedItem.Title}"
158
									    x:Name="paneTitle"
154
									    x:Name="paneTitle"
159
									    Grid.Row="0"
155
									    Grid.Row="0"
160
									    Margin="2,0,0,0" TextTrimming="CharacterEllipsis" TextWrapping="NoWrap"
156
									    Margin="2,0,0,0" TextTrimming="CharacterEllipsis" TextWrapping="NoWrap"
Line 214... Line 210...
214
                        </Trigger>
210
                        </Trigger>
215
                        <Trigger Property ="HasSingleItem" Value="True">
211
                        <Trigger Property ="HasSingleItem" Value="True">
216
                            <Setter Property="Visibility" Value="Collapsed" TargetName="PART_Tabs"/>
212
                            <Setter Property="Visibility" Value="Collapsed" TargetName="PART_Tabs"/>
217
                            <Setter Property="Visibility" Value="Collapsed" TargetName="paneTabsPanel"/>
213
                            <Setter Property="Visibility" Value="Collapsed" TargetName="paneTabsPanel"/>
218
                        </Trigger>
214
                        </Trigger>
219
 
-
 
220
                        <!--<EventTrigger RoutedEvent="FrameworkElement.Loaded">
-
 
221
                            <BeginStoryboard>
-
 
222
                                <Storyboard>
-
 
223
                                    <DoubleAnimation
-
 
224
                                        Storyboard.TargetProperty="Opacity"
-
 
225
                                        From="0" To="1"  Duration="0:0:0.200" />
-
 
226
                                </Storyboard>
-
 
227
                            </BeginStoryboard>
-
 
228
                        </EventTrigger>-->
-
 
229
 
215
 
230
                        <DataTrigger Binding="{Binding RelativeSource={RelativeSource Self},  Path=SelectedItem.State}" Value="AutoHide">
216
                        <DataTrigger Binding="{Binding RelativeSource={RelativeSource Self},  Path=SelectedItem.State}" Value="AutoHide">
231
                            <!--<DataTrigger.Value>
-
 
232
                                <ad:DockableContentState>
-
 
233
                                    AutoHide
-
 
234
                                </ad:DockableContentState>
-
 
235
                            </DataTrigger.Value>-->
-
 
236
                            <Setter Property="LayoutTransform" TargetName="btnPinAutoHide">
217
                            <Setter Property="LayoutTransform" TargetName="btnPinAutoHide">
237
                                <Setter.Value>
218
                                <Setter.Value>
238
                                    <RotateTransform Angle="90"/>
219
                                    <RotateTransform Angle="90"/>
239
                                </Setter.Value>
220
                                </Setter.Value>
240
                            </Setter>
221
                            </Setter>
Line 246... Line 227...
246
 
227
 
247
                </ControlTemplate>
228
                </ControlTemplate>
248
            </Setter.Value>
229
            </Setter.Value>
249
        </Setter>
230
        </Setter>
250
    </Style>
231
    </Style>
251
 
-
 
252
 
-
 
253
 
-
 
254
 
-
 
255
</ResourceDictionary>
232
</ResourceDictionary>