Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 89864

Help with SlideOverKit

$
0
0

I'm trying to put a QuickInnerMenu in certain pages but I can't see it, what am I missing?

My xaml menu...
<?xml version="1.0" encoding="utf-8" ?>

My c# looks like this...

    using Xamarin.Forms;
    using Xamarin.Forms.Xaml;
    using SlideOverKit;

    namespace DecksApp.Views
    {     
   [XamlCompilation(XamlCompilationOptions.Compile)]
   public partial class slide : SlideMenuView
   {
    public slide()
    {
        InitializeComponent();
        var mainLayout = new StackLayout
        {
            Spacing = 15,
            Children = {
                new Image {
                    Source = "Happy.png",
                    WidthRequest = 25,
                    HeightRequest = 25,
                },
                new Image {
                    Source = "Home.png",
                    WidthRequest = 25,
                    HeightRequest = 25,
                },
                new Image {
                    Source = "MessageFilled.png",
                    WidthRequest = 25,
                    HeightRequest = 25,
                },
                new Image {
                    Source = "Settings.png",
                    WidthRequest = 25,
                    HeightRequest = 25,
                },
            }
        };
        // In this case the IsFullScreen must set false
        this.IsFullScreen = false;
        this.BackgroundViewColor = Color.Transparent;

        // You must set BackgroundColor, 
        // and you cannot put another layout with background color cover the whole View
        // otherwise, it cannot be dragged on Android
        this.BackgroundColor = Color.FromHex("#C82630");
        mainLayout.Orientation = StackOrientation.Horizontal;
        mainLayout.Children.Insert(0, new Image
        {
            Source = "DoubleLeft.png",
            WidthRequest = 25,
            HeightRequest = 25,
        });
        mainLayout.Padding = new Thickness(5, 0);
        this.WidthRequest = 200;
        this.HeightRequest = 50;
        this.DraggerButtonWidth = 30;
        this.TopMargin = 30;
       Content = mainLayout;
    }

    }
   }

   On the page I want it to appear I called it like this: 

             using Plugin.Messaging;
             using System;
             using Xamarin.Forms.OpenWhatsApp;
            using Xamarin.Forms.Xaml;
            using SlideOverKit;

             namespace DecksApp.Views
            {
           [XamlCompilation(XamlCompilationOptions.Compile)]
           public partial class Deck12 : MenuContainerPage
          {
          public Deck12()
          {
          InitializeComponent();

         }

        protected override void OnAppearing()
        {
        base.OnAppearing();
        this.SlideMenu = new slide();
         }...

the page loads properly images are at the proper folder but the additional menu is just not there, I'm using shell by the way don't know if that affects my process, thanks guys :(


Viewing all articles
Browse latest Browse all 89864

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>