Pjamaica
Pjamaica
CC#
Created by Pjamaica on 11/22/2023 in #help
Reference base in different project/dll
I want to pass "base" to a function in a different dll but I can't seem to find the correct syntax. I have tried with (Application base) but can't access CreateWindow
namespace NameOfApp
{
public partial class App : Application
{
public App()
{
InitializeComponent();
MainPage = new AppShell();
}

protected override Window CreateWindow(IActivationState activationState)
{
//this should be handled by the other DLL
var window = base.CreateWindow(activationState);
//

return DifferentDLL.SetCustomSize(base);
}
}
}
namespace NameOfApp
{
public partial class App : Application
{
public App()
{
InitializeComponent();
MainPage = new AppShell();
}

protected override Window CreateWindow(IActivationState activationState)
{
//this should be handled by the other DLL
var window = base.CreateWindow(activationState);
//

return DifferentDLL.SetCustomSize(base);
}
}
}
1 replies
CC#
Created by Pjamaica on 1/24/2023 in #help
How to change the icon for Android in a Maui/Blazor application?
Net 7.0, latest visual studio preview. I have a simple (beginner) one page Maui/Blazor app that is working fine with the default icon and default splash screen. (both windows and android with emulator and a real device connected with USB cable) I have created a custom icon and changed the project file <MauiIcon Include="Resources\AppIcon\coaster.png" /> This works on windows, but android gives an error: invalid file path '...Debug\net7.0-android\res\appicon\coaster.png'. I have tried to create new folders under android/resources, but I can't get it to compile. The default .svg icon works without a problem. Any hints?
2 replies