Exemplo n.º 1
0
        /// <summary>
        /// This action is needed whenever we leave the slice, not just when we move to another
        /// slice but also when we move directly to another tool.
        /// </summary>
        /// <param name="e"></param>
        protected override void OnLeave(EventArgs e)
        {
            PhoneEnvReferenceLauncher rl   = (PhoneEnvReferenceLauncher)this.Control;
            PhoneEnvReferenceView     view = (PhoneEnvReferenceView)rl.MainControl;

            view.ConnectToRealCache();
            if (view.RootBox != null)
            {
                view.RootBox.DestroySelection();
            }
            base.OnLeave(e);
        }