Skip to content

Instantly share code, notes, and snippets.

@LucioMSP LucioMSP/SideDrawerCode.cs
Last active Nov 12, 2019

Embed
What would you like to do?
Example of how to implement Telerik SideDrawer control in Xamarin.Forms applications
using Xamarin.Forms;
using Telerik.XamarinForms.Primitives;
namespace TrkSideDrawer.Views
{
public class SideDrawerCode : ContentPage
{
public SideDrawerCode()
{
var drawerContent = new StackLayout();
drawerContent.Margin = new Thickness(18, 30);
drawerContent.Children.Add(new Button { Text = "Home" });
drawerContent.Children.Add(new Button { Text = "Calendar" });
drawerContent.Children.Add(new Button { Text = "News" });
drawerContent.Children.Add(new Button { Text = "Tasks" });
var sideDrawer = new RadSideDrawer
{
MainContent = new Label { Text = "Side Menu", Margin = new Thickness(15, 50),
},
DrawerContent = drawerContent,
DrawerLength = 200
};
Content = sideDrawer;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.