2022-04-11 10:32:03 -07:00
|
|
|
<UserControl x:Class="MPF.UI.Core.UserControls.UserInput"
|
2021-02-27 21:33:37 -08:00
|
|
|
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"
|
2021-08-04 14:17:53 -07:00
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" mc:Ignorable="d"
|
|
|
|
|
d:DesignHeight="450" d:DesignWidth="800" x:Name="userInput">
|
2021-02-27 21:33:37 -08:00
|
|
|
<Grid>
|
|
|
|
|
<Grid.ColumnDefinitions>
|
2022-01-06 22:19:06 -08:00
|
|
|
<ColumnDefinition Width="0.75*" />
|
2021-02-27 22:32:03 -08:00
|
|
|
<ColumnDefinition Width="1.25*" />
|
2021-02-27 21:33:37 -08:00
|
|
|
</Grid.ColumnDefinitions>
|
2021-08-04 14:17:53 -07:00
|
|
|
|
|
|
|
|
<Label Grid.Row="0" Grid.Column="0"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
HorizontalAlignment="Right"
|
|
|
|
|
Content="{Binding ElementName=userInput, Path=Label}" />
|
2021-02-27 21:33:37 -08:00
|
|
|
|
2021-08-04 14:17:53 -07:00
|
|
|
<TextBox Grid.Row="0" Grid.Column="1"
|
|
|
|
|
Height="{Binding ElementName=userInput, Path=TextHeight}"
|
|
|
|
|
HorizontalAlignment="Stretch"
|
|
|
|
|
Text="{Binding ElementName=userInput, Path=Text}"
|
|
|
|
|
AcceptsTab="{Binding ElementName=userInput, Path=Tab}"
|
|
|
|
|
AcceptsReturn="{Binding ElementName=userInput, Path=Enter}"
|
|
|
|
|
TextWrapping="{Binding ElementName=userInput, Path=TextWrapping}"
|
2022-01-07 09:04:12 -08:00
|
|
|
IsReadOnly="{Binding ElementName=userInput, Path=IsReadOnly}"
|
2021-08-04 14:17:53 -07:00
|
|
|
VerticalContentAlignment="{Binding ElementName=userInput, Path=VerticalContentAlignmentValue}"
|
2021-12-30 20:45:15 -08:00
|
|
|
HorizontalScrollBarVisibility="{Binding ElementName=userInput, Path=HorizontalScrollBarVisibility}"
|
|
|
|
|
VerticalScrollBarVisibility="{Binding ElementName=userInput, Path=VerticalScrollBarVisibility}"/>
|
2021-02-27 21:33:37 -08:00
|
|
|
</Grid>
|
|
|
|
|
</UserControl>
|