AboutView.xaml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <localView:UserControlBase x:Class="VocabManager.View.AboutView"
  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:AboutViewModel x:Key="viewModel"></localViewModel:AboutViewModel>
  19. </localView:UserControlBase.Resources>
  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. <localView:UserControlBase.Projection>
  33. <PlaneProjection x:Name="planeProjection"
  34. CenterOfRotationX="0" />
  35. </localView:UserControlBase.Projection>
  36. <localView:UserControlBase.Triggers>
  37. <EventTrigger>
  38. <BeginStoryboard>
  39. <Storyboard>
  40. <DoubleAnimation Storyboard.TargetName="planeProjection"
  41. Storyboard.TargetProperty="RotationY"
  42. From="200" To="0" Duration="0:0:0.7" />
  43. </Storyboard>
  44. </BeginStoryboard>
  45. </EventTrigger>
  46. </localView:UserControlBase.Triggers>
  47. </localView:UserControlBase>