Posts

Showing posts with the label xamarin

Food Delivery App - Basic Setup

App.xaml <Application xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:local="clr-namespace:FoodDeliveryApp" x:Class="FoodDeliveryApp.App"> <Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="Resources/Styles/Colors.xaml" /> <ResourceDictionary Source="Resources/Styles/Styles.xaml" /> </ResourceDictionary.MergedDictionaries> <Color x:Key="BackgroundColor">#F1EFEF</Color> <Color x:Key="Primary">#004AAD</Color> <Color x:Key="Secondary">#FF914D</Color> <Color x:Key="OldLace">#FDF7E4</Color> <Color x:Key="

Food Delivery - Login Page with animation

Image
Login page with animation Food Delivery app - animated login page Please, support my blog by clicking on our sponsors ad! Follow basic setup from  here You will get all page of this app from FoodDeliveryApp Menu on top. <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="FoodDeliveryApp.Pages.Authentication.Login" xmlns:mct="clr-namespace:CommunityToolkit.Maui.Behaviors;assembly=CommunityToolkit.Maui" Title="Login" BackgroundColor="{x:StaticResource BackgroundColor}" Shell.NavBarIsVisible="False"> <ContentPage.Behaviors> <mct:StatusBarBehavior StatusBarColor="{x:StaticResource Primary}"></mct:StatusBarBehavior> </ContentPage.Behaviors> <Grid RowDefinitions="Auto,Auto,Auto,Auto,Auto&

.NET MAUI Handler

Image
  Before learning.net maui handler you should know about .Net MAUI . Please, support my blog by clicking on our sponsors ad! This is explain in this video In xamarin forms, we are using renderer to customize the controls, this renderers are code in all project to update the property, but now .net MAUI has come with single project so it is providing handler to customize the control, so we are using handler instead of renderer in .net maui. What is Handler and Mappers? Mappers Mappers are a key concept in .NET MAUI handlers, usually providing a property mapper and sometimes a command mapper, which maps the cross-platform control’s API to the native view’s API. This mappers used dictionary to store the data. Handler It is a concept of maping cross platform control to native controls. Each control has an interface, each control that implement interface is called virtual views. Handler map this virtual views to control of each platform control which is known as native views