Esempio n. 1
0
 protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
 {
     base.OnPropertyChanged(e);
     if (e.Property == IsMouseOverProperty)
     {
         EnsureNormalStateImageCached();
         SetImageIfHovered((bool)e.NewValue);
     }
     else if (e.Property == IsMouseDownProperty)
     {
         EnsureNormalStateImageCached();
         if ((bool)e.NewValue)
         {
             this.SetNewStateImage(this.ImageClicked);
         }
         else
         {
             SetImageIfHovered(this.IsMouseOver);
         }
     }
     else if (e.Property == RadButtonItem.ImageProperty)
     {
         if (!chaingingImageInternally)
         {
             this.normalStateImage = null;
             EnsureNormalStateImageCached();
         }
     }
 }
Esempio n. 2
0
        protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
        {
            base.OnPropertyChanged(e);
            if (e.Property != RadElement.RightToLeftProperty)
            {
                return;
            }
            bool newValue = (bool)e.NewValue;

            if (this.Shape != null)
            {
                this.Shape.IsRightToLeft = newValue;
            }
            if (this.DropDownButton != null && this.DropDownButton.Shape != null)
            {
                this.DropDownButton.Shape.IsRightToLeft = newValue;
            }
            if (this.DownButton != null && this.DownButton.Shape != null)
            {
                this.DownButton.Shape.IsRightToLeft = newValue;
            }
            if (this.UpButton != null && this.UpButton.Shape != null)
            {
                this.UpButton.Shape.IsRightToLeft = newValue;
            }
            if (this.SpinButtonsStackLayout == null || this.SpinButtonsStackLayout.Shape == null)
            {
                return;
            }
            this.SpinButtonsStackLayout.Shape.IsRightToLeft = newValue;
        }
Esempio n. 3
0
 private void caption_RadPropertyChanged(object sender, RadPropertyChangedEventArgs e)
 {
     if (e.Property == RadElement.BoundsProperty && this.ActiveWindow != null)
     {
         this.ActiveWindow.Bounds = this.TabPanelBounds;
     }
 }
        protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
        {
            base.OnPropertyChanged(e);
            bool flag = e.Property == RadCollapsiblePanelElement.ExpandDirectionProperty;

            if (flag)
            {
                switch ((RadDirection)e.NewValue)
                {
                case RadDirection.Left:
                case RadDirection.Right:
                    this.HeaderElement.Orientation = Orientation.Vertical;
                    break;

                case RadDirection.Up:
                case RadDirection.Down:
                    this.HeaderElement.Orientation = Orientation.Horizontal;
                    break;
                }
                if (!this.IsExpanded)
                {
                    this.SetOwnerControlBounds(new Point?(), new Size?());
                }
            }
            if (!flag && e.Property != RadElement.RightToLeftProperty)
            {
                return;
            }
            this.HeaderElement.FlipText = this.RightToLeft && this.ExpandDirectionIsHorizontal();
        }
