Add project files.
This commit is contained in:
18
ControlMyMonitorManagement/Style/MonCtrlStyle.xaml
Normal file
18
ControlMyMonitorManagement/Style/MonCtrlStyle.xaml
Normal file
@@ -0,0 +1,18 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="clr-namespace:CMM.Management.Control">
|
||||
|
||||
<Style TargetType="{x:Type local:MonCtrl}">
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type local:MonCtrl}">
|
||||
<StackPanel x:Name="sp" Orientation="Horizontal" HorizontalAlignment="Left">
|
||||
<TextBlock Text="{Binding Mon.MonitorName, Mode=OneWay, NotifyOnSourceUpdated=True, NotifyOnValidationError=True,
|
||||
RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type local:MonCtrl}}}"/>
|
||||
</StackPanel>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
</ResourceDictionary>
|
||||
Reference in New Issue
Block a user