Files
Semi.Avalonia/demo/Semi.Avalonia.Demo/Pages/TextBoxDemo.axaml

60 lines
2.4 KiB
Plaintext
Raw Normal View History

2022-12-16 03:31:28 +08:00
<UserControl
2023-02-15 15:48:14 +08:00
x:Class="Semi.Avalonia.Demo.Pages.TextBoxDemo"
xmlns="https://github.com/avaloniaui"
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"
2024-03-24 21:56:46 +08:00
d:DesignHeight="800"
2023-02-15 15:48:14 +08:00
d:DesignWidth="800"
mc:Ignorable="d">
2022-12-16 03:31:28 +08:00
<ScrollViewer>
<StackPanel HorizontalAlignment="Left" Spacing="20">
<TextBox Width="300" />
2024-12-01 19:34:39 +08:00
<TextBox Width="300" InnerLeftContent="https://" InnerRightContent=".com" />
<TextBox Width="300" Classes="clearButton" Text="click to clear" />
<TextBox Width="300" Classes="revealPasswordButton" Text="123456" />
2022-12-16 03:31:28 +08:00
<TextBox
2023-02-15 15:48:14 +08:00
Width="300"
2024-08-07 15:30:28 +08:00
Classes="ClearButton RevealPasswordButton"
2024-12-01 19:34:39 +08:00
InnerLeftContent="https://"
InnerRightContent=".com"
2024-12-01 19:34:39 +08:00
Text="123456" />
2024-03-24 21:56:46 +08:00
<StackPanel Orientation="Horizontal">
<TextBox
2024-12-01 19:34:39 +08:00
Width="100"
2024-03-24 21:56:46 +08:00
Classes="Large"
Watermark="Large" />
<TextBox
2024-12-01 19:34:39 +08:00
Width="100"
2024-03-24 21:56:46 +08:00
Watermark="Default" />
<TextBox
2024-12-01 19:34:39 +08:00
Width="100"
2024-03-24 21:56:46 +08:00
Classes="Small"
Watermark="Small" />
</StackPanel>
<StackPanel Orientation="Horizontal">
<TextBox
2024-12-01 19:34:39 +08:00
Width="100"
2024-03-24 21:56:46 +08:00
IsEnabled="False"
Watermark="Disabled" />
<TextBox
2024-12-01 19:34:39 +08:00
Width="100"
2024-03-24 21:56:46 +08:00
Classes="Bordered"
Watermark="Bordered" />
<TextBox
2024-12-01 19:34:39 +08:00
Width="100"
2024-03-24 21:56:46 +08:00
Classes="Bordered"
IsEnabled="False" />
</StackPanel>
2024-12-01 19:34:39 +08:00
<TextBox Width="300" Classes="TextArea" Watermark="TextArea TextBox" />
<TextBox Width="300" Classes="TextArea ClearButton" Text="TextArea with ClearButton - text should be clearable" />
2024-05-14 15:18:51 +08:00
<TextBox
Width="300"
Theme="{StaticResource LooklessTextBox}"
Watermark="Lookless TextBox"
2024-12-01 19:34:39 +08:00
InnerLeftContent="https://"
2024-05-14 15:18:51 +08:00
InnerRightContent=".com" />
2022-12-16 03:31:28 +08:00
</StackPanel>
</ScrollViewer>
2024-12-01 19:34:39 +08:00
</UserControl>