Class CardPanel
Allows to switch child controls, so only one of them is visible and other are hidden.
[ControlCategory("Containers")]
public class CardPanel : HiddenBorder, IBaseObjectWithAttr, IBaseObjectWithId, INotifyPropertyChanged, IDisposableObject, IBaseObject, ISupportInitialize, IFocusable, ITextProperty, IComponent, IControl, IDisposable, IWin32Window, ILayoutItem, 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.
- OnCardsItemInserted(object?, int, CardPanelItem)
Called when a card is inserted into the Cards collection. Subscribes to the events of the inserted card.
- OnCardsItemPropertyChanged(object?, PropertyChangedEventArgs)
Called when a property of a card item changes. Raises the CardPropertyChanged event.
- OnCardsItemRemoved(object?, int, CardPanelItem)
Called when a card is removed from the Cards collection. Unsubscribes from the events of the removed card. If the removed card is the currently selected card, clears the selection.
- 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.