Merge pull request #752 from yangjieshao/main
修复了NumPad对NumericUpDown和IPv4Box的支持
This commit is contained in:
@@ -1,10 +1,14 @@
|
||||
using System;
|
||||
using Avalonia;
|
||||
using Avalonia;
|
||||
using Avalonia.Dialogs;
|
||||
using Avalonia.Media;
|
||||
using System;
|
||||
using System.Runtime.Versioning;
|
||||
|
||||
namespace Ursa.Demo.Desktop;
|
||||
|
||||
[SupportedOSPlatform("windows")]
|
||||
[SupportedOSPlatform("linux")]
|
||||
[SupportedOSPlatform("macos")]
|
||||
class Program
|
||||
{
|
||||
// Initialization code. Don't use any Avalonia, third-party APIs or any
|
||||
|
||||
@@ -21,11 +21,21 @@
|
||||
HorizontalAlignment="Stretch"
|
||||
u:NumPad.Attach="True"
|
||||
Watermark="Invoke NumPad" />
|
||||
<u:IPv4Box Width="200" u:NumPad.Attach="True" />
|
||||
<u:IPv4Box
|
||||
Width="200"
|
||||
u:NumPad.Attach="True"
|
||||
InputMode="Fast"
|
||||
ShowLeadingZero="False" />
|
||||
<u:NumericIntUpDown
|
||||
HorizontalAlignment="Stretch"
|
||||
u:NumPad.Attach="True"
|
||||
Watermark="Invoke NumPad" />
|
||||
Watermark="Invoke u:NumericIntUpDown" />
|
||||
|
||||
<NumericUpDown
|
||||
u:NumPad.Attach="True"
|
||||
ButtonSpinnerLocation="Left"
|
||||
Watermark="NumericUpDown" />
|
||||
|
||||
<Border Theme="{DynamicResource CardBorder}">
|
||||
<StackPanel>
|
||||
<TextBox Name="text" Width="200" />
|
||||
|
||||
Reference in New Issue
Block a user