Skip to content
This repository was archived by the owner on Apr 29, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ public GroupedRadioButtonsPageCode()
Children = { appleRadioButton, bananaRadioButton, pineappleRadioButton, otherFruitRadioButton }
};

// All of the RadioButtons in this StackLayout will automatically be given the GroupName 'fruits`.
fruitStackLayout.SetValue(RadioButtonGroup.GroupNameProperty, "fruits");
// All of the RadioButtons in this StackLayout will automatically be given the GroupName 'fruits'.
RadioButtonGroup.SetGroupName(fruitStackLayout, "fruits");

Title = "Grouped RadioButtons demo (code)";
Content = new StackLayout
Expand Down
35 changes: 35 additions & 0 deletions UserInterface/Xaminals/Xaminals/AppShell.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
xmlns:sys="clr-namespace:System;assembly=netstandard"
xmlns:views="clr-namespace:Xaminals.Views"
x:Class="Xaminals.AppShell"
x:Name="shell"
FlyoutBackgroundImage="photo.jpg"
FlyoutBackgroundImageAspect="AspectFill"
FlyoutHeaderBehavior="CollapseOnScroll">
Expand Down Expand Up @@ -98,6 +99,40 @@
</DataTemplate>
</Shell.FlyoutFooterTemplate>-->

<!-- FlyoutContent -->
<!-- Not required, just an example -->
<!--<Shell.FlyoutContent>
<CollectionView BindingContext="{x:Reference shell}"
IsGrouped="True"
ItemsSource="{Binding FlyoutItems}">
<CollectionView.ItemTemplate>
<DataTemplate>
<Label Text="{Binding Title}"
TextColor="White"
FontSize="Large" />
</DataTemplate>
</CollectionView.ItemTemplate>
</CollectionView>
</Shell.FlyoutContent>-->

<!-- Template for FlyoutContent -->
<!-- Not required, just an example -->
<!--<Shell.FlyoutContentTemplate>
<DataTemplate>
<CollectionView BindingContext="{x:Reference shell}"
IsGrouped="True"
ItemsSource="{Binding FlyoutItems}">
<CollectionView.ItemTemplate>
<DataTemplate>
<Label Text="{Binding Title}"
TextColor="White"
FontSize="Large" />
</DataTemplate>
</CollectionView.ItemTemplate>
</CollectionView>
</DataTemplate>
</Shell.FlyoutContentTemplate>-->

<!-- Template each FlyoutItem -->
<!-- <Shell.ItemTemplate>
<DataTemplate>
Expand Down