C# 클래스 SIL.SilSidePane.SidePane

SidePane is the main class for clients to use of the SilSidePane library. SidePane is intended to be placed on the side of an application, and allows buttons to be grouped by category, which are shown by clicking different tabs. It is similar to the Navigation Pane in Outlook. An example of its usage is in SilSidePaneTestApp.
상속: System.Windows.Forms.Panel
파일 보기 프로젝트 열기: sillsdev/FieldWorks 1 사용 예제들

Private Properties

프로퍼티 타입 설명
ContainsTab bool
HandleClickFromItemArea void
HandleTabAreaButtonClicked void
Init void
ShowOnlyCertainItemArea void
TabContainsItem bool
TabContainsItemWithName bool

공개 메소드들

메소드 설명
AddItem ( SIL.SilSidePane.Tab targetTab, Item item ) : void

Add item to targetTab

AddTab ( SIL.SilSidePane.Tab tab ) : void Cannot add the same tab more than once. Cannot add a tab with the same name as an existing tab.
GetTabByName ( string tabName ) : SIL.SilSidePane.Tab
SelectItem ( SIL.SilSidePane.Tab tab, string itemName ) : bool

Select item on tab, by item name

SelectTab ( SIL.SilSidePane.Tab tab ) : bool

Select a tab and an item on that tab

SelectTab ( SIL.SilSidePane.Tab tab, bool andSelectAnItemOnThatTab ) : bool

Select a tab.

SidePane ( Control containingControl ) : System

Constructor. containingControl is the control, such as a SplitContainer.Panel1, upon which the tabs and items of this SidePane will be shown. Defaults to ItemAreaStyle of Buttons.

SidePane ( Control containingControl, SidePaneItemAreaStyle itemAreaStyle ) : System

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void
InvokeItemClicked ( Item itemClicked ) : void

Notify clients that an item was selected.

InvokeTabClicked ( SIL.SilSidePane.Tab tabClicked ) : void

Notify clients that a tab was selected.

비공개 메소드들

메소드 설명
ContainsTab ( SIL.SilSidePane.Tab tab ) : bool

Whether this sidepane contains tab.

HandleClickFromItemArea ( Item itemClicked ) : void

Handles when an item in an item area is clicked. An item area calls this method. We notify the client which is using SidePane that an Item was clicked.

HandleTabAreaButtonClicked ( object sender, SIL.SilSidePane.OutlookBarButton tabButton ) : void

Handles a click on an OutlookBarButton widget representing a tab

Init ( Control containingControl ) : void

Set up this SidePane for use, adding its components to containingControl.

ShowOnlyCertainItemArea ( SIL.SilSidePane.Tab tab ) : void

Show a specific Tab's item area, and hide others.

TabContainsItem ( SIL.SilSidePane.Tab tab, Item item ) : bool tab must be a tab in this sidepane
TabContainsItemWithName ( SIL.SilSidePane.Tab tab, string itemName ) : bool tab must be a tab in this sidepane

메소드 상세

AddItem() 공개 메소드

Add item to targetTab
public AddItem ( SIL.SilSidePane.Tab targetTab, Item item ) : void
targetTab SIL.SilSidePane.Tab
item Item
리턴 void

AddTab() 공개 메소드

Cannot add the same tab more than once. Cannot add a tab with the same name as an existing tab.
public AddTab ( SIL.SilSidePane.Tab tab ) : void
tab SIL.SilSidePane.Tab
리턴 void

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

GetTabByName() 공개 메소드

public GetTabByName ( string tabName ) : SIL.SilSidePane.Tab
tabName string
리턴 SIL.SilSidePane.Tab

InvokeItemClicked() 보호된 메소드

Notify clients that an item was selected.
protected InvokeItemClicked ( Item itemClicked ) : void
itemClicked Item
리턴 void

InvokeTabClicked() 보호된 메소드

Notify clients that a tab was selected.
protected InvokeTabClicked ( SIL.SilSidePane.Tab tabClicked ) : void
tabClicked SIL.SilSidePane.Tab
리턴 void

SelectItem() 공개 메소드

Select item on tab, by item name
public SelectItem ( SIL.SilSidePane.Tab tab, string itemName ) : bool
tab SIL.SilSidePane.Tab
itemName string
리턴 bool

SelectTab() 공개 메소드

Select a tab and an item on that tab
public SelectTab ( SIL.SilSidePane.Tab tab ) : bool
tab SIL.SilSidePane.Tab
리턴 bool

SelectTab() 공개 메소드

Select a tab.
public SelectTab ( SIL.SilSidePane.Tab tab, bool andSelectAnItemOnThatTab ) : bool
tab SIL.SilSidePane.Tab
andSelectAnItemOnThatTab bool
리턴 bool

SidePane() 공개 메소드

Constructor. containingControl is the control, such as a SplitContainer.Panel1, upon which the tabs and items of this SidePane will be shown. Defaults to ItemAreaStyle of Buttons.
public SidePane ( Control containingControl ) : System
containingControl System.Windows.Forms.Control
리턴 System

SidePane() 공개 메소드

public SidePane ( Control containingControl, SidePaneItemAreaStyle itemAreaStyle ) : System
containingControl System.Windows.Forms.Control
itemAreaStyle SidePaneItemAreaStyle /// SidePaneItemAreaStyle to use for this sidepane's item area ///
리턴 System