| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- <!--title=保存更改-->
- <StackPanel>
- <StackPanel.Resources>
- <Style TargetType="TextBox">
- <Setter Property="FontSize" Value="14" />
- <Setter Property="IsReadOnly" Value="True" />
- <Setter Property="Margin" Value="2,0,2,0" />
- <Setter Property="FontFamily" Value="Consolas"/>
- <Setter Property="Foreground" Value="{DynamicResource ColorBrush1}"/>
- <Setter Property="Height" Value="26"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="TextBox">
- <Border Background="{DynamicResource ColorBrush6}" Opacity="0.9"
- BorderBrush="{DynamicResource ColorBrush4}" BorderThickness="0"
- CornerRadius="5" Padding="4,4,4,0.2">
- <ScrollViewer x:Name="PART_ContentHost" Focusable="false"
- HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden" />
- </Border>
- <ControlTemplate.Triggers>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </StackPanel.Resources>
- <local:MyCard Margin="0,0,0,15" CanSwap="False">
- <local:MyCard.Inlines>
- 自动保存
- </local:MyCard.Inlines>
- <StackPanel Margin="25,50,23,15">
- <local:MyHint Margin="0,0,0,4" Theme="yellow">自动保存仅支持 PCL 版本 2.10.6+,若无法使用自动保存请使用下方的手动保存。</local:MyHint>
- ${@IsUsingPreset|
- <TextBlock Margin="0,0,0,4">
- 0.应用设置前需要将主页设置从预设改为联网更新(之后再次设置时无需更改)。你需要点击下方按钮更改设置。
- </TextBlock>
- <local:MyButton Text="切换为联网更新"
- EventType="修改设置"
- Height="40" Margin="20,10,20,10" EventData="UiCustomType|2"/>}
- <TextBlock TextWrapping="Wrap" Margin="0,0,0,4">
- 1.点击下方按钮保存你做的更改。
- </TextBlock>
- <local:MyButton Text="保存更改"
- EventType="修改设置"
- Height="40" Margin="20,10,20,10">
- <local:MyButton.EventData>
- <Binding ElementName="LinkTextBox" Path="Text" StringFormat="UiCustomNet|{0}"/>
- </local:MyButton.EventData>
- </local:MyButton>
- <TextBlock TextWrapping="Wrap" Margin="0,0,0,4">
- 2.点击下方按钮返回主页。
- </TextBlock>
- <local:MyButton Text="返回主页"
- EventType="切换页面"
- Height="40" Margin="20,10,20,10" EventData="0|0">
- </local:MyButton>
- </StackPanel>
- </local:MyCard>
- <local:MyCard Title="手动保存" Margin="0,0,0,15" CanSwap="True" IsSwapped="True">
- <StackPanel Margin="25,40,23,15">
- <Grid Margin="0,0,0,14">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition Width="80"/>
- </Grid.ColumnDefinitions>
- <TextBox Grid.Column="0" TextWrapping="Wrap" x:Name="LinkTextBox" Margin="0,0,10,0">
- ${@PreferenceUrl}
- </TextBox>
- <local:MyButton Grid.Column="1" Height="26" EventType="复制文本" EventData="{Binding ElementName=LinkTextBox, Path=Text}">
- 复制链接
- </local:MyButton>
- </Grid>
- <TextBlock TextWrapping="Wrap" Margin="0,0,0,10">
- 复制以上链接,点击下方按钮,找到:主页 -> 联网更新,粘贴链接,回到主页即可完成设置。
- </TextBlock>
- <local:MyButton Height="40" Margin="20,10,20,10" EventType="切换页面" EventData="3|1">
- 打开个性化设置
- </local:MyButton>
- </StackPanel>
- </local:MyCard>
- </StackPanel>
|