🤷♂️
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var builder = MauiApp.CreateBuilder(); builder.UseMauiApp<App>() | |
| #if __ANDROID__ | |
| .ConfigureMauiHandlers(handlers => | |
| { | |
| handlers.AddCompatibilityRenderer(typeof(Microsoft.Maui.Controls.BoxView), typeof(MyBoxRenderer)); | |
| #endif | |
| }); | |
| return builder; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #if __ANDROID__ | |
| Microsoft.Maui.Handlers.ButtonHandler.ButtonMapper["MyCustomization"] = (handler, view) => | |
| { | |
| handler.NativeView.SetBackgroundColor(Android.Graphics.Color.Green); | |
| }; | |
| #endif | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Microsoft.Maui; | |
| using Microsoft.Maui.Hosting; | |
| public static class MauiProgram | |
| { | |
| public static MauiApp CreateMauiApp() | |
| { | |
| var builder = MauiApp.CreateBuilder(); | |
| builder | |
| .UseMauiApp<App>() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Microsoft.Maui; | |
| using Microsoft.Maui.Controls; | |
| public partial class App : Application | |
| { | |
| public App() | |
| { | |
| InitializeComponent(); | |
| MainPage = new MainPage(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Microsoft.Maui; | |
| using Microsoft.Maui.Hosting; | |
| public static class MauiProgram | |
| { | |
| public static MauiApp CreateMauiApp() | |
| { | |
| var builder = MauiApp.CreateBuilder(); | |
| builder | |
| .UseMauiApp<App>() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Program | |
| { | |
| public static void Main(string[] args) | |
| { | |
| CreateHostBuilder(args).Build().Run(); | |
| } | |
| public static IHostBuilder CreateHostBuilder(string[] args) => | |
| Host.CreateDefaultBuilder(args) | |
| .ConfigureWebHostDefaults(webBuilder => |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static void MapText(MyButtonHandler handler, IMyButton button) | |
| { | |
| handler.NativeView?.SetTitle(button.Text, UIControlState.Normal); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static PropertyMapper<IMyButton, MyButtonHandler> MyButtonMapper = new PropertyMapper<IMyButton, MyButtonHandler >(ViewHandler.ViewMapper) | |
| { | |
| [nameof(ICustomEntry.Text)] = MapText, | |
| [nameof(ICustomEntry.TextColor)] = MapTextColor | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| protected override UIButton CreateNativeView() | |
| { | |
| return new UIButton(); | |
| } |
NewerOlder