1 Star 0 Fork 13

evlon/fnsync

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
WindowSetting.xaml 8.64 KB
一键复制 编辑 原始数据 按行查看 历史
holmium 提交于 2021-04-05 15:19 . Custom IP Support
<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>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/evlon/fnsync.git
git@gitee.com:evlon/fnsync.git
evlon
fnsync
fnsync
master

搜索帮助