HelpView.xaml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <localView:UserControlBase x:Class="VocabManager.View.HelpView"
  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. <localView:UserControlBase.Resources>
  17. <localViewModel:HelpViewModel x:Key="viewModel"></localViewModel:HelpViewModel>
  18. </localView:UserControlBase.Resources>
  19. <Grid x:Name="LayoutRoot" >
  20. <Grid DataContext="{StaticResource viewModel}">
  21. <Grid.RowDefinitions>
  22. <RowDefinition Height="auto"></RowDefinition>
  23. <RowDefinition></RowDefinition>
  24. </Grid.RowDefinitions>
  25. <ContentControl Style="{StaticResource TitleStyle}" Content="{Binding Title}" FontSize="35"></ContentControl>
  26. <Border Padding="4" Grid.Row="1" BorderBrush="White" BorderThickness="2">
  27. <ScrollViewer >
  28. <TextBlock Foreground="Wheat" TextWrapping="Wrap" Text="{Binding ContentText}"></TextBlock>
  29. </ScrollViewer>
  30. </Border>
  31. </Grid>
  32. </Grid>
  33. <localView:UserControlBase.Projection>
  34. <PlaneProjection x:Name="planeProjection"
  35. CenterOfRotationX="0" />
  36. </localView:UserControlBase.Projection>
  37. <localView:UserControlBase.Triggers>
  38. <EventTrigger>
  39. <BeginStoryboard>
  40. <Storyboard>
  41. <DoubleAnimation Storyboard.TargetName="planeProjection"
  42. Storyboard.TargetProperty="RotationY"
  43. From="200" To="0" Duration="0:0:0.7" />
  44. </Storyboard>
  45. </BeginStoryboard>
  46. </EventTrigger>
  47. </localView:UserControlBase.Triggers>
  48. </localView:UserControlBase>