12345678910111213141516171819202122232425262728 |
- <UserControl x:Class="Курсовой_проект_3._1.UserControls.LimitedTextBlock"
- 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:Курсовой_проект_3._1.UserControls"
- mc:Ignorable="d"
- d:DesignHeight="100" d:DesignWidth="250">
- <Grid Background="White">
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*" />
- <ColumnDefinition Width="Auto" />
- </Grid.ColumnDefinitions>
- <Label Content="{Binding Title}" FontSize="{Binding TitleFontSize}"/>
- <Label Grid.Column="1">
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="{Binding ElementName=txtLimitedInput, Path=Text.Length}" />
- <TextBlock Text="/"/>
- <TextBlock Text="{Binding MaxLength}" />
- </StackPanel>
- </Label>
- <TextBox MaxLength="{Binding MaxLength}" Grid.Row="1" Grid.ColumnSpan="2" Name="txtLimitedInput" ScrollViewer.VerticalScrollBarVisibility="Auto" TextWrapping="Wrap" />
- </Grid>
- </UserControl>
|