Esempio n. 5
0
        protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
        {
            if (e.Property == RadLineItem.LineStyleProperty)
            {
                switch ((RadLineItem.LineDrawingStyle)e.NewValue)
                {
                case RadLineItem.LineDrawingStyle.Flat:
                    this.linePrimitive.NumberOfColors = 1;
                    this.UnbindBackColorProperties();
                    int num1 = (int)this.linePrimitive.BindProperty(VisualElement.BackColorProperty, (RadObject)this, RadLineItem.LineColorProperty, PropertyBindingOptions.OneWay);
                    break;

                case RadLineItem.LineDrawingStyle.Bevel:
                    this.linePrimitive.NumberOfColors = 3;
                    this.UnbindBackColorProperties();
                    int num2 = (int)this.linePrimitive.BindProperty(VisualElement.BackColorProperty, (RadObject)this, RadLineItem.LineColorProperty, PropertyBindingOptions.OneWay);
                    int num3 = (int)this.linePrimitive.BindProperty(FillPrimitive.BackColor2Property, (RadObject)this, RadLineItem.LineColor2Property, PropertyBindingOptions.OneWay);
                    int num4 = (int)this.linePrimitive.BindProperty(FillPrimitive.BackColor3Property, (RadObject)this, RadLineItem.LineColor2Property, PropertyBindingOptions.OneWay);
                    break;

                case RadLineItem.LineDrawingStyle.Emboss:
                    this.linePrimitive.NumberOfColors = 3;
                    this.UnbindBackColorProperties();
                    int num5 = (int)this.linePrimitive.BindProperty(VisualElement.BackColorProperty, (RadObject)this, RadLineItem.LineColor2Property, PropertyBindingOptions.OneWay);
                    int num6 = (int)this.linePrimitive.BindProperty(FillPrimitive.BackColor2Property, (RadObject)this, RadLineItem.LineColorProperty, PropertyBindingOptions.OneWay);
                    int num7 = (int)this.linePrimitive.BindProperty(FillPrimitive.BackColor3Property, (RadObject)this, RadLineItem.LineColorProperty, PropertyBindingOptions.OneWay);
                    break;
                }
            }
            base.OnPropertyChanged(e);
        }
Esempio n. 6
0
        protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
        {
            base.OnPropertyChanged(e);

            if (e.Property == RadPageViewStripElement.StripButtonsProperty ||
                e.Property == RadPageViewStripElement.ItemFitModeProperty)
            {
                this.UpdateButtonsVisibility();
            }

            if (e.Property == RadElement.RightToLeftProperty)
            {
                this.SuspendLayout();
                this.Children.Clear();
                if (this.RightToLeft && this.ContentOrientation != PageViewContentOrientation.Vertical270 &&
                    this.ContentOrientation != PageViewContentOrientation.Vertical90)
                {
                    this.Children.Add(this.closeButton);
                    this.Children.Add(this.itemListButton);
                    this.Children.Add(this.scrollLeftButton);
                    this.Children.Add(this.scrollRightButton);
                }
                else
                {
                    this.Children.Add(this.scrollLeftButton);
                    this.Children.Add(this.scrollRightButton);
                    this.Children.Add(this.itemListButton);
                    this.Children.Add(this.closeButton);
                }

                this.ResumeLayout(true);
            }
        }
Esempio n. 7
0
 private void explorerBarLayout_RadPropertyChanged(object sender, RadPropertyChangedEventArgs e)
 {
     if (e.Property == RadItem.BoundsProperty)
     {
         RestrictPanelWidths();
     }
 }
        protected override void OnColumnPropertyChanged(RadPropertyChangedEventArgs e)
        {
            base.OnColumnPropertyChanged(e);
            GridViewCommandColumn columnInfo = (GridViewCommandColumn)this.ColumnInfo;

            if (e.Property == GridViewCommandColumn.ImageProperty)
            {
                this.button.Image = columnInfo.Image;
            }
            else if (e.Property == GridViewColumn.ImageLayoutProperty)
            {
                this.button.ImagePrimitive.ImageLayout = columnInfo.ImageLayout;
            }
            else if (e.Property == GridViewColumn.TextImageRelationProperty)
            {
                this.button.TextImageRelation = columnInfo.TextImageRelation;
            }
            else
            {
                if (e.Property != GridViewColumn.TextAlignmentProperty)
                {
                    return;
                }
                this.button.TextAlignment = columnInfo.TextAlignment;
            }
        }
 public override void ItemStateChanged(
     RadObject senderItem,
     RadPropertyChangedEventArgs changeArgs)
 {
     if (senderItem is RadCheckBoxElement)
     {
         RadCheckBoxElement radCheckBoxElement = senderItem as RadCheckBoxElement;
         if (changeArgs != (RadPropertyChangedEventArgs)null && !radCheckBoxElement.Enabled && radCheckBoxElement.ToggleState != ToggleState.Off)
         {
             string str = "ToggleState=" + (radCheckBoxElement.ToggleState == ToggleState.On ? "On" : "Intermediate");
             this.SetItemState(senderItem, "Disabled" + (object)'.' + str);
         }
         else
         {
             base.ItemStateChanged(senderItem, changeArgs);
         }
     }
     else if (senderItem is RadRadioButtonElement)
     {
         base.ItemStateChanged(senderItem, changeArgs);
     }
     else
     {
         RadToggleButtonElement toggleButtonElement = senderItem as RadToggleButtonElement;
         if (changeArgs != (RadPropertyChangedEventArgs)null && !toggleButtonElement.Enabled && toggleButtonElement.ToggleState == ToggleState.On)
         {
             this.SetItemState(senderItem, "Disabled" + (object)'.' + "ToggleState=On");
         }
         else
         {
             base.ItemStateChanged(senderItem, changeArgs);
         }
     }
 }
