Files
huadongmocaceshiyi/App.xaml
2026-03-24 19:34:22 +08:00

44 lines
1.8 KiB
XML

<Application x:Class="PLCDataMonitor.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:PLCDataMonitor"
StartupUri="MainWindow.xaml">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="Themes/Generic.xaml" />
</ResourceDictionary.MergedDictionaries>
<Style TargetType="local:AlarmScrollingText">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="local:AlarmScrollingText">
<Border x:Name="PART_ClipBorder"
Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
CornerRadius="4"
ClipToBounds="True"
Padding="5,5">
<TextBlock x:Name="PART_TextBlock"
Text="{TemplateBinding Text}"
FontSize="14"
FontWeight="Bold"
Foreground="Red"
TextWrapping="NoWrap"
VerticalAlignment="Center"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ResourceDictionary>
</Application.Resources>
</Application>