PageRenderTime 102ms CodeModel.GetById 61ms app.highlight 1ms RepoModel.GetById 39ms app.codeStats 0ms

/TimeSheetReporting/TimeSheetReporting/MainPage.xaml

#
XAML | 55 lines | 40 code | 15 blank | 0 comment | 0 complexity | 1b7c878965480454f3e810c451d53b05 MD5 | raw file
 1<UserControl
 2    x:Class="TimeSheetReporting.MainPage"
 3    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
 4    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
 5    xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation" 
 6    xmlns:uriMapper="clr-namespace:System.Windows.Navigation;assembly=System.Windows.Controls.Navigation"
 7    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
 8    mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480">
 9
10  <Grid x:Name="LayoutRoot" Style="{StaticResource LayoutRootGridStyle}">
11
12    <Border x:Name="ContentBorder" Style="{StaticResource ContentBorderStyle}">
13
14      <navigation:Frame x:Name="ContentFrame" Style="{StaticResource ContentFrameStyle}" 
15                              Source="/Home" Navigated="ContentFrame_Navigated" NavigationFailed="ContentFrame_NavigationFailed">
16        <navigation:Frame.UriMapper>
17          <uriMapper:UriMapper>
18            <uriMapper:UriMapping Uri="" MappedUri="/Views/Home.xaml"/>
19            <uriMapper:UriMapping Uri="/{pageName}" MappedUri="/Views/{pageName}.xaml"/>
20          </uriMapper:UriMapper>
21        </navigation:Frame.UriMapper>
22      </navigation:Frame>
23    </Border>
24
25    <Grid x:Name="NavigationGrid" Style="{StaticResource NavigationGridStyle}">
26
27      <Border x:Name="BrandingBorder" Style="{StaticResource BrandingBorderStyle}">
28        <StackPanel x:Name="BrandingStackPanel" Style="{StaticResource BrandingStackPanelStyle}">
29
30          <ContentControl Style="{StaticResource LogoIcon}"/>
31          <TextBlock x:Name="ApplicationNameTextBlock" Style="{StaticResource ApplicationNameStyle}" 
32                               Text="TimeSheet Reporting"/>
33
34        </StackPanel>
35      </Border>
36
37      <Border x:Name="LinksBorder" Style="{StaticResource LinksBorderStyle}">
38        <StackPanel x:Name="LinksStackPanel" Style="{StaticResource LinksStackPanelStyle}">
39
40          <HyperlinkButton x:Name="Link1" Style="{StaticResource LinkStyle}" 
41                                     NavigateUri="/Home" TargetName="ContentFrame" Content="home"/>
42
43          <Rectangle x:Name="Divider1" Style="{StaticResource DividerStyle}"/>
44
45          <HyperlinkButton x:Name="Link2" Style="{StaticResource LinkStyle}" 
46                                     NavigateUri="/About" TargetName="ContentFrame" Content="about"/>
47
48        </StackPanel>
49      </Border>
50
51    </Grid>
52
53  </Grid>
54
55</UserControl>