代码拉取完成,页面将自动刷新
<Window x:Class="FnSync.WindowSetting"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:FnSync"
mc:Ignorable="d"
WindowStartupLocation="CenterScreen" Icon="Resources/icon.ico"
Background="{DynamicResource {x:Static SystemColors.MenuBarBrushKey}}"
Title="{DynamicResource Setting}" Height="350" Width="500">
<Window.Resources>
<local:SpecificPortConverter x:Key="SpecificPortConverter" />
</Window.Resources>
<TabControl Background="Transparent" Margin="4">
<TabItem Header="{DynamicResource General}">
<ScrollViewer>
<StackPanel x:Name="Settings" Margin="8">
<CheckBox Margin="0,4" Content="{DynamicResource ConnectOnStartup}" IsChecked="{Binding ConnectOnStartup, Mode=TwoWay}"/>
<CheckBox Margin="0,4" Content="{DynamicResource HideOnStartup}" IsChecked="{Binding HideOnStartup, Mode=TwoWay}"/>
<CheckBox Margin="0,4" Content="{DynamicResource DontToastConnected}" IsChecked="{Binding DontToastConnected, Mode=TwoWay}"/>
<CheckBox Margin="0,4" x:Name="ClipboardSync" Content="{DynamicResource ClipboardSync}" IsChecked="{Binding ClipboardSync, Mode=TwoWay}" Checked="ClipboardSync_Checked"/>
<CheckBox Margin="0,4" x:Name="TextCastAutoCopy" Content="{DynamicResource TextCastAutoCopy}" IsChecked="{Binding TextCastAutoCopy, Mode=TwoWay}" />
<CheckBox Margin="0,4" x:Name="FixedListenPort" Content="{DynamicResource FixedListenPort}" IsChecked="{Binding FixedListenPort, Mode=OneWay, Converter={StaticResource SpecificPortConverter}}" Checked="FixedListenPort_Checked" Unchecked="FixedListenPort_Unchecked"/>
<StackPanel IsEnabled="{Binding IsChecked, ElementName=FixedListenPort}" HorizontalAlignment="Left" Margin="32,0,0,0" Orientation="Horizontal">
<TextBlock Text="{DynamicResource Port}"/>
<TextBlock Text=" : " Margin="0,0,8,0"/>
<TextBox x:Name="PortNumber" Width="70" Text="{Binding FixedListenPort, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
</StackPanel>
<Label Margin="32,0,0,0">
<TextBlock Text="{DynamicResource RequireRestart}" TextWrapping="WrapWithOverflow" />
</Label>
<Label Content="{DynamicResource AdditionalIPs}"/>
<TextBox x:Name="AdditionalIPs" Margin="32,0,0,0" Text="{Binding AdditionalIPs, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
<Label Margin="32,0,0,0">
<TextBlock Text="{DynamicResource AdditionalIPsNote}" TextWrapping="WrapWithOverflow" />
</Label>
</StackPanel>
</ScrollViewer>
</TabItem>
<TabItem x:Name="NotificationClickEventTab" Header="{DynamicResource NotificationClickEvent}" Visibility="Collapsed">
<DataGrid x:Name="AppList" AutoGenerateColumns="False" IsReadOnly="True">
<DataGrid.Columns>
<DataGridTextColumn Header="{DynamicResource APPName}" Binding="{Binding Value}" />
<DataGridTextColumn Header="{DynamicResource PkgID}" Binding="{Binding Key}" />
</DataGrid.Columns>
</DataGrid>
</TabItem>
<TabItem Header="{DynamicResource About}" >
<RichTextBox HorizontalAlignment="Stretch" VerticalAlignment="Stretch" IsReadOnly="True" IsReadOnlyCaretVisible="True" VerticalScrollBarVisibility="Visible" HorizontalScrollBarVisibility="Disabled" IsDocumentEnabled="True">
<FlowDocument>
<Paragraph>
<Run Text="{DynamicResource FnSync}"/>
<Run Text="Version"/>
<Run x:Name="Version" Text=""/>
</Paragraph>
<Paragraph>
<Run Text="{DynamicResource OpenSourcedAt}"/>
<Hyperlink NavigateUri="https://gitee.com/holmium/fnsync" RequestNavigate="HyperLink_RequestNavigate">
<Run Text="{Binding NavigateUri, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Hyperlink}}}"/>
</Hyperlink>
</Paragraph>
<Paragraph>
<Run Text="{DynamicResource ThisId}"/>
<Run x:Name="IdField" Text="(ID)"/>
</Paragraph>
<Paragraph>
<Run Text="{DynamicResource Locale}"/>
<Run x:Name="LocaleField" Text="(LOCALE)"/>
</Paragraph>
<Paragraph>
<Run Text="{DynamicResource AndroidCompanion}"/>
<Run Text=": "/>
<Hyperlink NavigateUri="https://play.google.com/store/apps/details?id=holmium.fnsync" RequestNavigate="HyperLink_RequestNavigate">
<Run Text="{Binding NavigateUri, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Hyperlink}}}"/>
</Hyperlink>
</Paragraph>
<Paragraph>
<Run Text="{DynamicResource ThirdPartyLibrary}"/>
<LineBreak/>
<Run Text="Hardcodet.NotifyIcon.Wpf"/>
<Run Text=": License: "/>
<Hyperlink NavigateUri="https://www.codeproject.com/info/cpol10.aspx" RequestNavigate="HyperLink_RequestNavigate">
<Run Text="{Binding NavigateUri, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Hyperlink}}}"/>
</Hyperlink>
<LineBreak/>
<Run Text="Newtonsoft.Json"/>
<Run Text=": License: "/>
<Hyperlink NavigateUri="https://licenses.nuget.org/MIT" RequestNavigate="HyperLink_RequestNavigate">
<Run Text="{Binding NavigateUri, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Hyperlink}}}"/>
</Hyperlink>
<LineBreak/>
<Run Text="Portable.BouncyCastle"/>
<Run Text=": License: "/>
<Hyperlink NavigateUri="https://www.bouncycastle.org/csharp/licence.html" RequestNavigate="HyperLink_RequestNavigate">
<Run Text="{Binding NavigateUri, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Hyperlink}}}"/>
</Hyperlink>
<LineBreak/>
<Run Text="QueryString.NET"/>
<Run Text=": License: "/>
<Hyperlink NavigateUri="https://raw.githubusercontent.com/WindowsNotifications/QueryString.NET/master/LICENSE" RequestNavigate="HyperLink_RequestNavigate">
<Run Text="{Binding NavigateUri, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Hyperlink}}}"/>
</Hyperlink>
<LineBreak/>
<Run Text="QRCoder"/>
<Run Text=": License: "/>
<Hyperlink NavigateUri="https://licenses.nuget.org/MIT" RequestNavigate="HyperLink_RequestNavigate">
<Run Text="{Binding NavigateUri, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Hyperlink}}}"/>
</Hyperlink>
<LineBreak/>
<Run Text="SecureCompatibleEncryptionExamples"/>
<Run Text=": License: "/>
<Hyperlink NavigateUri="https://github.com/luke-park/SecureCompatibleEncryptionExamples/blob/master/LICENSE" RequestNavigate="HyperLink_RequestNavigate">
<Run Text="{Binding NavigateUri, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Hyperlink}}}"/>
</Hyperlink>
<LineBreak/>
</Paragraph>
</FlowDocument>
</RichTextBox>
</TabItem>
</TabControl>
</Window>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。