Esempio n. 10
0
        protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
        {
            base.OnPropertyChanged(e);

            if (e.Property == ToggleStateProperty)
            {
                switch (this.ToggleState)
                {
                case ToggleState.Off:
                    this.OnUnchecked();
                    break;

                case ToggleState.On:
                    this.OnChecked();
                    break;

                case ToggleState.Indeterminate:
                    this.OnIndeterminate();
                    break;

                default:
                    this.OnIndeterminate();
                    break;
                }

                base.OnNotifyPropertyChanged("ToggleState");
                base.OnNotifyPropertyChanged("IsChecked");

                foreach (RadElement element in this.ChildrenHierarchy)
                {
                    element.SetValue(ToggleStateProperty, e.NewValue);
                }
            }
        }
Esempio n. 11
0
 private void stripElement_RadPropertyChanged(object sender, RadPropertyChangedEventArgs e)
 {
     if (e.Property == CommandBarStripElement.VisibleInCommandBarProperty)
     {
         this.Visible = this.stripElement.VisibleInCommandBar;
     }
 }
Esempio n. 12
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);
     }
 }
Esempio n. 13
0
 protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
 {
     base.OnPropertyChanged(e);
     if (e.Property == RadElement.IsMouseOverElementProperty && this.IsInValidState(true))
     {
         if (this.TreeViewElement.HotTracking)
         {
             int num1 = (int)this.SetValue(TreeNodeElement.HotTrackingProperty, e.NewValue);
         }
         else
         {
             int num2 = (int)this.SetValue(TreeNodeElement.HotTrackingProperty, (object)false);
         }
         this.ApplyStyle();
         this.OnFormatting();
     }
     else if (e.Property == TreeNodeElement.IsCurrentProperty)
     {
         this.ApplyStyle();
     }
     else
     {
         if (e.Property != LightVisualElement.NumberOfColorsProperty || e.NewValueSource != ValueSource.Style)
         {
             return;
         }
         this.ApplyStyle();
     }
 }
Esempio n. 14
0
        protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
        {
            base.OnPropertyChanged(e);
            if (e.Property == LightVisualElement.ImageAlignmentProperty)
            {
                switch ((ContentAlignment)e.NewValue)
                {
                case ContentAlignment.TopLeft:
                case ContentAlignment.MiddleLeft:
                case ContentAlignment.BottomLeft:
                    this.imageContent.StretchHorizontally        = false;
                    this.verticalStackLayout.StretchHorizontally = true;
                    break;

                case ContentAlignment.TopCenter:
                case ContentAlignment.MiddleCenter:
                case ContentAlignment.BottomCenter:
                    this.imageContent.StretchHorizontally        = true;
                    this.verticalStackLayout.StretchHorizontally = true;
                    break;

                case ContentAlignment.TopRight:
                case ContentAlignment.MiddleRight:
                case ContentAlignment.BottomRight:
                    this.imageContent.StretchHorizontally        = true;
                    this.verticalStackLayout.StretchHorizontally = false;
                    break;
                }
            }
            if (e.Property != RadElement.ContainsMouseProperty)
            {
                return;
            }
            this.IsMouseOver = this.ContainsMouse;
        }
