WelcomeView.xaml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <localView:UserControlBase x:Class="VocabManager.View.WelcomeView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
  6. xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. mc:Ignorable="d"
  9. FontFamily="{StaticResource PhoneFontFamilyNormal}"
  10. FontSize="{StaticResource PhoneFontSizeNormal}"
  11. Foreground="{StaticResource PhoneForegroundBrush}"
  12. xmlns:local="clr-namespace:VocabManager"
  13. xmlns:localView="clr-namespace:VocabManager.View"
  14. xmlns:localViewModel="clr-namespace:VocabManager.ViewModel"
  15. d:DesignHeight="800" d:DesignWidth="480"
  16. >
  17. <localView:UserControlBase.Resources>
  18. <localViewModel:WelcomeViewModel x:Key="viewModel"> </localViewModel:WelcomeViewModel>
  19. </localView:UserControlBase.Resources>
  20. <Grid x:Name="LayoutRoot" DataContext="{StaticResource viewModel}">
  21. <Grid.Background>
  22. <ImageBrush ImageSource="/VocabManager;component/Resources/Images/Backgrounds/flickr-words.jpg"> </ImageBrush>
  23. </Grid.Background>
  24. <Grid.RowDefinitions>
  25. <RowDefinition Height="auto"></RowDefinition>
  26. <RowDefinition></RowDefinition>
  27. <RowDefinition Height="auto"></RowDefinition>
  28. </Grid.RowDefinitions>
  29. <Border Background="Black" >
  30. <ContentControl Foreground="White" FontWeight="ExtraBlack" Style="{StaticResource TitleStyle}" Content="{Binding Title}" FontSize="40"></ContentControl>
  31. </Border>
  32. <!--<Image Stretch="Fill" Grid.Row="1" Source="/VocabManager;component/Resources/Images/Backgrounds/flickr-words.jpg"></Image>-->
  33. <Border Grid.Row="2" Background="Gray" Opacity=".5"></Border>
  34. <Grid Margin="5" Grid.Row="2" >
  35. <Grid.RowDefinitions>
  36. <RowDefinition></RowDefinition>
  37. <RowDefinition ></RowDefinition>
  38. <RowDefinition ></RowDefinition>
  39. </Grid.RowDefinitions>
  40. <Button Margin="15" Padding="10" Content="Start" MinWidth="100" Foreground="White" Command="{Binding StartAppCommand}"></Button>
  41. <Button Margin="15" Padding="10" Content="Help" Command="{Binding ShowHelpCommand}" Grid.Row="1" Foreground="White"></Button>
  42. <Button Margin="15" Padding="10" Content="About" Command="{Binding ShowAboutCommand}" Grid.Row="2" Foreground="White"></Button>
  43. </Grid>
  44. </Grid>
  45. </localView:UserControlBase>