-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainPage.xaml
65 lines (58 loc) · 2.45 KB
/
MainPage.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage
x:Class="CollectionViewFilterIssue.MainPage"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:appnav="using:CollectionViewFilterIssue"
xmlns:telerik="http://schemas.telerik.com/2022/xaml/maui"
x:DataType="appnav:MainPage">
<Grid Padding="30,0" RowDefinitions="Auto, Auto, Auto, *">
<Image
Grid.Row="0"
Aspect="AspectFit"
HeightRequest="185"
SemanticProperties.Description="dot net bot in a race car number eight"
Source="dotnet_bot.png" />
<Button
x:Name="CounterBtn"
Grid.Row="1"
Clicked="OnCounterClicked"
HorizontalOptions="Fill"
SemanticProperties.Hint="Counts the number of times you click"
Text="Hide items 5, 6, 7" />
<Button
x:Name="BtnShowItems"
Grid.Row="2"
Clicked="BtnShowItems_Clicked"
HorizontalOptions="Fill"
SemanticProperties.Hint="Counts the number of times you click"
Text="Show items 5, 6, 7" />
<telerik:RadCollectionView
x:Name="listView"
Grid.Row="3"
Margin="0,5,5,0"
ItemsSource="{Binding MenuItems}"
SelectionMode="Single">
<telerik:RadCollectionView.SortDescriptors>
<telerik:PropertySortDescriptor PropertyName="Index" SortOrder="Ascending" />
</telerik:RadCollectionView.SortDescriptors>
<telerik:RadCollectionView.ItemTemplate>
<DataTemplate x:DataType="appnav:MenuItem">
<telerik:RadBorder>
<Grid Padding="5,5">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="40" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Label
Grid.Column="1"
Margin="10,0,0,0"
Text="{Binding Title}"
VerticalOptions="Center" />
</Grid>
</telerik:RadBorder>
</DataTemplate>
</telerik:RadCollectionView.ItemTemplate>
</telerik:RadCollectionView>
</Grid>
</ContentPage>