Esempio n. 15
0
        public override void OnPropertyChange(RadElement element, RadPropertyChangedEventArgs e)
        {
            if ((bool)e.NewValue == true)
            {
                this.item = element as RadListVisualItem;

                if (!this.popupShown)
                {
                    comboPopup = item.ElementTree.Control as DropDownPopupForm;
                    if (comboPopup == null)
                    {
                        return;
                    }

                    comboPopup.PopupClosing += comboPopup_PopupClosing;
                    if (comboPopup.IsDisplayed)
                    {
                        this.popupShown = true;
                        this.popup      = new ZoomPopup(element, new SizeF(1.1f, 1.1f));
                        this.popup.BeginInit();
                        this.WireEvents();
                        this.popup.EndInit();
                        this.popup.Show();
                    }
                }
            }
        }
Esempio n. 16
0
 private void tabStripElement_RadPropertyChanged(object sender, RadPropertyChangedEventArgs e)
 {
     if (e.Property == RadTabStripElement.BackColorProperty)
     {
         this.RootElement.BackColor = this.tabStripElement.BackColor;
     }
 }
Esempio n. 17
0
        protected override void OnEnabledChanged(RadPropertyChangedEventArgs e)
        {
            base.OnEnabledChanged(e);
            int num = (int)this.SetValue(RadButtonItem.IsPressedProperty, (object)false);

            this.StopTimer();
        }
Esempio n. 18
0
 protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
 {
     if (e.Property == ArrowPrimitive.DirectionProperty)
     {
         if (this.Direction == ArrowDirection.Left || this.Direction == ArrowDirection.Right)
         {
             if (this.AutoSize)
             {
                 this.MinSize = OverflowPrimitive.MinHorizontalSize;
             }
             else
             {
                 this.Size = OverflowPrimitive.MinHorizontalSize;
             }
         }
         else if (this.AutoSize)
         {
             this.MinSize = OverflowPrimitive.MinVerticalSize;
         }
         else
         {
             this.Size = OverflowPrimitive.MinVerticalSize;
         }
     }
     base.OnPropertyChanged(e);
 }
Esempio n. 19
0
 private void explorerBarLayout_RadPropertyChanged(object sender, RadPropertyChangedEventArgs e)
 {
     if (e.Property == RadItem.BoundsProperty)
     {
         SetHostsBounds();
     }
 }
Esempio n. 20
0
 protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
 {
     base.OnPropertyChanged(e);
     if (this.TableElement == null)
     {
         return;
     }
     if (e.Property == GridRowElement.IsSelectedProperty || e.Property == GridRowElement.IsCurrentProperty)
     {
         this.UpdateInfo();
     }
     else if (e.Property == RadElement.IsMouseOverElementProperty)
     {
         this.SetHoveredRow();
     }
     else
     {
         if (e.Property != GridRowElement.HotTrackingProperty)
         {
             return;
         }
         this.SetHoveredRow();
         this.UpdateVisualState();
     }
 }
Esempio n. 21
0
        public override void ItemStateChanged(RadObject item, RadPropertyChangedEventArgs changeArgs)
        {
            string  str     = string.Empty;
            RadItem radItem = item as RadItem;

            if (radItem != null && !radItem.Enabled)
            {
                str = "Disabled";
            }
            RadCheckmark radCheckmark = item as RadCheckmark;

            if (radCheckmark.CheckState == ToggleState.On)
            {
                if (!string.IsNullOrEmpty(str))
                {
                    str += (string)(object)'.';
                }
                str += "ToggleState=On";
            }
            if (radCheckmark.CheckState == ToggleState.Indeterminate)
            {
                if (!string.IsNullOrEmpty(str))
                {
                    str += (string)(object)'.';
                }
                str += "ToggleState=Indeterminate";
            }
            this.SetItemState(item, str);
        }
