1 Star 0 Fork 136

leojim / OSerialPort

forked from Leven / OSDA 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
App.xaml 3.60 KB
一键复制 编辑 原始数据 按行查看 历史
<Application x:Class="OSerialPort.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
StartupUri="Views\MainWindow.xaml">
<Application.Resources>
<ResourceDictionary>
<!--菜单栏样式-->
<Style TargetType="MenuItem" x:Key="MMenuItem">
<Setter Property="Padding" Value="6,3"/>
</Style>
<!--状态栏样式-->
<Style TargetType="StatusBarItem" x:Key="SBStatusBarItem">
<Setter Property="Foreground" Value="White"/>
</Style>
<!--接收区发送区样式-->
<Style TargetType="TextBox" x:Key="RSTextBox">
<Setter Property="TextWrapping" Value="Wrap"/>
<Setter Property="AcceptsReturn" Value="True"/>
<Setter Property="Margin" Value="0,3,0,0"/>
<Setter Property="BorderBrush" Value="#FF0078D7"/>
</Style>
<!--发送、多项发送样式-->
<Style TargetType="Button" x:Key="SendButton">
<Setter Property="Margin" Value="3,3,0,0"/>
<Setter Property="Width" Value="86"/>
<Setter Property="HorizontalAlignment" Value="Right"/>
<Setter Property="Background" Value="White"/>
<Setter Property="BorderBrush" Value="Black"/>
</Style>
<!--串口配置样式-->
<Style TargetType="TextBlock" x:Key="SPTextBlock">
<Setter Property="Margin" Value="7,0,0,0"/>
<Setter Property="HorizontalAlignment" Value="Left"/>
<Setter Property="VerticalAlignment" Value="Center"/>
</Style>
<Style TargetType="ComboBox" x:Key="SPComboBox">
<Setter Property="Margin" Value="0,3.25,0,3.25"/>
<Setter Property="Width" Value="125"/>
<Setter Property="Height" Value="25"/>
<Setter Property="HorizontalAlignment" Value="Center"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
</Style>
<Style TargetType="Ellipse" x:Key="SPEilipse">
<Setter Property="Width" Value="28"/>
<Setter Property="Height" Value="28"/>
</Style>
<Style TargetType="Button" x:Key="SPButton">
<Setter Property="Margin" Value="0,3.25,0,0"/>
<Setter Property="Width" Value="125"/>
<Setter Property="Height" Value="25"/>
<Setter Property="Padding" Value="6,1"/>
<Setter Property="Background" Value="White"/>
<Setter Property="HorizontalAlignment" Value="Center"/>
</Style>
<!--辅助样式-->
<Style TargetType="TextBox" x:Key="AutoSendNumTextBox">
<Setter Property="Width" Value="85"/>
<Setter Property="Height" Value="25"/>
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="BorderBrush" Value="Black"/>
</Style>
<Style TargetType="Button" x:Key="AssistButton">
<Setter Property="Height" Value="25"/>
<Setter Property="Background" Value="White"/>
<Setter Property="BorderBrush" Value="Black"/>
</Style>
</ResourceDictionary>
</Application.Resources>
</Application>
C#
1
https://gitee.com/leojim/OSerialPort.git
git@gitee.com:leojim/OSerialPort.git
leojim
OSerialPort
OSerialPort
master

搜索帮助