Wizard page on the right side using Xamarin.Forms

I created the main parts page on the left using Xamarin.Forms, how about creating the same for the right?

Below is a sample code for the left slider,

public class App { static MasterDetailPage MDPage; public static Page GetMainPage() { return MDPage = new MasterDetailPage { Master = new ContentPage { Title = "Master", BackgroundColor = Color.Silver, Icon = Device.OS == TargetPlatform.iOS ? "menu.png" : null, Content = new StackLayout { Padding = new Thickness(5, 50), Children = { Link("A"), Link("B"), Link("C") } }, }, Detail = new NavigationPage(new ContentPage { Title = "A", Content = new Label { Text = "A" } }), }; } static Button Link(string name) { var button = new Button { Text = name, BackgroundColor = Color.FromRgb(0.9, 0.9, 0.9) }; button.Clicked += delegate { MDPage.Detail = new NavigationPage(new ContentPage { Title = name, Content = new Label { Text = name } }); MDPage.IsPresented = false; }; return button; } } 
+8
source share
3 answers

This does not exist in the Xamarin.Forms control Xamarin.Forms , but you can create your own, with renderers for each platform.

You will find the necessary information about http://developer.xamarin.com/guides/cross-platform/xamarin-forms/custom-renderer/

+2
source

Solution here

this is now supported on xamarin 3.0 and higher forms; no custom renderers are required !! or third-party libraries.

The trick is to force the location to RTL while the flow direction is working, it is difficult to get the top navigation bar to follow, the solution to this problem is below, it works ... let me know if you have any problems on older ios versions of iOS8 and less.

xamarin forms the main RTL page with the RTL / LTR hamburger icon

0
source

You can do this with ToolbarItems in Xamarin formats. Toolbar elements will appear on the right.

You can find additional information at the following links: http://codeworks.it/blog/?p=232

-1
source

Source: https://habr.com/ru/post/975275/


All Articles