alielie
2026-04-23 ef52fd6fd07508883dce4eb002acda59f0169e59
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:ui="clr-namespace:HMI.UI;assembly=HMI.UI"
             xmlns:local="clr-namespace:HMI.Base">
    <Style x:Key="simpleMaskControl" TargetType="local:SimpleMaskControl">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="local:SimpleMaskControl">
                    <Grid>
                        <ContentPresenter Content="{TemplateBinding Content}"/>
 
                        <ui:MaskControl x:Name="mask"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
 
    <Style x:Key="pluginMaskControl" TargetType="local:PluginMaskControl">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="local:PluginMaskControl">
                    <Grid>
                        <ContentPresenter Content="{TemplateBinding Content}"/>
 
                        <ui:MaskControl x:Name="mask"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>