Esempio n. 22
0
        GridViewEventResult IGridViewEventListener.ProcessEvent(
            GridViewEvent eventData)
        {
            GridViewColumn sender1 = eventData.Sender as GridViewColumn;

            if (sender1 != null && eventData.Info.Id == KnownEvents.PropertyChanged)
            {
                RadPropertyChangedEventArgs changedEventArgs = eventData.Arguments[0] as RadPropertyChangedEventArgs;
                if (changedEventArgs.Property == GridViewColumn.IsVisibleProperty || changedEventArgs.Property == GridViewColumn.VisibleInColumnChooserProperty)
                {
                    this.template = sender1.OwnerTemplate;
                    this.UpdateView();
                }
            }
            else if (eventData.Info.Id == KnownEvents.ViewChanged)
            {
                DataViewChangedEventArgs changedEventArgs = eventData.Arguments[0] as DataViewChangedEventArgs;
                GridViewTemplate         sender2          = eventData.Sender as GridViewTemplate;
                if (changedEventArgs.Action == ViewChangedAction.Reset || changedEventArgs.Action == ViewChangedAction.ColumnGroupPropertyChanged)
                {
                    this.template = sender2;
                    this.UpdateView();
                }
            }
            return((GridViewEventResult)null);
        }
Esempio n. 23
0
        protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
        {
            base.OnPropertyChanged(e);

            if (e.Property == CheckStateProperty)
            {
                SetCheckState();
            }
            else if (e.Property == ImageProperty)
            {
                this.EnsureImageElement();
                this.imageElement.Image = (Image)e.NewValue;
                SetCheckState();
            }
            else if (e.Property == ImageIndexProperty)
            {
                this.EnsureImageElement();
                this.imageElement.ImageIndex = (int)e.NewValue;
                SetCheckState();
            }
            else if (e.Property == ImageKeyProperty)
            {
                this.EnsureImageElement();
                this.imageElement.ImageKey = (string)e.NewValue;
                SetCheckState();
            }
        }
        /// <summary>
        /// Provides additional logic for synchronizing the overflow image.
        /// </summary>
        /// <param name="e"></param>
        protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
        {
            base.OnPropertyChanged(e);

            if (e.Property == OverflowDropDownButtonElement.OverflowModeProperty)
            {
                if ((bool)e.NewValue)
                {
                    this.cachedImage = this.Image;
                    if (this.OverflowImage != null)
                    {
                        this.Image = this.OverflowImage;
                    }
                    return;
                }

                if (this.cachedImage != null)
                {
                    this.Image = this.cachedImage;
                }
            }

            if (e.Property == RadButtonItem.ImageProperty)
            {
                if (this.Image == null)
                {
                    this.cachedImage = null;
                }
            }
        }
Esempio n. 25
0
        //TODO: Check whether everything is working
        //protected override void OnFontChanged(EventArgs e)
        //{
        //    base.OnFontChanged(e);
        //    this.ToggleHTML(this.Text);
        //}

        protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
        {
            if (e.Property == TextPrimitive.TextProperty)
            {
                this.textWithoutMnemonics = TelerikHelper.TextWithoutMnemonics((string)e.NewValue);

                this.ToggleHTML(this.textWithoutMnemonics);
            }
            else if (e.Property == AlignmentProperty || e.Property == FontProperty || e.Property == ForeColorProperty)
            {
                this.ToggleHTML(this.textWithoutMnemonics);
            }
            else if (e.Property == RadElement.AutoSizeModeProperty)
            {
                RadAutoSizeMode newAutoSizeMode = (RadAutoSizeMode)e.NewValue;
                if (newAutoSizeMode == RadAutoSizeMode.WrapAroundChildren)
                {
                    this.TextAlignment = ContentAlignment.MiddleLeft;
                }
                else if (newAutoSizeMode == RadAutoSizeMode.FitToAvailableSize)
                {
                    this.TextAlignment = ContentAlignment.TopLeft;
                }
            }

            base.OnPropertyChanged(e);
        }
