Пример #1
0
 protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
 {
     base.OnPropertyChanged(e);
     if (e.Property == RadElement.RightToLeftProperty)
     {
         RadPageViewElementBase itemsParent = this.ItemsParent as RadPageViewElementBase;
         if (this.RightToLeft)
         {
             int num = (int)this.SetDefaultValueOverride(RadPageViewStripElement.StripAlignmentProperty, (object)StripViewAlignment.Right);
             itemsParent.SetBorderAndFillOrientation(PageViewContentOrientation.Horizontal180, false);
         }
         else
         {
             int num = (int)this.SetDefaultValueOverride(RadPageViewStripElement.StripAlignmentProperty, (object)StripViewAlignment.Left);
             itemsParent.SetBorderAndFillOrientation(PageViewContentOrientation.Horizontal, false);
         }
     }
     else
     {
         if (e.Property != RadPageViewNavigationViewElement.CollapsedPaneWidthProperty)
         {
             return;
         }
         this.EnsureDisplayMode(this.DisplayMode);
     }
 }
Пример #2
0
        protected internal virtual void SetBorderAndFillOrientation(PageViewContentOrientation orientation, bool recursive)
        {
            if (this.borderAndFillOrientation == orientation)
            {
                return;
            }

            this.borderAndFillOrientation = orientation;
            this.FillPrimitiveImpl.InvalidateFillCache(RadPageViewElement.ItemContentOrientationProperty);

            if (recursive)
            {
                foreach (RadElement child in this.Children)
                {
                    RadPageViewElementBase pageElement = child as RadPageViewElementBase;
                    if (pageElement != null)
                    {
                        pageElement.SetBorderAndFillOrientation(orientation, recursive);
                    }
                }
            }
        }