Example #1
0
        protected virtual HamburgerButtonElement CreateHamburgerButton()
        {
            HamburgerButtonElement hamburgerButtonElement = new HamburgerButtonElement(this);

            hamburgerButtonElement.StretchHorizontally = true;
            hamburgerButtonElement.AutoSizeMode        = RadAutoSizeMode.FitToAvailableSize;
            hamburgerButtonElement.TextAlignment       = ContentAlignment.MiddleLeft;
            hamburgerButtonElement.Click += new EventHandler(this.Element_Click);
            return(hamburgerButtonElement);
        }
Example #2
0
        protected override void CreateChildElements()
        {
            base.CreateChildElements();
            this.headerElement = this.CreateHeaderElement();
            this.Children.Add((RadElement)this.headerElement);
            this.hamburgerButton = this.CreateHamburgerButton();
            this.Children.Add((RadElement)this.hamburgerButton);
            this.StripAlignment = this.RightToLeft ? StripViewAlignment.Right : StripViewAlignment.Left;
            (this.ItemsParent as RadPageViewElementBase).SetBorderAndFillOrientation(this.RightToLeft ? PageViewContentOrientation.Horizontal180 : PageViewContentOrientation.Horizontal, false);
            this.OnPropertyChanged(new RadPropertyChangedEventArgs(RadPageViewStripElement.StripAlignmentProperty, RadPageViewStripElement.StripAlignmentProperty.GetMetadata((RadObject)this), (object)StripViewAlignment.Top, (object)StripViewAlignment.Left));
            this.ItemContentOrientation = PageViewContentOrientation.Horizontal;
            this.ItemFitMode           |= StripViewItemFitMode.FillHeight;
            this.ContentArea.Shape      = (ElementShape)null;
            this.ContentArea.Padding    = new Padding(0);
            this.ItemContainer.Padding  = new Padding(0);
            this.ItemContainer.Children.Remove((RadElement)this.ItemContainer.ButtonsPanel);
            this.ItemContainer.MinSize = new Size(this.CollapsedPaneWidth, 0);
            int num = (int)this.ItemContainer.ItemLayout.SetValue(RadPageViewStripElement.ItemFitModeProperty, (object)StripViewItemFitMode.FillHeight);

            this.Children.Remove((RadElement)this.Header);
            this.Children.Remove((RadElement)this.Footer);
        }