30
demo/Ursa.Demo/Pages/DateTimePickerDemo.axaml
Normal file
30
demo/Ursa.Demo/Pages/DateTimePickerDemo.axaml
Normal file
@@ -0,0 +1,30 @@
|
||||
<UserControl
|
||||
x:Class="Ursa.Demo.Pages.DateTimePickerDemo"
|
||||
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"
|
||||
xmlns:u="https://irihi.tech/ursa"
|
||||
d:DesignHeight="450"
|
||||
d:DesignWidth="800"
|
||||
mc:Ignorable="d">
|
||||
<StackPanel
|
||||
Margin="20"
|
||||
HorizontalAlignment="Left"
|
||||
Spacing="20">
|
||||
<u:Form>
|
||||
<TextBox
|
||||
u:FormItem.Label="DisplayFormat"
|
||||
Name="formatBox"
|
||||
Width="300"
|
||||
Text="yyyy年MM月dd日 HH时mm分ss秒" />
|
||||
<TextBox Name="panelBox" u:FormItem.Label="Panel" Text="hh mm ss" />
|
||||
<u:DateTimePicker
|
||||
MinWidth="100"
|
||||
u:FormItem.NoLabel="True"
|
||||
Classes="ClearButton"
|
||||
DisplayFormat="{Binding #formatBox.Text}"
|
||||
PanelFormat="{Binding #panelBox.Text}" />
|
||||
</u:Form>
|
||||
</StackPanel>
|
||||
</UserControl>
|
||||
13
demo/Ursa.Demo/Pages/DateTimePickerDemo.axaml.cs
Normal file
13
demo/Ursa.Demo/Pages/DateTimePickerDemo.axaml.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using Avalonia;
|
||||
using Avalonia.Controls;
|
||||
using Avalonia.Markup.Xaml;
|
||||
|
||||
namespace Ursa.Demo.Pages;
|
||||
|
||||
public partial class DateTimePickerDemo : UserControl
|
||||
{
|
||||
public DateTimePickerDemo()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user