Xamarin Coding Tutorial
264 FOLLOWERS
Covers articles about Xamarin.Forms, Xamarin.iOS, Xamarin.Android, Custom Renderer, Xamarin Custom Control, Push Notification, Play Video From URI, Data Bindings.
Xamarin Coding Tutorial
1y ago
.NET MAUI Navigation Using Navigation Service (Enterprise App Pattern ..read more
Xamarin Coding Tutorial
1y ago
Xamarin Coding Tutorial
1y ago
This video about Uploading File In .NET MAUI Blazor App.
GitHub URL: https://github.com/mistrypragnesh40/LoginFlowBlazorApp
WebAPI : https://github.com/mistrypragnesh40/CreatingWebAPIDemo ..read more
Xamarin Coding Tutorial
2y ago
Refresh View: Add any view Inside Refresh View to achieve pull to refresh functionality. Let's go through the following examples.
Model:
Employee.cs
namespace MauiApp1.Models{public class Employee{public string Name { get; set; }public string Address { get; set; }public string Email { get; set; }}}
Views:
EmployeeListView.xaml
<?xml version="1.0" encoding="utf-8" ?><ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="MauiApp1.Views.EmployeeListView" xmlns:viewMode ..read more
Xamarin Coding Tutorial
2y ago
Write Following code to get Device ID
Android
string id = Android.Provider.Settings.Secure.GetString(Android.App.Application.Context.ContentResolver, Android.Provider.Settings.Secure.AndroidId);
iOS
string deviceID = UIDevice.CurrentDevice.IdentifierForVendor.ToString ..read more
Xamarin Coding Tutorial
2y ago
public static string PadNumbers(string input){return Regex.Replace(input, "[0-9]+", match => match.Value.PadLeft(10, '0'));}
string[] alphaNumericList = new string[] { "Field1", "Field11","Field2", "Field11","Field10", "Field1", "Field2", "Field11" };var result = alphaNumericList.OrderBy(x => PadNumbers(x));
  ..read more
Xamarin Coding Tutorial
2y ago
Packages Required
Install sqlite-net-pcl Package in your .Net MAUI Project.
Create EmployeeModel with few properties & create EmployeeService.cs Class and add logic related to adding/updating and deleting employee code.
EmployeeModel.cs
using SQLite;using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks; namespace CrudOperationMaui.Models{public class EmployeeModel{[PrimaryKey, AutoIncrement]public int ID { get; set; }public string Name { get; set; }public string Email { get; set; }publ ..read more
Xamarin Coding Tutorial
2y ago
UserNotificationCenterDelegate.cs
using System;using UserNotifications; namespace TGS_Event_App.iOS{public class UserNotificaitonCenterDelegate : UNUserNotificationCenterDelegate{public UserNotificaitonCenterDelegate(){} public override void WillPresentNotification(UNUserNotificationCenter center, UNNotification notification, Action<UNNotificationPresentationOptions> completionHandler){// Do something with the notification Console.WriteLine("Active Notification: {0}", notification); // Tell system to display the notification anyway or use// `None` to say we have handled ..read more
Xamarin Coding Tutorial
2y ago
Create BorderlessEntryWithDoneButton.cs Class in your MAUI Project
BorderlessEntryWithDoneButton.cs
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks; namespace TGS_Event_App_MAUI.Renderers{public class BorderLessEntryWithDoneButton : Entry {}}
Now Create Platform Specific Handler In App.xaml.cs File
using Microsoft.Maui;using Microsoft.Maui.Handlers;using Microsoft.Maui.Platform;using TGS_Event_App_MAUI.Renderers; namespace TGS_Event_App_MAUI; public partial class App : Application{public App(){ InitializeComponent ..read more