test: add headless test for canselect handling.

This commit is contained in:
rabbitism
2025-07-11 11:26:05 +08:00
parent fb9f03d63b
commit cbf88a1aea
5 changed files with 194 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
<UserControl 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"
xmlns:canSelectTests="clr-namespace:HeadlessTest.Ursa.Controls.NavMenuTests.CanSelectTests"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:DataType="canSelectTests:TestView2ViewModel"
x:CompileBindings="True"
x:Class="HeadlessTest.Ursa.Controls.NavMenuTests.CanSelectTests.TestView2">
<u:NavMenu Name="Menu" ItemsSource="{Binding MenuItems}" SelectionChanging="NavMenu_OnSelectionChanging"/>
</UserControl>