Files
huadongmocaceshiyi/App.xaml

44 lines
1.8 KiB
Plaintext
Raw Normal View History

2026-03-23 17:31:25 +08:00
<Application x:Class="PLCDataMonitor.App"
2026-03-11 16:42:31 +08:00
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
2026-03-23 17:31:25 +08:00
xmlns:local="clr-namespace:PLCDataMonitor"
2026-03-11 16:42:31 +08:00
StartupUri="MainWindow.xaml">
<Application.Resources>
2026-03-23 17:31:25 +08:00
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="Themes/Generic.xaml" />
</ResourceDictionary.MergedDictionaries>
2026-03-24 19:34:22 +08:00
<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>
2026-03-23 17:31:25 +08:00
</ResourceDictionary>
2026-03-24 19:34:22 +08:00
2026-03-11 16:42:31 +08:00
</Application.Resources>
</Application>