You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

36 lines
1.8 KiB

<UserControl x:Class="SunlightCentralizedControlManagement_SCCM_.UserControls.RoilingTextBlock"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:SunlightCentralizedControlManagement_SCCM_.UserControls"
mc:Ignorable="d"
DataContext="{Binding RelativeSource={RelativeSource Self}}"
d:DesignWidth="300" Height="30" >
<UserControl.Template>
<ControlTemplate TargetType="UserControl">
<Border BorderBrush="White"
BorderThickness="1"
Padding="2"
Background="White">
<Canvas x:Name="innerCanvas"
Width="Auto"
Height="Auto"
Background="White"
ClipToBounds="True">
<TextBlock x:Name="textBlock"
Width="Auto"
Height="Auto"
ClipToBounds="True"
TextAlignment="Center"
Canvas.Left="{Binding Left,Mode=TwoWay}"
Canvas.Top="{Binding Top,Mode=TwoWay}"
FontSize="{Binding FontSize,Mode=TwoWay}"
Text="{Binding Text,Mode=TwoWay}"
Foreground="{Binding Foreground,Mode=TwoWay}"/>
</Canvas>
</Border>
</ControlTemplate>
</UserControl.Template>
</UserControl>