I am creating an application using xf. On the windows platform, we are using WPF. The secondary toolbar overlays the title and is horizontally displayed. I would like to make the secondary menu display vertically. (Image attached)
I have attempted to create a CustomNavigationPageRenderer.
At this point I am unable to determine how to access the ToolBarItems and have them display vertically.
[assembly: ExportRenderer(typeof(CustomNavigationPage), typeof(CustomNavigationPageRender))]
namespace SDPNativeClient.WPF
{
public class CustomNavigationPageRender: NavigationPageRenderer
{
protected override void OnElementChanged(ElementChangedEventArgs<NavigationPage> e)
{
base.OnElementChanged(e);
var x = e;
}
protected override void OnElementPropertyChanged(object sender, PropertyChangedEventArgs e)
{
base.OnElementPropertyChanged(sender, e);
if (e.PropertyName.Equals("Renderer")) {
var x = this.Control;
}
//var page = this.Element as NavigationPage;
//if (page != null && _toolbar != null)
//{
// Typeface tf = Typeface.CreateFromAsset(Android.App.Application.Context.Assets, "MyFont.ttf");
// TextView title = (TextView)_toolbar.FindViewById(Resource.Id.toolbar_title);
// title.SetText(page.CurrentPage.Title, TextView.BufferType.Normal);
// title.SetTypeface(tf, TypefaceStyle.Normal);
//}
}
}
}
thank you,
Tommy McConnell