You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Downloaded sample code from https://github.com/dotnet/maui-samples/tree/main/8.0/UserInterface/Views/CollectionViewDemos. Tried to run CollectionView sample code under Windows emulator and the menu on the MainPage did not work as expected. Under windows when the app starts I click a menu item and are taken to the proper page. When I return to menu and click on another menu item, nothing happens. This happens under Windows emulator. On Android app works as expected. Not building for Apple. I checked community and the closes article I found #2003 did not answer my question.
<ListViewItemsSource="{x:Static local:PageDataViewModel.All}"ItemSelected="OnListViewItemSelected"HasUnevenRows="True"><!--Allow rows to adjust height based on content --><ListView.ItemTemplate><DataTemplate><ViewCell><Frame Margin="0,0,0,10"Padding="0"HasShadow="False"BorderColor="Transparent"><StackLayout><Label Text="{Binding Title}"FontSize="Medium"VerticalOptions="Start"/><Label Text="{Binding Description}"FontSize="Small"TextColor="Gray"LineBreakMode="WordWrap"VerticalOptions="Start"/></StackLayout></Frame></ViewCell></DataTemplate></ListView.ItemTemplate></ListView>
That menu is a TableView, and apparently once you invoke one event, you can't invoke another one, even if it's a different command. I don't think the issue you linked is related to this though: The construction of that view is different.
@mthanson8333
I have tried below code its works.
Return to menu and click on other menu items. Its working <TableView x:Name="tableList" Intent="Menu"> <TableRoot> <TableSection Title="Layout"> <TextCell Command="{Binding Path=BindingContext.NavigateCommand, Source={x:Reference tableList}}" CommandParameter="{x:Type views:VerticalListTextPage}" Detail="Text" Text="Vertical list" /> </TableSection> </TableRoot> </TableView>
Description
Downloaded sample code from https://github.com/dotnet/maui-samples/tree/main/8.0/UserInterface/Views/CollectionViewDemos. Tried to run CollectionView sample code under Windows emulator and the menu on the MainPage did not work as expected. Under windows when the app starts I click a menu item and are taken to the proper page. When I return to menu and click on another menu item, nothing happens. This happens under Windows emulator. On Android app works as expected. Not building for Apple. I checked community and the closes article I found #2003 did not answer my question.
Steps to Reproduce
Link to public reproduction project repository
https://github.com/dotnet/maui-samples/tree/main/8.0/UserInterface/Views/CollectionViewDemos
Version with bug
8.0.82 SR8.2
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
Windows 11 version 22631.4249
Did you find any workaround?
Yes. MainPage.Xaml
MainPage.cs:
PageDataViewModel.cs
Relevant log output
No response
The text was updated successfully, but these errors were encountered: