How to Update ObservableCollection Item Dynamically in MAUI

I have a CollectionView layer that takes 2 variables. One of them should be updated dynamically, but I couldn’t figure out how to do it. I am accessing ObservableCollection via ModelView and changing the value of the variable but it is not updating on the screen. Thanks for helping. Here is my sample code <CollectionView… Read More How to Update ObservableCollection Item Dynamically in MAUI

How to use MAUI IAppInfo with Microsoft.Extensions.DependencyInjection

I’ve been using my own little AppInfo class with Microsoft.Extensions.DependencyInjection, but ran into a cross-platform issue with it, so now I want to switch to using the built-in MAUI AppInfo, but I’m having issues with getting it registered in the DI. So, the code I have working with my own class was (just the relevant… Read More How to use MAUI IAppInfo with Microsoft.Extensions.DependencyInjection

Collection View Clicked not working in .NET MAUI

I have added a collection view in my .NET MAUI application where I have used the following code inside my collection view. <Border Padding="10,0,10,0" Margin="3,3,3,3" StrokeShape="RoundRectangle 5,5,5,5" BackgroundColor="White"> <Grid RowSpacing="5"> <Grid.RowDefinitions> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> </Grid.RowDefinitions> <Frame Grid.Row="0" HeightRequest="200" WidthRequest="250" CornerRadius="0" Padding="0" IsClippedToBounds="True"> <Image Source="{Binding FullImageUrl}" Aspect="Fill"/> </Frame> <Label Grid.Row="1" FontSize="Subtitle"… Read More Collection View Clicked not working in .NET MAUI

How to set a xaml elements IsVisible property to true if a bound boolean property is false?

I’m wondering if or how I can set the IsVisible property of a xaml element to true if the boolean value of a bound property is false? Depending on the value of a boolean property I want to conditionally render different elements in the view. This is my code: <ContentPage … x:Name="page"> <ListView BindingContext="{x:Reference page}"… Read More How to set a xaml elements IsVisible property to true if a bound boolean property is false?

Time Picker Value not Binging with View model In MAUI .net

I’m Trying to Bind Time picker value with View model using Communitytook.mvvm. But my picker value is not getting it displays 12.00 AM continuously. Xaml file <TimePicker Time="{Binding Time1,Mode=TwoWay}" FontSize="Medium" Grid.Column="0" Grid.Row="1" x:Name="time1" IsEnabled="{Binding Time1IsEnabled,Mode=TwoWay}"/> <TimePicker Time="{Binding Time2,Mode=TwoWay}" FontSize="Medium" Grid.Column="1" Grid.Row="1" x:Name="time2" IsEnabled="{Binding Time2IsEnabled,Mode=TwoWay}"/> Viewmodel.cs namespace CRUDappMAUI.ViewModel { public partial class AddLeaveViewModel : ObservableObject {… Read More Time Picker Value not Binging with View model In MAUI .net

I am trying to implement a ICommand on a tableselection in C#/MAUI, but it seems that I never enter the command when debugging

I am sorry or asking this question, I know there are similar questions in this community that I tried that did not ix my problem. Essentially I have a view, called MainPage.xaml, which contains this code: <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui&quot; xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml&quot; xmlns:local="clr-namespace:VideoDemos.Views" x:Class="VideoDemos.Views.MainPage" Title="Home Page"> … <TableView Intent="Settings"> <TableRoot> <TableSection> <ImageCell Text="Add new shot" Detail="Add a new… Read More I am trying to implement a ICommand on a tableselection in C#/MAUI, but it seems that I never enter the command when debugging