Пример #1
0
        protected internal virtual void OnPageRemoved(RadPageViewEventArgs e)
        {
            RadPageViewItem item = e.Page.Item;

            Debug.Assert(item != null, "Must have an item associated with the removed page.");

            this.RemoveItemCore(item);
            item.Detach();
        }
Пример #2
0
        protected internal virtual void OnSelectedPageChanged(RadPageViewEventArgs e)
        {
            RadPageViewItem item = null;

            if (e.Page != null)
            {
                item = e.Page.Item;
            }

            this.SetSelectedItem(item);
        }
        protected internal override void OnPageAdded(RadPageViewEventArgs e)
        {
            base.OnPageAdded(e);
            RadPageViewExplorerBarItem explorerBarItem = e.Page.Item as RadPageViewExplorerBarItem;

            e.Page.Dock = System.Windows.Forms.DockStyle.None;
            if (this.Items.Count > 1)
            {
                this.Children.Add(explorerBarItem.AssociatedContentAreaElement);
            }
        }
Пример #4
0
        protected internal virtual void OnPageAdded(RadPageViewEventArgs e)
        {
            RadPageViewItem item = this.OnItemCreating(new RadPageViewItemCreatingEventArgs(e.Page));

            if (item == null)
            {
                item = this.CreateItem();
            }

            item.Attach(e.Page);

            this.AddItemCore(item);
        }
Пример #5
0
        protected internal virtual void OnPageExpanded(RadPageViewEventArgs e)
        {
            if (!this.CanRaiseEvents)
            {
                return;
            }
            EventHandler <RadPageViewEventArgs> eventHandler = this.Events[RadPageView.PageExpandedEventKey] as EventHandler <RadPageViewEventArgs>;

            if (eventHandler == null)
            {
                return;
            }
            eventHandler((object)this, e);
        }
Пример #6
0
        protected internal virtual void OnPageExpanded(RadPageViewEventArgs e)
        {
            if (!this.CanRaiseEvents)
            {
                return;
            }

            EventHandler <RadPageViewEventArgs> eh = this.Events[PageExpandedEventKey] as EventHandler <RadPageViewEventArgs>;

            if (eh != null)
            {
                eh(this, e);
            }
        }
Пример #7
0
        protected internal virtual void OnPageAdded(RadPageViewEventArgs e)
        {
            e.Page.Attach(this);
            this.viewElement.OnPageAdded(e);
            if (!this.CanRaiseEvents)
            {
                return;
            }
            EventHandler <RadPageViewEventArgs> eventHandler = this.Events[RadPageView.PageAddedEventKey] as EventHandler <RadPageViewEventArgs>;

            if (eventHandler == null)
            {
                return;
            }
            eventHandler((object)this, e);
        }
        protected internal override void OnPageRemoved(RadPageViewEventArgs e)
        {
            RadPageViewExplorerBarItem explorerBarItem = e.Page.Item as RadPageViewExplorerBarItem;

            if (this.Items.Count > 1)
            {
                explorerBarItem.AssociatedContentAreaElement.Dispose();
                explorerBarItem.AssociatedContentAreaElement = null;
            }
            else
            {
                this.ContentArea.Visibility = ElementVisibility.Collapsed;
            }

            base.OnPageRemoved(e);
        }
Пример #9
0
        protected internal virtual void OnPageRemoved(RadPageViewEventArgs e)
        {
            Debug.Assert(this.viewElement != null, "Must have UI instance at this point.");

            e.Page.Detach();
            this.viewElement.OnPageRemoved(e);

            if (!this.CanRaiseEvents)
            {
                return;
            }

            EventHandler <RadPageViewEventArgs> eh = this.Events[PageRemovedEventKey] as EventHandler <RadPageViewEventArgs>;

            if (eh != null)
            {
                eh(this, e);
            }
        }
Пример #10
0
 private void radLeftMenu_PageExpanded(object sender, Telerik.WinControls.UI.RadPageViewEventArgs e)
 {
     try
     {
         if (radLeftMenu.SelectedPage.Item.Text != "")
         {
             if (IspageSelected)
             {
                 for (int i = 0; i < radLeftMenu.Pages.Count; i++)
                 {
                     radLeftMenu.Pages[i].IsContentVisible = false;
                 }
                 IspageSelected = false;
             }
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Пример #11
0
 protected virtual void SetSelectedPage(RadPageViewEventArgs e)
 {
     this.SuspendLayout();
     this.viewElement.OnSelectedPageChanged(e);
     this.ResumeLayout(false);
 }
 protected internal override void OnSelectedPageChanged(RadPageViewEventArgs e)
 {
     base.OnSelectedPageChanged(e);
     this.RefreshNCArea();
 }