|
<UserControl x:Class="HierarchyControl.MyUserControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
d:DesignHeight="46" d:DesignWidth="120" xmlns:dataInput="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.Input">
<Grid x:Name="LayoutRoot" Height="46" Width="120">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="5" />
<ColumnDefinition Width="50" />
<ColumnDefinition Width="60" />
<ColumnDefinition Width="5" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="5" />
<RowDefinition Height="18" />
<RowDefinition Height="18" />
<RowDefinition Height="5" />
</Grid.RowDefinitions>
<Border Grid.ColumnSpan="4" Grid.RowSpan="4"
CornerRadius="7" BorderBrush="DarkBlue" BorderThickness="1">
<Border.Background>
<LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
<GradientStop Color="#FFDCDFEB" Offset="0" />
<GradientStop Color="White" Offset="1" />
</LinearGradientBrush>
</Border.Background>
</Border>
<dataInput:Label Name="NameLabel" Grid.Column="1" Grid.Row="1" Content="Name" HorizontalContentAlignment="Right" />
<TextBlock Name="txtName" Grid.Column="2" Grid.Row="1" HorizontalAlignment="Left" Text="Name" VerticalAlignment="Top" />
<dataInput:Label Name="DateLabel" Grid.Column="1" Grid.Row="2" Content="Birth" HorizontalContentAlignment="Right" />
<TextBlock Name="txtDate" Grid.Column="2" Grid.Row="2" HorizontalAlignment="Left" Text="Date" />
</Grid>
</UserControl>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Enjoying life developing mobile device software for Contractors Apps and Ezi App.
I also teach C#, Java and Project Management a couple of evenings a week.
Prior to moving to DCB, I'd been a Windows software developer for nearly 15 years