1+ <?xml version =" 1.0" encoding =" utf-8" ?>
2+ <ContentPage xmlns =" http://schemas.microsoft.com/dotnet/2021/maui"
3+ xmlns : x =" http://schemas.microsoft.com/winfx/2009/xaml"
4+ x : Class =" Microsoft.Maui.Controls.Xaml.UnitTests.Issues.Maui31995"
5+ Title =" Maui31995"
6+ x : Name =" thisControl24" >
7+ <VerticalStackLayout BindableLayout.ItemsSource=" {Binding ItemsSource, Source={x:Reference thisControl24}}" >
8+ <BindableLayout .ItemTemplate>
9+ <DataTemplate >
10+ <Grid >
11+ <Grid .Triggers>
12+ <DataTrigger TargetType =" Grid" Binding =" {Binding Selected}" Value =" False" >
13+ <Setter Property =" VisualStateManager.VisualStateGroups" >
14+ <VisualStateGroupList >
15+ <VisualStateGroup Name =" CommonStates" >
16+ <VisualState Name =" Normal" >
17+ <VisualState .Setters>
18+ <Setter Property =" BackgroundColor" Value =" {Binding BackgroundColor, Source={x:Reference thisControl24}}" />
19+ </VisualState .Setters>
20+ </VisualState >
21+ <VisualState Name =" PointerOver" >
22+ <VisualState .Setters>
23+ <Setter Property =" BackgroundColor" Value =" {Binding BackgroundColor, Source={x:Reference thisControl24}}" />
24+ </VisualState .Setters>
25+ </VisualState >
26+ </VisualStateGroup >
27+ </VisualStateGroupList >
28+ </Setter >
29+ </DataTrigger >
30+ <DataTrigger TargetType =" Grid" Binding =" {Binding Selected}" Value =" True" >
31+ <Setter Property =" VisualStateManager.VisualStateGroups" >
32+ <VisualStateGroupList >
33+ <VisualStateGroup Name =" CommonStates" >
34+ <VisualState Name =" Normal" >
35+ <VisualState .Setters>
36+ <Setter Property =" BackgroundColor" Value =" {Binding BackgroundColor, Source={x:Reference thisControl24}}" />
37+ </VisualState .Setters>
38+ </VisualState >
39+ </VisualStateGroup >
40+ </VisualStateGroupList >
41+ </Setter >
42+ </DataTrigger >
43+ </Grid .Triggers>
44+ <Label Text =" {Binding .}" />
45+
46+ </Grid >
47+ </DataTemplate >
48+ </BindableLayout .ItemTemplate>
49+ </VerticalStackLayout >
50+ </ContentPage >
0 commit comments