misc: remove EnumSelector notice.

add AOT compilation comment.
This commit is contained in:
Zhang Dian
2024-08-06 00:10:54 +08:00
parent b69502886f
commit 61d9462db2
2 changed files with 5 additions and 1 deletions

View File

@@ -7,6 +7,11 @@
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<BuiltInComInteropSupport>true</BuiltInComInteropSupport> <BuiltInComInteropSupport>true</BuiltInComInteropSupport>
<AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault> <AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
<!-- Uncomment below to enable Native AOT compilation-->
<!--
<PublishAot>true</PublishAot>
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
-->
</PropertyGroup> </PropertyGroup>
<PropertyGroup> <PropertyGroup>

View File

@@ -12,7 +12,6 @@
x:DataType="vm:EnumSelectorDemoViewModel" x:DataType="vm:EnumSelectorDemoViewModel"
mc:Ignorable="d"> mc:Ignorable="d">
<StackPanel> <StackPanel>
<u:Banner Type="Warning" Header="Native AOT non-compatible" Content="EnumSelector highly relies on reflection, it is not compatible with NativeAOT compilation. " Classes="Warning"></u:Banner>
<ToggleSwitch Name="description" Content="Show Description" /> <ToggleSwitch Name="description" Content="Show Description" />
<TextBlock Text="Select Type" /> <TextBlock Text="Select Type" />
<ComboBox <ComboBox