Exemple #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="RadRadialMenu"/> class.
        /// </summary>
        public RadRadialMenu()
        {
            this.DefaultStyleKey = typeof(RadRadialMenu);

            this.model              = new RadialMenuModel(this);
            this.hitTestService     = new HitTestService(this);
            this.visualstateService = new VisualStateService(this);
            this.commandService     = new CommandService(this);
            this.SizeChanged       += this.OnRadRadialMenuSizeChanged;
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="RadRadialMenu"/> class.
        /// </summary>
        public RadRadialMenu()
        {
            this.DefaultStyleKey = typeof(RadRadialMenu);

            this.model              = new RadialMenuModel(this);
            this.hitTestService     = new HitTestService(this);
            this.visualstateService = new VisualStateService(this);
            this.commandService     = new CommandService(this);
            this.SizeChanged       += this.OnRadRadialMenuSizeChanged;

            this.tooltip            = new Popup();
            this.menuToolTipContent = new MenuToolTip();
            this.tooltip.Child      = this.menuToolTipContent;
        }