Baseflow / Baseflow/Xamarin-Sidebar

Blank menu content when used with Xamarin Forms

Open
#31 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
112
Forks
67
PR merge metrics
No merged PRs in 30d

Description

Here's how I am setting up the SideBarController for one of my Xamarin Forms pages (via a renderer):

My Renderer:

```
public override void ViewDidLoad()
{
base.ViewDidLoad();

var nativeView = NativeView;
if (nativeView != null)
{
var rootViewController = UIApplication.SharedApplication.KeyWindow.RootViewController;
Sidebar = new SidebarController(rootViewController, this, new MenuViewController());
}
}
```

When I slide the menu out, it is a blank white view. I've tried other options, like just newing up a view controller and passing that in as the root view controller, but I see the same results. I've tried moving this code to the OnElementChanged method, but still the same problem.

Have you or anyone else had any success when integrating with Xamarin Forms?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.