PageRenderTime 45ms CodeModel.GetById 16ms RepoModel.GetById 1ms 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. <Grid x:Name="LayoutRoot" Style="{StaticResource LayoutRootGridStyle}">
  10. <Border x:Name="ContentBorder" Style="{StaticResource ContentBorderStyle}">
  11. <navigation:Frame x:Name="ContentFrame" Style="{StaticResource ContentFrameStyle}"
  12. Source="/Home" Navigated="ContentFrame_Navigated" NavigationFailed="ContentFrame_NavigationFailed">
  13. <navigation:Frame.UriMapper>
  14. <uriMapper:UriMapper>
  15. <uriMapper:UriMapping Uri="" MappedUri="/Views/Home.xaml"/>
  16. <uriMapper:UriMapping Uri="/{pageName}" MappedUri="/Views/{pageName}.xaml"/>
  17. </uriMapper:UriMapper>
  18. </navigation:Frame.UriMapper>
  19. </navigation:Frame>
  20. </Border>
  21. <Grid x:Name="NavigationGrid" Style="{StaticResource NavigationGridStyle}">
  22. <Border x:Name="BrandingBorder" Style="{StaticResource BrandingBorderStyle}">
  23. <StackPanel x:Name="BrandingStackPanel" Style="{StaticResource BrandingStackPanelStyle}">
  24. <ContentControl Style="{StaticResource LogoIcon}"/>
  25. <TextBlock x:Name="ApplicationNameTextBlock" Style="{StaticResource ApplicationNameStyle}"
  26. Text="TimeSheet Reporting"/>
  27. </StackPanel>
  28. </Border>
  29. <Border x:Name="LinksBorder" Style="{StaticResource LinksBorderStyle}">
  30. <StackPanel x:Name="LinksStackPanel" Style="{StaticResource LinksStackPanelStyle}">
  31. <HyperlinkButton x:Name="Link1" Style="{StaticResource LinkStyle}"
  32. NavigateUri="/Home" TargetName="ContentFrame" Content="home"/>
  33. <Rectangle x:Name="Divider1" Style="{StaticResource DividerStyle}"/>
  34. <HyperlinkButton x:Name="Link2" Style="{StaticResource LinkStyle}"
  35. NavigateUri="/About" TargetName="ContentFrame" Content="about"/>
  36. </StackPanel>
  37. </Border>
  38. </Grid>
  39. </Grid>
  40. </UserControl>