Skip to content

Instantly share code, notes, and snippets.

@beginnerapps
beginnerapps / StartupPage.xaml
Created February 18, 2024 17:16
StartupPage
<?xml version="1.0" encoding="UTF-8" ?>
<view:ContentPageBase
x:Class="BingoMania.Features.Startup.StartupPage"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://schemas.microsoft.com/dotnet/2021/maui/design"
xmlns:local="clr-namespace:BingoMania.Features.Startup"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:view="clr-namespace:BingoMania.Framework.Views"
x:DataType="local:StartupPageViewModel"
@beginnerapps
beginnerapps / StartupPageViewModel.cs
Created February 18, 2024 17:14
StartupPageViewModel
using BingoMania.Framework.Views;
using Dawn;
using Microsoft.Maui.Controls;
using ReactiveUI;
using System.Reactive.Disposables;
using System.Reactive.Linq;
using System.Threading.Tasks;
namespace BingoMania.Features.Startup
{
@beginnerapps
beginnerapps / EnvironmentContext.cs
Created February 18, 2024 16:44
EnvironmentContext Android
using BingoMania.Features.Environment;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BingoMania.Platforms.Android
{
@beginnerapps
beginnerapps / EnvironmentContext.cs
Created February 18, 2024 16:43
EnvironmentContext iOS
using BingoMania.Features.Environment;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BingoMania.Platforms.iOS
{
@beginnerapps
beginnerapps / IocRegistrationExtensions.cs
Created February 18, 2024 16:17
IocRegistrationExtensions
using BingoMania.Features.Database;
using BingoMania.Features.Startup;
using BingoMania.Framework.Navigation;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Maui.Controls;
using Microsoft.Maui.Hosting;
namespace BingoMania
{
internal static class IocRegistrationExtensions
@beginnerapps
beginnerapps / MauiProgram.cs
Last active February 18, 2024 05:53
MauiProgram Setup
using Microsoft.Extensions.Logging;
using Microsoft.Maui.Controls.Hosting;
using Microsoft.Maui.Hosting;
namespace BingoMania;
public static class MauiProgram
{
//1. Passing MauiAppBuilder builder as an argument to be supplied from Platform Specific Project so that
// We can register Platform Specific Services to our IOC container