Esempio n. 26
0
        public override void ItemStateChanged(RadItem item, RadPropertyChangedEventArgs changeArgs)
        {
            string state = string.Empty;

            if (!item.Enabled)
            {
                state = "Disabled";
            }

            RadCheckmark check = item as RadCheckmark;

            if (check.CheckState == Telerik.WinControls.Enumerations.ToggleState.On)
            {
                if (!string.IsNullOrEmpty(state))
                {
                    state += ItemStateManagerBase.stateDelimiter;
                }
                state += "ToggleState=On";
            }
            if (check.CheckState == Telerik.WinControls.Enumerations.ToggleState.Indeterminate)
            {
                if (!string.IsNullOrEmpty(state))
                {
                    state += ItemStateManagerBase.stateDelimiter;
                }
                state += "ToggleState=Indeterminate";
            }

            base.SetItemState(item, state);
        }
Esempio n. 27
0
        protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
        {
            if (e.Property == LightVisualElement.TextProperty)
            {
                this.cachedText = (string)e.NewValue;
                if (this.ownerElement != null && this.dataLayer != null)
                {
                    int             prevIndex    = this.ownerElement.SelectedIndex;
                    RadListDataItem selectedItem = this.ownerElement.SelectedItem;
                    this.ownerElement.SuspendSelectionEvents = true;

                    this.dataLayer.ListSource.Refresh();

                    this.ownerElement.SelectedItem           = selectedItem;
                    this.ownerElement.SuspendSelectionEvents = false;

                    if (prevIndex != this.ownerElement.SelectedIndex)
                    {
                        this.ownerElement.OnSelectedIndexChanged(this.ownerElement.SelectedIndex);
                    }
                }
            }

            if (this.Owner != null)
            {
                this.Owner.OnDataItemPropertyChanged(this, e);
            }

            base.OnPropertyChanged(e);
        }
Esempio n. 28
0
 protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
 {
     base.OnPropertyChanged(e);
     if (e.Property == RadElement.IsMouseOverProperty)
     {
         this.EnsureNormalStateImageCached();
         this.SetImageIfHovered((bool)e.NewValue);
     }
     else if (e.Property == RadElement.IsMouseDownProperty)
     {
         this.EnsureNormalStateImageCached();
         if ((bool)e.NewValue)
         {
             this.SetNewStateImage(this.ImageClicked, true);
             if (this.ImageIndexClicked != -1)
             {
                 this.ImageIndex = this.ImageIndexClicked;
             }
             this.isPreviousStateClicked = true;
         }
         else
         {
             this.SetImageIfHovered(this.IsMouseOver);
         }
     }
     else
     {
         if (e.Property != RadButtonItem.ImageProperty || this.chaingingImageInternally)
         {
             return;
         }
         this.normalStateImage = (Image)null;
         this.EnsureNormalStateImageCached();
     }
 }
Esempio n. 29
0
 private void textPrimitive_RadPropertyChanged(object sender, RadPropertyChangedEventArgs e)
 {
     if (e.Property == RadElement.PaddingProperty)
     {
         this.textPrimitive.Padding = new Padding(0);
     }
 }
Esempio n. 30
0
 protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
 {
     base.OnPropertyChanged(e);
     if (e.Property == RadCommandBarOverflowButton.HasOverflowedItemsProperty)
     {
         if (this.HasOverflowedItems)
         {
             this.dropDownMenuElement.Items[0].Visibility = ElementVisibility.Visible;
             this.dropDownMenuElement.Items[1].Visibility = ElementVisibility.Visible;
         }
         else
         {
             this.dropDownMenuElement.Items[0].Visibility = ElementVisibility.Collapsed;
             this.dropDownMenuElement.Items[1].Visibility = ElementVisibility.Collapsed;
         }
     }
     else if (e.Property == RadElement.VisibilityProperty)
     {
         if (this.LayoutManager == null || this.owner == null)
         {
             return;
         }
         this.LayoutManager.MeasureQueue.Add((RadElement)this.owner);
     }
     else
     {
         if (e.Property != RadElement.RightToLeftProperty)
         {
             return;
         }
         this.dropDownMenuElement.RightToLeft = this.RightToLeft ? RightToLeft.Yes : RightToLeft.No;
     }
 }