You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

VersionUpdatePromptView.xaml 2.3 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <reactiveui:ReactiveUserControl
  2. x:Class="Shadowsocks.Views.VersionUpdatePromptView"
  3. x:TypeArguments="vms:VersionUpdatePromptViewModel"
  4. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  5. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  6. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  7. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  8. xmlns:local="clr-namespace:Shadowsocks.Views"
  9. xmlns:vms="clr-namespace:Shadowsocks.ViewModels"
  10. xmlns:reactiveui="http://reactiveui.net"
  11. xmlns:mdxam="clr-namespace:MdXaml;assembly=MdXaml"
  12. xmlns:lex="http://wpflocalizeextension.codeplex.com"
  13. lex:LocalizeDictionary.DesignCulture="en"
  14. lex:ResxLocalizationProvider.DefaultAssembly="Shadowsocks"
  15. lex:ResxLocalizationProvider.DefaultDictionary="Strings"
  16. mc:Ignorable="d"
  17. d:DesignHeight="480" d:DesignWidth="640">
  18. <Grid Margin="8">
  19. <Grid.RowDefinitions>
  20. <RowDefinition Height="Auto" />
  21. <RowDefinition Height="Auto" />
  22. <RowDefinition Height="*" />
  23. <RowDefinition Height="Auto" />
  24. </Grid.RowDefinitions>
  25. <TextBlock Margin="8 8 8 4" Grid.Row="0"
  26. FontSize="16"
  27. Text="{lex:Loc updatePromptTitle}" />
  28. <TextBlock Margin="8 4 8 8" Grid.Row="1"
  29. Text="{lex:Loc updatePromptBody}" />
  30. <mdxam:MarkdownScrollViewer x:Name="releaseNotesMarkdownScrollViewer"
  31. Margin="8"
  32. Grid.Row="2"
  33. Markdown="{Binding ReleaseNotes}"
  34. MarkdownStyle="{x:Static mdxam:MarkdownStyle.GithubLike}"/>
  35. <StackPanel Orientation="Horizontal" Grid.Row="3">
  36. <Button x:Name="updateButton" Margin="8 8 4 4" Width="75" Height="23" Content="{lex:Loc}"/>
  37. </StackPanel>
  38. <StackPanel Orientation="Horizontal" Grid.Row="3" HorizontalAlignment="Right">
  39. <Button x:Name="skipVersionButton" Margin="4 8 4 4" Width="75" Height="23" Content="{lex:Loc}"/>
  40. <Button x:Name="notNowButton" Margin="4 8 8 4" Width="75" Height="23" Content="{lex:Loc}"/>
  41. </StackPanel>
  42. </Grid>
  43. </reactiveui:ReactiveUserControl>