comparison Chronosv2/source/Shell.xaml @ 10:443821e55f06

Initial cleaned up add from Codeplex files
author stevenh7776 stevenhollidge@hotmail.com
date Tue, 21 Feb 2012 17:25:44 +0700
parents
children
comparison
equal deleted inserted replaced
9:904a9faadf8b 10:443821e55f06
1 <Window x:Class="Chronos.Shell"
2 x:Name="ShellWindow"
3 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
4 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
5 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
6 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
7 xmlns:chronos="http://chronos/schemas/2010/xaml"
8 WindowState="{Binding WindowState}" ResizeMode="NoResize" ShowActivated="True" WindowStartupLocation="CenterScreen"
9 WindowStyle="None"
10 FocusVisualStyle="{x:Null}"
11 Title="chronos"
12 Icon="/Chronos;component/Chronos.ico"
13 mc:Ignorable="d">
14
15 <Window.TaskbarItemInfo>
16 <TaskbarItemInfo Description="Chronos">
17 </TaskbarItemInfo>
18 </Window.TaskbarItemInfo>
19
20 <Grid x:Name="LayoutRoot" Background="{StaticResource WindowBackgroundBrush}">
21 <Grid.RowDefinitions>
22 <RowDefinition Height="Auto" />
23 <RowDefinition Height="Auto" />
24 <RowDefinition Height="*" />
25 </Grid.RowDefinitions>
26
27 <Grid x:Name="ShellHeader" Background="{StaticResource HighlightBrush}">
28 <Grid.Style>
29 <Style>
30 <Style.Triggers>
31 <Trigger Property="UIElement.IsMouseOver" Value="True">
32 <Setter Property="Panel.ZIndex" Value="1" />
33 </Trigger>
34 </Style.Triggers>
35 </Style>
36 </Grid.Style>
37 <Grid.RowDefinitions>
38 <RowDefinition Height="Auto" />
39 <RowDefinition Height="Auto" />
40 </Grid.RowDefinitions>
41
42 <Grid x:Name="WindowHeader" Height="Auto" Grid.Row="0">
43 <Grid.ColumnDefinitions>
44 <ColumnDefinition Width="50*" />
45 <ColumnDefinition Width="50*" />
46 </Grid.ColumnDefinitions>
47
48 <StackPanel Grid.Column="0"
49 Margin="5,0,0,0"
50 Orientation="Horizontal"
51 HorizontalAlignment="Left"
52 VerticalAlignment="Stretch">
53
54 <TextBlock x:Name="WindowTitle"
55 FontFamily="{StaticResource ApplicationNameFontFamily}" FontSize="{StaticResource ApplicationNameFontSize}" Foreground="{StaticResource ApplicationNameBrush}" FontWeight="Bold"
56 IsHitTestVisible="False"
57 HorizontalAlignment="Left" VerticalAlignment="Center" Margin="0,2,0,0"
58 Opacity="0.5"
59 Text="CHRONOS 2.0 BETA">
60 </TextBlock>
61
62 <TextBlock Margin="5,0,5,0"
63 FontFamily="{StaticResource ApplicationNameFontFamily}" FontSize="{StaticResource ApplicationNameFontSize}" Foreground="{StaticResource ApplicationNameBrush}" FontWeight="Bold"
64 IsHitTestVisible="False"
65 HorizontalAlignment="Left" VerticalAlignment="Center"
66 Opacity="0.5"
67 Text="|">
68 </TextBlock>
69
70 <TextBlock x:Name="UserName"
71 FontSize="10" FontWeight="Bold" Foreground="{StaticResource WhiteColorBrush}"
72 Text="{Binding UserName}"
73 HorizontalAlignment="Left" VerticalAlignment="Center" Margin="0,2,0,0"
74 ToolTip="Active user"/>
75
76 <chronos:SplitButton x:Name="ShutdownOptionsButton"
77 FontSize="10" FontWeight="Bold" Foreground="{StaticResource WhiteColorBrush}"
78 Content="EXIT"
79 VerticalAlignment="Center"
80 Margin="15,2,0,0" Padding="5,5,5,5"
81 Width="Auto" Height="30"
82 Placement="Bottom"
83 ToolTip="Options to close session or exit Chronos">
84
85 <MenuItem x:Name="ShutdownMenuItem"
86 Header="Exit"
87 Command="{Binding ShutdownCommand}"/>
88
89 <MenuItem x:Name="LogoffMenuItem"
90 Header="Close session"
91 Command="{Binding CloseSessionCommand}"/>
92
93 </chronos:SplitButton>
94 </StackPanel>
95
96 <StackPanel Grid.Column="1"
97 Orientation="Horizontal"
98 HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,5,0">
99
100 <Button x:Name="ShowDesktopButton"
101 Command="{Binding ShowDesktopCommand}"
102 VerticalAlignment="Center"
103 Margin="3.5"
104 Style="{StaticResource MetroButtonStyle}"
105 ToolTip="Show desktop">
106 <TextBlock TextWrapping="Wrap" Text="1" FontFamily="Webdings" Foreground="{StaticResource WhiteBrush}" FontSize="13.333"/>
107 </Button>
108
109 <chronos:SplitButton x:Name="ShowSplitButton"
110 FontSize="10" FontWeight="Bold" Foreground="{StaticResource WhiteColorBrush}"
111 Content="SHOW"
112 VerticalAlignment="Center"
113 Width="Auto" Margin="15,2,0,0"
114 Height="30"
115 Placement="Bottom">
116
117 <MenuItem x:Name="ShowWidgetLibraryMenuItem"
118 Header="Widget library ..."
119 Command="{Binding ShowWidgetLibraryCommand}"/>
120
121 <MenuItem x:Name="DesktopMenuItem"
122 Header="Desktop">
123
124 <MenuItem x:Name="SwitchDesktopMenuItem"
125 Header="Switch desktop"
126 Command="{Binding SwitchDesktopCommand}"/>
127
128 <Separator Style="{StaticResource DefaultSeparatorStyle}" />
129
130 <MenuItem x:Name="SaveCurrentDesktopMenuItem"
131 Header="Save current ..."
132 Command="{Binding SaveCurrentDesktopCommand}"/>
133
134 <MenuItem x:Name="SaveAllDesktopMenuItem"
135 Header="Save all ..."
136 Command="{Binding SaveAllDesktopsCommand}"/>
137 </MenuItem>
138
139 <Separator Style="{StaticResource DefaultSeparatorStyle}" />
140
141 <MenuItem x:Name="AboutBoxMenuItem"
142 Header="About Chronos WPF..."
143 Command="{Binding ShowAboutBoxCommand}" />
144 </chronos:SplitButton>
145
146 <TextBlock Margin="5,0,5,0"
147 FontFamily="{StaticResource ApplicationNameFontFamily}" FontSize="{StaticResource ApplicationNameFontSize}" Foreground="{StaticResource ApplicationNameBrush}" FontWeight="Bold"
148 IsHitTestVisible="False"
149 HorizontalAlignment="Left" VerticalAlignment="Center"
150 Opacity="0.5"
151 Text="|">
152 </TextBlock>
153
154 <Button Style="{StaticResource MetroButtonStyle}"
155 VerticalAlignment="Center"
156 ToolTip="Help">
157 <TextBlock FontFamily="Segoe WP" FontSize="10" Foreground="{StaticResource WhiteColorBrush}" FontWeight="Bold"
158 Text="HELP" />
159 </Button>
160
161 <Button x:Name="MinimizeButton"
162 Command="{Binding MinimizeCommand}"
163 VerticalAlignment="Center"
164 Margin="100,1.5,1.5,1.5"
165 Style="{StaticResource MetroButtonStyle}"
166 ToolTip="Minimize">
167 <TextBlock TextWrapping="Wrap" Text="0" FontFamily="Webdings" FontSize="13.333" Foreground="{StaticResource WhiteColorBrush}" />
168 </Button>
169
170 <Button x:Name="CloseButton"
171 Command="{Binding ShutdownCommand}"
172 VerticalAlignment="Center"
173 Margin="1.5"
174 Style="{StaticResource MetroButtonStyle}"
175 ToolTip="Close">
176 <TextBlock TextWrapping="Wrap" Text="r" FontFamily="Webdings" FontSize="13.333" Foreground="{StaticResource WhiteColorBrush}" />
177 </Button>
178 </StackPanel>
179 </Grid>
180
181 <Grid x:Name="TaskBar" Grid.Row="2" Height="40">
182 <ScrollViewer Style="{StaticResource TaskBarScrollViewerStyle}"
183 HorizontalScrollBarVisibility="Auto"
184 VerticalScrollBarVisibility="Disabled">
185 <ItemsControl x:Name="TaskBarItems"
186 FocusVisualStyle="{x:Null}"
187 AllowDrop="False"
188 BorderThickness="0"
189 Background="Transparent"
190 ItemsSource="{Binding ActiveWindows}"
191 ItemsPanel="{StaticResource TaskBarPanelTemplate}"
192 ItemTemplate="{StaticResource TaskBarItemTemplate}"
193 VerticalContentAlignment="Center"/>
194 </ScrollViewer>
195 </Grid>
196 </Grid>
197
198 <chronos:Desktop x:Name="VirtualDesktop01"
199 Grid.Row="3"
200 FocusVisualStyle="{x:Null}"
201 Visibility="Collapsed"
202 Background="Transparent"
203 AllowDrop="True"
204 Id="94fa801f-bef7-437a-ba75-352f1ede6fb9"
205 chronos:VirtualDesktopManager.IsDesktop="True"
206 chronos:DragDropManager.IsDropTarget="True">
207 </chronos:Desktop>
208
209 <chronos:Desktop x:Name="VirtualDesktop02"
210 Grid.Row="3"
211 FocusVisualStyle="{x:Null}"
212 Visibility="Collapsed"
213 Background="Transparent"
214 AllowDrop="True"
215 Id="2afc760e-9450-448d-9f28-5311c49e4773"
216 chronos:VirtualDesktopManager.IsDesktop="True"
217 chronos:DragDropManager.IsDropTarget="True">
218 </chronos:Desktop>
219
220 <chronos:Desktop x:Name="ModalContainer"
221 Grid.RowSpan="4"
222 FocusVisualStyle="{x:Null}"
223 AllowDrop="False"
224 Visibility="Collapsed"
225 chronos:VirtualDesktopManager.IsModalContainer="True">
226 </chronos:Desktop>
227 </Grid>
228 </Window>