Пример #1
0
 protected override void Dispose(bool disposing)
 {
     base.Dispose(disposing);
     if (!disposing)
     {
         return;
     }
     this.isDisposed            = true;
     this.associatedRootElement = (RootRadElement)null;
     this.Draw -= new DrawToolTipEventHandler(this.RadToolTip_Draw);
     this.initialDelayTimer.Stop();
     this.initialDelayTimer.Tick -= new EventHandler(this.InitialDelayTimer_Tick);
     this.initialDelayTimer.Dispose();
 }
Пример #2
0
 public virtual void InitializeRootElement()
 {
   if (this.rootElement == null)
   {
     this.rootElement = this.ComponentTreeHandler.CreateRootElement();
     ++this.rootElement.layoutsRunning;
     this.ComponentTreeHandler.InitializeRootElement(this.rootElement);
     this.rootElement.ElementTree = this.component.ElementTree;
     this.rootElement.SaveCurrentStretchModeAsDefault();
     this.rootElement.RaiseTunnelEvent((RadElement) this.rootElement, new RoutedEventArgs(EventArgs.Empty, RadElement.ControlChangedEvent));
     --this.rootElement.layoutsRunning;
   }
   this.ComponentTreeHandler.CreateChildItems((RadElement) this.rootElement);
 }
Пример #3
0
        /// <summary>Creates RootElement if the former does not exists.</summary>
        public void EnsureRootElement()
        {
            if (this.root == null)
            {
                this.root = this.CreateRootElement();
                this.root.layoutsRunning++;

                this.InitializeRootElement(this.root);
                this.root.ElementTree = this.component.ElementTree;
                this.root.SaveCurrentStretchModeAsDefault();
                this.root.RaiseTunnelEvent(this.root, new RoutedEventArgs(EventArgs.Empty, RadElement.ControlChangedEvent));

                this.root.layoutsRunning--;
            }
        }
Пример #4
0
        internal protected RadItem GetActivatedItem(Control control, char charCode)
        {
            IComponentTreeHandler owner = control as IComponentTreeHandler;

            if (owner == null)
            {
                return(null);
            }

            RootRadElement root = owner.RootElement;

            for (int i = 0; i < owner.RootElement.Children.Count; i++)
            {
                RadItem item = GetActivatedItem(owner.RootElement.Children[i], charCode);
                if (item != null)
                {
                    return(item);
                }
            }
            return(null);
        }
 protected override void InitializeRootElement(RootRadElement rootElement)
 {
 }
Пример #6
0
 public RadToolTip(RootRadElement root)
     : this()
 {
     this.associatedRootElement = root;
     this.checkRootElement      = !(root is IFormRootElement);
 }
Пример #7
0
 protected abstract void InitializeRootElement(RootRadElement rootElement);