TopView.xaml 1.5 KB

1234567891011121314151617181920212223242526
  1. <UserControl x:Class="Venus_MainPages.Views.TopView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:Venus_MainPages.Views"
  7. xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
  8. xmlns:prism="http://prismlibrary.com/"
  9. prism:ViewModelLocator.AutoWireViewModel="True"
  10. mc:Ignorable="d"
  11. d:DesignHeight="100" d:DesignWidth="800">
  12. <StackPanel Background="{DynamicResource BottomFrame_BG}" Orientation="Horizontal">
  13. <TextBlock Style="{StaticResource textBlockStyle}" Text="{Binding Title}" FontSize="60" VerticalAlignment="Center" Margin="10,0,0,0" />
  14. <ToggleButton Style="{StaticResource ToggleButtonStyle1}" Margin="10,0,0,0">
  15. <i:Interaction.Triggers>
  16. <i:EventTrigger EventName="Checked">
  17. <i:InvokeCommandAction Command="{Binding SwichLanguageCommand}"/>
  18. </i:EventTrigger>
  19. <i:EventTrigger EventName="Unchecked">
  20. <i:InvokeCommandAction Command="{Binding SwichLanguageCommand}"/>
  21. </i:EventTrigger>
  22. </i:Interaction.Triggers>
  23. </ToggleButton>
  24. </StackPanel>
  25. </UserControl>