Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
r3dgraphix committed Oct 29, 2022
1 parent 7d6e7ad commit dd3e5f3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion MauiBaseVS/MauiBaseVS.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net6.0-android;net6.0-ios;net6.0-maccatalyst</TargetFrameworks>
<TargetFrameworks>net6.0-maccatalyst</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net6.0-windows10.0.19041.0</TargetFrameworks>
<!-- Uncomment to also build the tizen app. You will need to install tizen by following this: https://github.com/Samsung/Tizen.NET -->
<!-- <TargetFrameworks>$(TargetFrameworks);net6.0-tizen</TargetFrameworks> -->
Expand Down
24 changes: 13 additions & 11 deletions MauiBaseVS/Views/MainPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
HeightRequest="200"
HorizontalOptions="Center" />

<CollectionView x:Name="TestCollectionView" SelectionMode="Multiple" SelectionChangedCommand="{Binding MultipleSelectionCommand}" SelectionChangedCommandParameter="{Binding SelectedItems, Mode=TwoWay, Source={x:Reference TestCollectionView}}" ItemsSource="{Binding DetailsList}">
<CollectionView HeightRequest="200" x:Name="TestCollectionView" SelectionMode="Multiple" SelectionChangedCommand="{Binding MultipleSelectionCommand}" SelectionChangedCommandParameter="{Binding SelectedItems, Mode=TwoWay, Source={x:Reference TestCollectionView}}" ItemsSource="{Binding DetailsList}">
<CollectionView.ItemTemplate>
<DataTemplate x:DataType="model:UserDetails">
<StackLayout Spacing="20" Padding="20" Orientation="Horizontal">
Expand All @@ -35,16 +35,18 @@

<Label Text="=========================================================================" FontSize="Large" />

<CollectionView x:Name="Test1CollectionView" SelectionMode="Multiple" SelectionChangedCommand="{Binding MultipleSelectionCommand}" SelectionChangedCommandParameter="{Binding SelectedItems, Mode=TwoWay, Source={x:Reference Test1CollectionView}}" ItemsSource="{Binding DetailsList}">
<CollectionView.ItemTemplate>
<DataTemplate x:DataType="model:UserDetails1">
<StackLayout Spacing="20" Padding="20" Orientation="Horizontal">
<Label Text="{Binding Name}"/>
<Label Text="{Binding Location}"/>
</StackLayout>
</DataTemplate>
</CollectionView.ItemTemplate>
</CollectionView>
<StackLayout>
<CollectionView HeightRequest="200" x:Name="Test1CollectionView" SelectionMode="Multiple" SelectionChangedCommand="{Binding MultipleSelectionCommand}" SelectionChangedCommandParameter="{Binding SelectedItems, Mode=TwoWay, Source={x:Reference Test1CollectionView}}" ItemsSource="{Binding DetailsList}">
<CollectionView.ItemTemplate>
<DataTemplate x:DataType="model:UserDetails1">
<StackLayout Spacing="20" Padding="20" Orientation="Horizontal">
<Label Text="{Binding Name}"/>
<Label Text="{Binding Location}"/>
</StackLayout>
</DataTemplate>
</CollectionView.ItemTemplate>
</CollectionView>
</StackLayout>

<Button
x:Name="CounterBtn"
Expand Down

0 comments on commit dd3e5f3

Please sign in to comment.