Пример #1
0
        private static void OnOrientationChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            RadMenu menu = d as RadMenu;

            if (menu != null && menu.panel != null)
            {
                if (menu.panel is StackPanel)
                {
                    menu.panel.SetValue(StackPanel.OrientationProperty, menu.Orientation);
                }
                else if (menu.panel is RadWrapPanel)
                {
                    menu.panel.SetValue(RadWrapPanel.OrientationProperty, menu.Orientation);
                }
                menu.OnPropertyChanged("Orientation");
            }
        }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the RadMenuAutomationPeer class.
 /// Automation Peer for the RadMenu class.
 /// </summary>
 /// <param name="owner">The object that is associated with this AutomationPeer.</param>
 public RadMenuAutomationPeer(RadMenu owner)
     : base(owner)
 {
 }