AboutView.axaml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <UserControl
  2. x:Class="ShakerApp.Views.AboutView"
  3. xmlns="https://github.com/avaloniaui"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  7. xmlns:vm="using:ShakerApp.ViewModels"
  8. d:DesignHeight="450"
  9. d:DesignWidth="800"
  10. x:DataType="vm:AboutViewModel"
  11. DataContext="{Binding Source={x:Static vm:AboutViewModel.Instance}}"
  12. mc:Ignorable="d">
  13. <StackPanel>
  14. <TextBlock
  15. Margin="10"
  16. FontSize="48"
  17. FontWeight="Bold"
  18. Text="{DynamicResource About}" />
  19. <TextBlock Margin="10" FontSize="16">
  20. <Run Text="{DynamicResource OSVersion}" />
  21. <Run Text=":" />
  22. <Run Text="{Binding OSVersion}" />
  23. </TextBlock>
  24. <TextBlock Margin="10" FontSize="16">
  25. <Run Text="{DynamicResource MachineName}" />
  26. <Run Text=":" />
  27. <Run Text="{Binding MachineName}" />
  28. </TextBlock>
  29. <TextBlock Margin="10" FontSize="16">
  30. <Run Text="{DynamicResource FrameworkVersion}" />
  31. <Run Text=":" />
  32. <Run Text="{Binding FrameworkVersion}" />
  33. </TextBlock>
  34. <TextBlock Margin="10" FontSize="16">
  35. <Run Text="{DynamicResource Version}" />
  36. <Run Text=":" />
  37. <Run Text="{Binding Version}" />
  38. </TextBlock>
  39. <TextBlock Margin="10" FontSize="16">
  40. <Run Text="{DynamicResource CreateTime}" />
  41. <Run Text=":" />
  42. <Run Text="{Binding Source={x:Static vm:ShakerConfigViewModel.Instance}, Path=CreateTime}" />
  43. </TextBlock>
  44. <TextBlock Margin="10" FontSize="16">
  45. <Run Text="{DynamicResource BitfileVersion}" />
  46. <Run Text=":" />
  47. <Run Text="{Binding Source={x:Static vm:ShakerConfigViewModel.Instance}, Path=BitfileVersion}" />
  48. </TextBlock>
  49. <TextBlock Margin="10" FontSize="16">
  50. <Run Text="{DynamicResource BitstreamMD5}" />
  51. <Run Text=":" />
  52. <Run Text="{Binding Source={x:Static vm:ShakerConfigViewModel.Instance}, Path=BitstreamMD5}" />
  53. </TextBlock>
  54. </StackPanel>
  55. </UserControl>