BPropertyGrid
Genera un editor di proprietà Blazor a partire da un oggetto e dai relativi metadati/attributi B-Arts.
Parametri principali
BObject/BObjectChanged: oggetto modificato.AttributeProvider: sorgente alternativa dei metadati.Connection: necessaria per proprietà con chiavi esterne o elenchi database.AutoUpdate: applica automaticamente le modifiche.ShowCategory,CategoriesCollapsed,CategoryFilter,DefaultCategory.HideNotReadProperty,HideBCaptionAttribute,ShowFullCaption.
InitControl() ricostruisce gli editor; UpdateObject() applica i valori e restituisce l'esito; GetPropertyValue(name) legge il valore gestito.
<BPropertyGrid @ref="propertyGrid"
BObject="configurazione"
BObjectChanged="ConfigurazioneCambiata"
AutoUpdate="true"
ShowCategory="true" />
Gli editor vengono scelti usando tipo CLR e attributi B-Arts. Non duplicare con rendering manuale lo stesso mapping se BPropertyGrid copre il requisito.
Altri casi: BPropertyGrid.Examples.md.
<!-- BEGIN GENERATED API -->
Riferimento API completo
Identità
Namespace:
B.BWeb.BControlsAssembly:
BFrameworkWebControlsTipo:
classClasse base:
BBaseControlInterfacce:
IComponent,IHandleAfterRender,IHandleEventSorgente API: versione
5.0.1
Dichiarazione
public class BPropertyGrid : BBaseControl, IComponent, IHandleEvent, IHandleAfterRender
Costruttori
BPropertyGrid()
Campi pubblici
Nessun campo pubblico dichiarato.
Proprietà
| Proprietà | Tipo | Accesso |
|---|---|---|
AttributeProvider |
object |
get/set |
AutoUpdate |
bool |
get/set |
BObject |
object |
get/set |
BObjectChanged |
EventCallback<object> |
get/set |
CategoriesCollapsed |
bool |
get/set |
CategoryFilter |
string |
get/set |
Connection |
BConnection |
get/set |
CssClassBCheck |
string |
get/set |
CssClassBCombo |
string |
get/set |
CssClassBTesto |
string |
get/set |
CssClassCategory |
string |
get/set |
CssClassCategoryButton |
string |
get/set |
CssClassCategoryContent |
string |
get/set |
CssClassCategoryHeader |
string |
get/set |
CssClassCategoryTitle |
string |
get/set |
CssClassContainer |
string |
get/set |
CssClassEditor |
string |
get/set |
CssClassEditorFocus |
string |
get/set |
CssClassEmpty |
string |
get/set |
CssClassLabel |
string |
get/set |
CssClassProperties |
string |
get/set |
CssClassProperty |
string |
get/set |
DefaultCategory |
string |
get/set |
EmptyText |
string |
get/set |
Height |
string |
get/set |
HideBCaptionAttribute |
bool |
get/set |
HideNotReadProperty |
bool |
get/set |
LabelWidth |
string |
get/set |
LogText |
BLogText |
get |
ShowCategory |
bool |
get/set |
ShowFullCaption |
bool |
get/set |
Width |
string |
get/set |
Callback Blazor
BObjectChanged:EventCallback<object>
Eventi CLR
Nessun evento CLR pubblico dichiarato.
Metodi
object GetPropertyValue(string PropertyName)void InitControl()Task<bool> UpdateObject()
Tipi annidati pubblici
Nessun tipo annidato pubblico.
Membri B-Arts ereditati
Proprietà da
BBaseControl:string ClientId { get; }Proprietà da
BBaseControl:string CssClass { get; set; }Proprietà da
BBaseControl:bool Disabled { get; set; }Proprietà da
BBaseControl:EventCallback<bool> DisabledChanged { get; set; }Proprietà da
BBaseControl:string Id { get; set; }Proprietà da
BBaseControl:string Style { get; set; }Proprietà da
BBaseControl:int TabIndex { get; set; }Proprietà da
BBaseControl:bool Visible { get; set; }Proprietà da
BBaseControl:EventCallback<bool> VisibleChanged { get; set; }Metodo da
BBaseControl:Task SetDisabled(bool disabled)Metodo da
BBaseControl:Task SetVisible(bool visible)
