Esempio n. 1
0
        /// <summary>
        /// Opens the current instance of the <see cref="RadRadialMenu"/>.
        /// </summary>
        internal void Open()
        {
            if (this.TargetElement != null)
            {
                var behavior = RadRadialContextMenu.GetBehavior(this.TargetElement);

                if (behavior != null)
                {
                    behavior.AttachToTargetElement();
                }
            }

            this.model.ShowView();

            if (this.TargetElement != null)
            {
                PopupService.DisplayOverlay();
            }

            this.CalculateRingsAspectRatio();

            if (this.model.viewState.StartAngleLevels.Count > 0)
            {
                this.model.Layout.StartAngle = this.model.viewState.StartAngleLevels[0];
                this.model.UpdateRingsRadius();
            }
        }