feat: add new class inheritance mechanism.

This commit is contained in:
rabbitism
2024-08-12 13:33:27 +08:00
parent b58c8f071e
commit 74ad61515f
5 changed files with 124 additions and 16 deletions

View File

@@ -10,7 +10,7 @@
x:Class="Ursa.Demo.Pages.AutoCompleteBoxDemo">
<StackPanel HorizontalAlignment="Left" Spacing="20">
<StackPanel.Styles>
<Style Selector="AutoCompleteBox">
<Style Selector="u|AutoCompleteBox">
<Setter Property="Width" Value="300" />
<Setter Property="ItemsSource">
<Binding Path="States" />
@@ -25,6 +25,7 @@
<u:AutoCompleteBox
Watermark="Please select a State"
Classes="ClearButton"
ValueMemberBinding="{ReflectionBinding Name}" />
<u:AutoCompleteBox
Classes="Large"
@@ -43,6 +44,5 @@
InnerLeftContent="https://"
InnerRightContent=".com"
ValueMemberBinding="{ReflectionBinding Name}" />
</StackPanel>
</UserControl>