C
C#7mo ago
Pjamaica

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);
}
}
}
0 Replies
No replies yetBe the first to reply to this messageJoin