|
| 1 | +<Application x:Class="MetaCom.App" |
| 2 | + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 3 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 4 | + xmlns:local="clr-namespace:MetaCom" |
| 5 | + StartupUri="Views\MainWindow.xaml"> |
| 6 | + <Application.Resources> |
| 7 | + <ResourceDictionary> |
| 8 | + |
| 9 | + <!--GroupBox Header Style Template(Base)--> |
| 10 | + <Style x:Key="GroupBoxHeaderStyle" TargetType="HeaderedContentControl"> |
| 11 | + <Setter Property="OverridesDefaultStyle" Value="True" /> |
| 12 | + <Setter Property="SnapsToDevicePixels" Value="True" /> |
| 13 | + <Setter Property="Template"> |
| 14 | + <Setter.Value> |
| 15 | + <ControlTemplate TargetType="{x:Type HeaderedContentControl}"> |
| 16 | + <ContentPresenter ContentSource="Header"/> |
| 17 | + </ControlTemplate> |
| 18 | + </Setter.Value> |
| 19 | + </Setter> |
| 20 | + </Style> |
| 21 | + |
| 22 | + <!--MainWindows XAML - Menu style--> |
| 23 | + <Style TargetType="MenuItem" x:Key="MainMenuItem"> |
| 24 | + <Setter Property="Margin" Value="0,3,0,3"/> |
| 25 | + <Setter Property="Padding" Value="5,3,5,3"/> |
| 26 | + </Style> |
| 27 | + <Style TargetType="Button" x:Key="MainButton"> |
| 28 | + <Setter Property="Width" Value="35"/> |
| 29 | + <Setter Property="Background" Value="White"/> |
| 30 | + <Setter Property="BorderBrush" Value="White"/> |
| 31 | + </Style> |
| 32 | + |
| 33 | + <!--MainWindows XAML - Status style--> |
| 34 | + <Style TargetType="StatusBarItem" x:Key="SBStatusBarItem"> |
| 35 | + <Setter Property="Foreground" Value="Black"/> |
| 36 | + </Style> |
| 37 | + |
| 38 | + <!--MainWindows XAML - Recv and Send style--> |
| 39 | + <Style TargetType="TextBox" x:Key="RSTextBox"> |
| 40 | + <Setter Property="TextWrapping" Value="Wrap"/> |
| 41 | + <Setter Property="AcceptsReturn" Value="True"/> |
| 42 | + <Setter Property="Background" Value="#FCFCFC"/> |
| 43 | + </Style> |
| 44 | + <Style TargetType="Button" x:Key="SendButton"> |
| 45 | + <Setter Property="Height" Value="25"/> |
| 46 | + <Setter Property="Background" Value="White"/> |
| 47 | + <Setter Property="BorderBrush" Value="Black"/> |
| 48 | + </Style> |
| 49 | + |
| 50 | + <!--MainWindows XAML - Config Block style--> |
| 51 | + <Style TargetType="TextBlock" x:Key="ConfigTextBlock"> |
| 52 | + <Setter Property="HorizontalAlignment" Value="Left"/> |
| 53 | + <Setter Property="VerticalAlignment" Value="Center"/> |
| 54 | + </Style> |
| 55 | + <Style TargetType="ComboBox" x:Key="ConfigComboBox"> |
| 56 | + <Setter Property="Height" Value="25"/> |
| 57 | + <Setter Property="HorizontalAlignment" Value="Stretch"/> |
| 58 | + <Setter Property="ItemContainerStyle"> |
| 59 | + <Setter.Value> |
| 60 | + <Style TargetType="ComboBoxItem"> |
| 61 | + <Setter Property="Height" Value="25"/> |
| 62 | + <Setter Property="VerticalContentAlignment" Value="Center"/> |
| 63 | + </Style> |
| 64 | + </Setter.Value> |
| 65 | + </Setter> |
| 66 | + </Style> |
| 67 | + <Style TargetType="Ellipse" x:Key="ConfigEilipse"> |
| 68 | + <Setter Property="Width" Value="24"/> |
| 69 | + <Setter Property="Height" Value="24"/> |
| 70 | + </Style> |
| 71 | + <Style TargetType="Button" x:Key="ConfigButton"> |
| 72 | + |
| 73 | + <Setter Property="Height" Value="25"/> |
| 74 | + <Setter Property="Background" Value="#f0f0f0"/> |
| 75 | + <Setter Property="BorderBrush" Value="Black"/> |
| 76 | + <Setter Property="HorizontalAlignment" Value="Stretch"/> |
| 77 | + |
| 78 | + </Style> |
| 79 | + |
| 80 | + <!--MainWindows XAML - Signal Block style--> |
| 81 | + <Style TargetType="TextBlock" x:Key="HDTextBlock"> |
| 82 | + <Setter Property="Margin" Value="0,6,0,2"/> |
| 83 | + <Setter Property="HorizontalAlignment" Value="Center"/> |
| 84 | + <Setter Property="VerticalAlignment" Value="Center"/> |
| 85 | + </Style> |
| 86 | + <Style TargetType="Ellipse" x:Key="HDEilipse"> |
| 87 | + <Setter Property="Margin" Value="0,6,0,2"/> |
| 88 | + <Setter Property="Width" Value="13"/> |
| 89 | + <Setter Property="Height" Value="13"/> |
| 90 | + </Style> |
| 91 | + |
| 92 | + <!--MainWindows XAML - Assist Block style--> |
| 93 | + <Style TargetType="CheckBox" x:Key="AssistCheckBox"> |
| 94 | + <Setter Property="VerticalContentAlignment" Value="Center"/> |
| 95 | + <Setter Property="VerticalAlignment" Value="Center"/> |
| 96 | + </Style> |
| 97 | + <Style TargetType="TextBox" x:Key="AutoSendNumTextBox"> |
| 98 | + |
| 99 | + <Setter Property="HorizontalContentAlignment" Value="Center"/> |
| 100 | + <Setter Property="VerticalContentAlignment" Value="Center"/> |
| 101 | + <Setter Property="BorderBrush" Value="Black"/> |
| 102 | + </Style> |
| 103 | + <Style TargetType="Button" x:Key="AssistButton"> |
| 104 | + <Setter Property="Height" Value="23"/> |
| 105 | + <Setter Property="Background" Value="#f0f0f0"/> |
| 106 | + <Setter Property="BorderBrush" Value="Black"/> |
| 107 | + <Setter Property="HorizontalAlignment" Value="Stretch"/> |
| 108 | + </Style> |
| 109 | + |
| 110 | + <!--Update XAML Style--> |
| 111 | + <Style TargetType="Button" x:Key="UpdateButton"> |
| 112 | + <Setter Property="Padding" Value="18,6"/> |
| 113 | + <Setter Property="Background" Value="White"/> |
| 114 | + </Style> |
| 115 | + </ResourceDictionary> |
| 116 | + </Application.Resources> |
| 117 | +</Application> |
0 commit comments