| | |
| | | //添加 |
| | | private void tabbedView1_DocumentAdded(object sender, DocumentEventArgs e) |
| | | { |
| | | if (this.tabbedView1.Documents.Count > 1) |
| | | { |
| | | this.navBtnPrevious.Visible = true; |
| | | this.navBtnNext.Visible = true; |
| | | } |
| | | } |
| | | |
| | | //激活 |
| | |
| | | var page = e.Document.Control as DocumentPage; |
| | | if (page == null) |
| | | return; |
| | | this.navBtnCurrent.ImageOptions.SvgImage = page.PageTitle.HeaderSvgImage; |
| | | this.navBtnCurrent.Caption = page.PageTitle.Caption; |
| | | } |
| | | |
| | | //关闭 此时控件已经为空 |
| | |
| | | } |
| | | |
| | | #endregion Modular |
| | | |
| | | private void navBtnPrevious_ElementClick(object sender, NavElementEventArgs e) |
| | | { |
| | | this.tabbedView1.Controller.SelectNextTab(false); |
| | | } |
| | | |
| | | private void navBtnNext_ElementClick(object sender, NavElementEventArgs e) |
| | | { |
| | | this.tabbedView1.Controller.SelectNextTab(true); |
| | | } |
| | | } |
| | | } |