Relative Content

Tag Archive for c#xamlmaui

How to have different layout in collection view depends on platform MAUI

<CollectionView> <– this should be for android–> <CollectionView.ItemsLayout> <GridItemsLayout/> </CollectionView.ItemsLayout> <– this should be for ios–> <CollectionView.ItemsLayout> <LinearItemsLayout/> </CollectionView.ItemsLayout> <CollectionView.ItemTemplate> <DataTemplate> <Label/> </DataTemplate> </CollectionView.ItemTemplate> </CollectionView> I want to have that layout without using the “#” to separate the android or ios is there something like OnPlatform. c# xaml maui

Using AppThemeBinding to display different images in .NET MAUI

I want to display a different image depending on the system theme mode. I’m creating a simple money counter app where I use a CollectionView to display various fields in which the user type the quantity of a certain bill/coin, and it shows the total value. Each item also shows an image of the current bill/coin. I created two versions for each item, one for dark mode, one for light mode.

MAUI.Net Binding

<CollectionView Grid.Column=”2″ ItemsSource=”{Binding Commands.Commands}”> <CollectionView.ItemsLayout> <LinearItemsLayout Orientation=”Horizontal”/> </CollectionView.ItemsLayout> <CollectionView.ItemTemplate> <DataTemplate x:DataType=”{x:Type base:RelayCommand}”> <ImageButton Padding=”0″ CornerRadius=”0″ Command=”{Binding Command}”/> </DataTemplate> </CollectionView.ItemTemplate> </CollectionView> if i write this Command Property: Command=”{Binding Command}” im getting the fallowing error at compiletime: The input string is in the wrong format. But if i write it while im debugging its working. But cant […]

How to make custom info window in .NET MAUI maps?

I am using .NET MAUI , and i want to customize the map pin info window design and add some more thing like image , rating and name. I am using Microsoft Maui Controls Map nuget package for map . Any one know how to make ,please help.