TextBox 컨트롤
.NET프로그래밍/Silverlight 3.0 2009. 12. 1. 10:30 |[MainPage.xaml]
<UserControl x:Class="RiaTextBox.MainPage"
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="300" d:DesignWidth="400">
<Grid x:Name="LayoutRoot" Background="White">
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<TextBox Grid.Column="0" Grid.Row="0" FontSize="30" />
<TextBox Grid.Column="1" Grid.Row="0" FontSize="30"
AcceptsReturn="True" HorizontalScrollBarVisibility="Auto" />
<TextBox IsReadOnly="True" Text="읽기 전용" Grid.Column="0" Grid.Row="1" FontSize="30" />
<TextBox IsEnabled="False" Text="비 활성화" Grid.Column="1" Grid.Row="1" FontSize="30" />
<TextBox Grid.Column="0" Grid.Row="2" FontSize="30"
SelectionBackground="Silver" AcceptsReturn="True" />
<TextBox Grid.Column="1" Grid.Row="2" FontSize="20" TextWrapping="Wrap" />
</Grid>
</UserControl>
[실행결과]
'.NET프로그래밍 > Silverlight 3.0' 카테고리의 다른 글
TextBlock 컨트롤 : 텍스트 출력 (0) | 2009.12.01 |
---|---|
PasswordBox 컨트롤 (0) | 2009.12.01 |
Label 컨트롤 (0) | 2009.12.01 |
Button컨트롤 (0) | 2009.12.01 |
CanvasClip - Canvas영역에서 일부분만 잘라내어 보여주기 (0) | 2009.12.01 |