Class CardPanel
Allows to switch child controls, so only one of them is visible and other are hidden.
[ControlCategory("Containers")]
public class CardPanel : Control, IBaseObject, IDisposableObject, ISupportInitialize, IFocusable, ITextProperty, IComponent, IControl, IDisposable, IWin32Window, INotifyDataErrorInfo
- Inheritance
-
CardPanel
- Implements
Remarks
It behaves like TabControl but has no tab titles.
Constructors
- CardPanel()
Initializes a new instance of the CardPanel class.
Properties
- Cards
Gets pages with child controls.
- IsBold
Gets or sets whether control's font is bold.
- this[int]
Gets the card at the specified index.
- SelectedCard
Gets or sets selected card.
- SelectedCardIndex
Gets or sets selected card index.
- UseBusyCursor
Gets or sets whether to call BeginBusyCursor() when page is created. By default is
true
.
Methods
- Add(string?, Control)
Adds new page.
- Add(string?, Func<Control>)
Adds new page.
- Find(Control?)
Gets card which Control property is equal to
control
.
- Find(ObjectUniqueId?)
Gets card with the specified id.
- IndexOf(CardPanelItem?)
Gets index of the specified card.
- SelectCard(CardPanelItem?)
Sets active card.
- SelectCard(ObjectUniqueId?)
Sets active card by id.
- SelectCard(int?)
Sets active card by index.
Events
- CardPropertyChanged
Occurs when the card's property value changes.