public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { transitions.Add (new SlideInOnTopTransition ()); transitions.Add (new FallDownTransition()); transitions.Add (new OpenDoorTransition()); transitions.Add (new PushTransition()); transitions.Add (new RevealTransition()); transitions.Add (new ReverseSlideOutTransition()); transitions.Add (new RotateInTransition()); transitions.Add (new ScaleDownPusherTransition()); transitions.Add (new ScaleUpTransition()); transitions.Add (new SlideAlongTransition()); transitions.Add (new EmptyTransition()); ViewGroup rootView = (ViewGroup)inflater.Inflate(Resource.Layout.fragment_side_drawer_features, null); drawer = new RadSideDrawer (Activity); drawer.MainContent = this.LoadMainContent(inflater); drawer.DrawerContent = this.LoadDrawerContent(inflater); drawer.AddChangeListener (this); rootView.AddView (drawer); return rootView; }
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; }
public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { transitions.Add(new SlideInOnTopTransition()); transitions.Add(new FallDownTransition()); transitions.Add(new OpenDoorTransition()); transitions.Add(new PushTransition()); transitions.Add(new RevealTransition()); transitions.Add(new ReverseSlideOutTransition()); transitions.Add(new RotateInTransition()); transitions.Add(new ScaleDownPusherTransition()); transitions.Add(new ScaleUpTransition()); transitions.Add(new SlideAlongTransition()); transitions.Add(new EmptyTransition()); ViewGroup rootView = (ViewGroup)inflater.Inflate(Resource.Layout.fragment_side_drawer_features, null); drawer = new RadSideDrawer(Activity); drawer.MainContent = this.LoadMainContent(inflater); drawer.DrawerContent = this.LoadDrawerContent(inflater); drawer.AddChangeListener(this); rootView.AddView(drawer); return(rootView); }
public SideDrawerGettingStartedCSharp() { // >> sidedrawer-gettingstarted-csharp var drawerContent = new StackLayout(); drawerContent.Children.Add(new Button { Text = "Mail" }); drawerContent.Children.Add(new Button { Text = "Calendar" }); drawerContent.Children.Add(new Button { Text = "People" }); drawerContent.Children.Add(new Button { Text = "Tasks" }); var sideDrawer = new RadSideDrawer { MainContent = new Label { Text = "Main content" }, DrawerContent = drawerContent, DrawerLength = 200 }; // << sidedrawer-gettingstarted-csharp Content = sideDrawer; }
protected override void OnAttached() { try { RadSideDrawer nativeSideDrawer = this.Control as RadSideDrawer; nativeSideDrawer.TouchTargetThreshold = 0; } catch { } }
private void OnNativeSideDrawerLoaded(object sender, Windows.UI.Xaml.RoutedEventArgs e) { RadSideDrawer nativeSideDrawer = (RadSideDrawer)sender; Border swipeBorder = ElementTreeHelper.FindVisualDescendant <Border>(nativeSideDrawer); if (swipeBorder != null) { swipeBorder.IsHitTestVisible = false; } nativeSideDrawer.Loaded -= this.OnNativeSideDrawerLoaded; }
public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { ViewGroup rootView = (ViewGroup)inflater.Inflate(Resource.Layout.fragment_side_drawer_features, null); drawer = (RadSideDrawer)rootView.FindViewById(Resource.Id.sideDrawer); drawer.MainContent = this.LoadMainContent(inflater); drawer.DrawerContent = this.LoadDrawerContent(inflater); drawer.AddChangeListener(this); return(rootView); }
public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { ViewGroup rootView = (ViewGroup)inflater.Inflate(Resource.Layout.fragment_side_drawer_features, null); drawer = (RadSideDrawer)rootView.FindViewById(Resource.Id.sideDrawer); drawer.MainContent = this.LoadMainContent(inflater); drawer.DrawerContent = this.LoadDrawerContent(inflater); drawer.AddChangeListener (this); return rootView; }
internal void NavigateToPage(HomeViewModel homeViewModel, RadSideDrawer drawer, PageType pageType) { if (pageType == PageType.Home && homeViewModel.IsProcessing) { homeViewModel.PageTitle = AppResources.ProcessingTitle; drawer.MainContent = new ProcessingView(); } else { homeViewModel.PageTitle = pageType.ToString(); drawer.MainContent = pageType.AsView(); } }
public bool OnDrawerClosing(RadSideDrawer p0) { return(false); }
public void OnDrawerClosed(RadSideDrawer p0) { }
public bool OnDrawerOpening(RadSideDrawer p0) { return false; }
public void OnDrawerOpened(RadSideDrawer p0) { }
public bool OnDrawerClosing(RadSideDrawer p0) { return false; }
public SideDrawerGettingStartedCSharp() { // >> sidedrawer-gettingstarted-csharp var drawerContent = new StackLayout(); drawerContent.Children.Add(new Button { Text = "Mail" }); drawerContent.Children.Add(new Button { Text = "Calendar" }); drawerContent.Children.Add(new Button { Text = "People" }); drawerContent.Children.Add(new Button { Text = "Tasks" }); var sideDrawer = new RadSideDrawer { MainContent = new Label { Text = "Main content" }, DrawerContent = drawerContent, DrawerLength = 200 }; // << sidedrawer-gettingstarted-csharp Grid.SetRow(sideDrawer, 1); var hamburgerButton = new Button { WidthRequest = 32, HeightRequest = 32, BorderWidth = 0, BorderRadius = 0, BorderColor = Color.Transparent, BackgroundColor = Color.Transparent }; if (Device.RuntimePlatform == Device.UWP) { hamburgerButton.Image = (FileImageSource) ImageSource.FromFile("Assets\\HamburgerMenu.png"); } else { hamburgerButton.Image = (FileImageSource) ImageSource.FromFile("HamburgerMenu.png"); } hamburgerButton.Clicked += (sender, args) => { sideDrawer.IsOpen = !sideDrawer.IsOpen; }; this.Content = new Grid { RowDefinitions = { new RowDefinition { Height = GridLength.Auto }, new RowDefinition() }, Children = { new StackLayout { Orientation = StackOrientation.Horizontal, Spacing = 10, Children = { hamburgerButton, new Label { VerticalOptions = LayoutOptions.Center, Text = "SideDrawer" } } }, sideDrawer } }; }
internal void Initialize(RadSideDrawer sideDrawer) { this.drawer = sideDrawer; }
internal void NavigateToProcessing(RadSideDrawer drawer) { App.ViewModel.Home.PageTitle = "Tagging"; drawer.MainContent = new ProcessingView(); }
public bool OnDrawerOpening(RadSideDrawer p0) { return(false); }
/// <summary> /// Initializes a new instance of the RadSideDrawerAutomationPeer class. /// </summary> /// <param name="owner">The RadSideDrawer that is associated with this RadSideDrawerAutomationPeer.</param> public RadSideDrawerAutomationPeer(RadSideDrawer owner) : base(owner) { }