AboutControl.xaml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <UserControl x:Class="GeekDesk.Control.UserControls.Config.AboutControl"
  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:cvt="clr-namespace:GeekDesk.Converts"
  7. xmlns:local="clr-namespace:GeekDesk.Control.UserControls.PannelCard"
  8. xmlns:hc="https://handyorg.github.io/handycontrol"
  9. mc:Ignorable="d"
  10. Background="AliceBlue"
  11. d:DesignHeight="400" d:DesignWidth="500">
  12. <UserControl.Resources>
  13. <cvt:UpdateTypeConvert x:Key="UpdateTypeConvert"/>
  14. </UserControl.Resources>
  15. <hc:SimplePanel Margin="20,50,20,20">
  16. <StackPanel Orientation="Vertical" HorizontalAlignment="Center" VerticalAlignment="Top">
  17. <Image Source="/Resource/Image/About.png" Width="400" Height="100"/>
  18. <TextBlock x:Name="AppInfo" TextAlignment="Center" Text="Copyright © 2021 GeekDesk "/>
  19. <hc:UniformSpacingPanel Spacing="5" HorizontalAlignment="Center" Margin="10,10,0,0" VerticalAlignment="Center">
  20. <hc:Shield Subject=".net" Status=">=4.72" Margin="0,0,10,0" Color="#1182c3"/>
  21. <hc:Shield Subject="IDE" Status="VS2019" Margin="0,0,10,0" Color="#1182c3"/>
  22. <hc:Shield Subject="GitHub" Status="Demo-liu"
  23. Command="hc:ControlCommands.OpenLink"
  24. CommandParameter="https://github.com/Demo-Liu/GeekDesk"
  25. Margin="0,0,10,0" Color="#24292F"/>
  26. <hc:Shield Subject="码云" Status="Demo-liu"
  27. Command="hc:ControlCommands.OpenLink"
  28. CommandParameter=""
  29. Margin="0,5,10,0" Color="#C71D23"/>
  30. </hc:UniformSpacingPanel>
  31. <hc:UniformSpacingPanel Spacing="10" HorizontalAlignment="Center" Margin="0,5,0,0">
  32. <hc:Shield Subject="公众号" Status="抓几个娃" Margin="0,0,5,0" Color="#04913B">
  33. <hc:Poptip.Instance>
  34. <hc:Poptip PlacementType="Top">
  35. <hc:Poptip.Content>
  36. <Image x:Name="PublicWeChat" Width="150" Height="150" />
  37. </hc:Poptip.Content>
  38. </hc:Poptip>
  39. </hc:Poptip.Instance>
  40. </hc:Shield>
  41. <hc:Shield Subject="赞赏" Status="支付宝" Margin="0,0,10,0" Color="#1577FE">
  42. <hc:Poptip.Instance>
  43. <hc:Poptip PlacementType="Top">
  44. <hc:Poptip.Content>
  45. <Image x:Name="ZFBCode" Width="150" Height="150" />
  46. </hc:Poptip.Content>
  47. </hc:Poptip>
  48. </hc:Poptip.Instance>
  49. </hc:Shield>
  50. <hc:Shield Subject="赞赏" Status="微信" Margin="0,0,10,0" Color="#04913B">
  51. <hc:Poptip.Instance>
  52. <hc:Poptip PlacementType="Top">
  53. <hc:Poptip.Content>
  54. <Image x:Name="WeChatCode" Width="150" Height="150" />
  55. </hc:Poptip.Content>
  56. </hc:Poptip>
  57. </hc:Poptip.Instance>
  58. </hc:Shield>
  59. </hc:UniformSpacingPanel>
  60. <TextBlock Margin="0,20,0,0" FontSize="13" Width="200" TextAlignment="Center" Text="这是个人开发的程序,所有人可任意修改和免费使用(商用请联系作者)" TextWrapping="Wrap"/>
  61. <hc:UniformSpacingPanel Spacing="10" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,10,0,0">
  62. <TextBlock Text="更新源:" TextAlignment="Center" VerticalAlignment="Center" HorizontalAlignment="Center"/>
  63. <RadioButton Margin="10,0,0,0" Background="{DynamicResource SecondaryRegionBrush}"
  64. Style="{StaticResource RadioButtonIcon}" Content="Gitee"
  65. IsChecked="{Binding UpdateType, Mode=TwoWay, Converter={StaticResource UpdateTypeConvert}, ConverterParameter=1}"/>
  66. <RadioButton Margin="10,0,0,0" Background="{DynamicResource SecondaryRegionBrush}"
  67. Style="{StaticResource RadioButtonIcon}" Content="GitHub"
  68. IsChecked="{Binding UpdateType, Mode=TwoWay, Converter={StaticResource UpdateTypeConvert}, ConverterParameter=2}"/>
  69. </hc:UniformSpacingPanel>
  70. </StackPanel>
  71. </hc:SimplePanel>
  72. </UserControl>