$ xcrun simctl list --json
$ xcrun simctl delete unavailable
using Microsoft.Extensions.Logging; | |
using Microsoft.Maui.LifecycleEvents; | |
#if WINDOWS | |
using Microsoft.UI.Xaml.Media; | |
#endif | |
namespace MauiApp1; | |
public static class MauiProgram | |
{ |
#if WINDOWS | |
private Microsoft.UI.Windowing.AppWindow GetAppWindow(MauiWinUIWindow window) | |
{ | |
var handle = WinRT.Interop.WindowNative.GetWindowHandle(window); | |
var id = Microsoft.UI.Win32Interop.GetWindowIdFromWindow(handle); | |
var appWindow = Microsoft.UI.Windowing.AppWindow.GetFromWindowId(id); | |
return appWindow; | |
} | |
#endif |
#if WINDOWS | |
builder.ConfigureLifecycleEvents(events => | |
{ | |
// Make sure to add "using Microsoft.Maui.LifecycleEvents;" in the top of the file | |
events.AddWindows(windowsLifecycleBuilder => | |
{ | |
windowsLifecycleBuilder.OnWindowCreated(window => | |
{ | |
window.ExtendsContentIntoTitleBar = false; | |
var handle = WinRT.Interop.WindowNative.GetWindowHandle(window); |
<?xml version="1.0" encoding="UTF-8" ?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
</dict> | |
</plist> |
using Android.App; | |
using Android.Content; | |
using AndroidX.Core.App; | |
using Firebase.Messaging; | |
namespace FCMApp.Android; | |
[Service(Exported = false)] | |
[IntentFilter(new[] { "com.google.firebase.MESSAGING_EVENT" })] | |
public class FCMService : FirebaseMessagingService |
Hi Github users,
You can now signed your commits on Github using at least Git 2.18.0 and Github Desktop 1.6.1.
Generate a GPG key and add it to Github: https://help.github.com/articles/generating-a-new-gpg-key (if you don't want to type a passphrase on every commit, you need to press "Enter" when the console will prompt you to type a passphrase)
Configure Git properly by editing the .gitconfig
file using the command line git config --global --edit
in a terminal, then replace YOUR_GITHUB_EMAIL, YOUR_SIGNING_KEY and GPG_BINARY_PATH with your data
********************************************************************** | |
** Visual Studio 2022 Developer PowerShell v17.1.0-pre.3.0 | |
** Copyright (c) 2021 Microsoft Corporation | |
********************************************************************** | |
PS C:\Users\joverslu\source\repos\MauiApp14> dotnet publish -f:net6.0-ios -c:Release /p:ServerAddress=192.168.1.77 /p:ServerUser=jfversluis /p:TcpPort=58181 /p:ArchiveOnBuild=true /p:_DotNetRootRemoteDirectory=/Users/jfversluis/Library/Caches/Xamarin/XMA/SDKs/dotnet/ | |
Microsoft (R) Build Engine version 17.1.0-preview-21572-15+513f59ce4 for .NET | |
Copyright (C) Microsoft Corporation. All rights reserved. | |
Determining projects to restore... | |
All projects are up-to-date for restore. |
// MainPage.xaml.cs | |
public RowDefinitionCollection MyRows { get; set; } | |
public MainPage() | |
{ | |
InitializeComponent(); | |
// Magic happening here | |
MyRows = (RowDefinitionCollection)new RowDefinitionCollectionTypeConverter().ConvertFromInvariantString("Auto, 100, *, 50"); |
// MainPage.xaml.cs | |
public RowDefinitionCollection MyRows => new RowDefinitionCollection() { | |
new RowDefinition { Height = GridLength.Auto }, | |
new RowDefinition { Height = 100 }, | |
new RowDefinition { Height = GridLength.Star }, | |
new RowDefinition { Height = 50 }, | |
}; | |
public MainPage() |