23 lines
1.1 KiB
XML
23 lines
1.1 KiB
XML
<UserControl x:Name="userControl" x:Class="butterflow_ui.ButterflowOption"
|
|
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:butterflow_ui"
|
|
mc:Ignorable="d"
|
|
VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch">
|
|
<UserControl.ContentTemplate>
|
|
<DataTemplate>
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<Label Grid.Column="0" Content="{Binding LabelValue, ElementName=userControl}" />
|
|
<ContentPresenter Grid.Column="1" Content="{TemplateBinding Content}" />
|
|
</Grid>
|
|
</DataTemplate>
|
|
</UserControl.ContentTemplate>
|
|
</UserControl>
|