Class CardPanel
Allows to switch child controls, so only one of them is visible and other are hidden.
[ControlCategory("Containers")]
public class CardPanel : Control, IBaseObjectWithId, IDisposableObject, IBaseObject, 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.
- CardPanel(Control)
Initializes a new instance of the CardPanel class.
Properties
- Cards
Gets pages with child controls.
- IsBold
Gets or sets whether font style override is bold.
- this[int]
Gets the card at the specified index.
- LoadedCards
Gets the collection of the loaded cards.
- 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?, AbstractControl)
Adds new page.
- Add(string?, Func<AbstractControl>)
Adds new page.
- Find(AbstractControl?)
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.