Exemplo n.º 1
0
        /// <summary>
        /// This menu item is on if a slash already exists in the environment.
        /// </summary>
        /// <param name="commandObject"></param>
        /// <param name="display"></param>
        /// <returns></returns>
        public bool OnDisplayInsertHashMark(object commandObject,
                                            ref UIItemDisplayProperties display)
        {
            CheckDisposed();
            PhoneEnvReferenceLauncher rl   = (PhoneEnvReferenceLauncher)this.Control;
            PhoneEnvReferenceView     view = (PhoneEnvReferenceView)rl.MainControl;

            display.Enabled = view.CanInsertHashMark();
            return(true);
        }