SaveChanges.xaml 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <!--title=保存更改-->
  2. <StackPanel>
  3. <StackPanel.Resources>
  4. <Style TargetType="TextBox">
  5. <Setter Property="FontSize" Value="14" />
  6. <Setter Property="IsReadOnly" Value="True" />
  7. <Setter Property="Margin" Value="2,0,2,0" />
  8. <Setter Property="FontFamily" Value="Consolas"/>
  9. <Setter Property="Foreground" Value="{DynamicResource ColorBrush1}"/>
  10. <Setter Property="Height" Value="26"/>
  11. <Setter Property="Template">
  12. <Setter.Value>
  13. <ControlTemplate TargetType="TextBox">
  14. <Border Background="{DynamicResource ColorBrush6}" Opacity="0.9"
  15. BorderBrush="{DynamicResource ColorBrush4}" BorderThickness="0"
  16. CornerRadius="5" Padding="4,4,4,0.2">
  17. <ScrollViewer x:Name="PART_ContentHost" Focusable="false"
  18. HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden" />
  19. </Border>
  20. <ControlTemplate.Triggers>
  21. </ControlTemplate.Triggers>
  22. </ControlTemplate>
  23. </Setter.Value>
  24. </Setter>
  25. </Style>
  26. </StackPanel.Resources>
  27. <local:MyCard Margin="0,0,0,15" CanSwap="False">
  28. <local:MyCard.Inlines>
  29. 自动保存
  30. </local:MyCard.Inlines>
  31. <StackPanel Margin="25,50,23,15">
  32. <TextBlock TextWrapping="Wrap" Margin="0,0,0,4">
  33. 点击下方按钮会自动执行保存命令并重启PCL。
  34. </TextBlock>
  35. <local:MyButton Text="技术原因暂不可用" IsEnabled="False"
  36. EventType="打开文件"
  37. Height="40" Margin="20,10,20,10" EventData="Powershell| -NoExit -Command"/>
  38. </StackPanel>
  39. </local:MyCard>
  40. <local:MyCard Margin="0,0,0,15" CanSwap="False">
  41. <local:MyCard.Inlines>
  42. 手动更改
  43. </local:MyCard.Inlines>
  44. <StackPanel Margin="25,40,23,15">
  45. <Grid Margin="0,0,0,14">
  46. <Grid.ColumnDefinitions>
  47. <ColumnDefinition Width="*"/>
  48. <ColumnDefinition Width="80"/>
  49. </Grid.ColumnDefinitions>
  50. <TextBox Grid.Column="0" TextWrapping="Wrap" x:Name="LinkTextBox" Margin="0,0,10,0">
  51. ${@PreferenceUrl}
  52. </TextBox>
  53. <local:MyButton Grid.Column="1" Height="26" EventType="复制文本" EventData="{Binding ElementName=LinkTextBox, Path=Text}">
  54. 复制链接
  55. </local:MyButton>
  56. </Grid>
  57. <TextBlock TextWrapping="Wrap" Margin="0,0,0,10">
  58. 复制以上链接,点击下方按钮,找到:主页 -> 联网更新,粘贴链接,回到主页即可完成设置。
  59. </TextBlock>
  60. <local:MyButton Height="40" Margin="20,10,20,10" EventType="切换页面" EventData="3|1">
  61. 打开个性化设置
  62. </local:MyButton>
  63. </StackPanel>
  64. </local:MyCard>
  65. </StackPanel>