Inhaltsverzeichnis
API: Editor Controls
Riferimento API per campi di input e modifica.
TWvdSTextEdit
Campo testo avanzato a riga singola con pulsanti.
Namespace
WvdS.UI.Controls.Editors
PXAML
<TextEdit Text="{Binding SearchText}" NullText="Search..." ShowClearButton="True" />
Properties
| Property | Tipo | Default | Descrizione |
| Text | string | | Testo attuale |
^ NullText | string | | Testo segnaposto |
|---|---|---|---|
| ShowClearButton | Boolean | False | Mostra pulsante cancella |
| Buttons | TWvdSButtonCollection | nil | Pulsanti aggiuntivi |
| EditMask | string | | Maschera input |
==== Events ====
| Event | Firma | Descrizione |
^ OnTextChanged | TNotifyEvent | Testo modificato |
^ OnButtonClick | TButtonClickEvent | Pulsante cliccato |
—-
===== TWvdSMemoEdit =====
Campo testo multiriga.
==== Namespace ====
WvdS.UI.Controls.Editors
==== PXAML ====
<code xml>
<MemoEdit Text=„{Binding Description}“
Lines=„10“
WordWrap=„True“ />
</code>
==== Properties ====
| Property | Tipo | Default | Descrizione |
^ Text | string | | Testo intero |
| Lines | TStrings | nil | Accesso per righe |
| MaxLines | Integer | 0 | Max. righe (0=illimitato) |
| WordWrap | Boolean | True | A capo automatico |
| ScrollBars | TWvdSScrollBars | ssBoth | None, Horizontal, Vertical, Both |
Events
| Event | Firma | Descrizione |
| OnTextChanged | TNotifyEvent | Testo modificato |
|---|
TWvdSSpinEdit
Input numerico con pulsanti spinner.
Namespace
WvdS.UI.Controls.Editors
PXAML
<SpinEdit Value="{Binding Quantity}" MinValue="1" MaxValue="100" Increment="1" />
Properties
| Property | Tipo | Default | Descrizione |
| Value | Double | 0 | Valore attuale |
|---|---|---|---|
| MinValue | Double | MinDouble | Valore minimo |
| MaxValue | Double | MaxDouble | Valore massimo |
| Increment | Double | 1 | Passo |
| DecimalPlaces | Integer | 0 | Cifre decimali |
| UseThousandSeparator | Boolean | False | Separatore migliaia |
Events
| Event | Firma | Descrizione |
| OnValueChanged | TNotifyEvent | Valore modificato |
|---|
TWvdSDateEdit
Selezione data con popup calendario.
Namespace
WvdS.UI.Controls.Editors
PXAML
<DateEdit Date="{Binding BirthDate}" MinDate="1900-01-01" DateFormat="dd.MM.yyyy" />
Properties
| Property | Tipo | Default | Descrizione |
| Date | TDateTime | 0 | Data selezionata |
|---|---|---|---|
| MinDate | TDateTime | 0 | Data piu antica |
| MaxDate | TDateTime | 0 | Data piu recente |
| DateFormat | string | 'dd.MM.yyyy' | Formato visualizzazione |
| ShowWeekNumbers | Boolean | False | Mostra settimane calendario |
Events
| Event | Firma | Descrizione |
| OnDateChanged | TNotifyEvent | Data modificata |
|---|
TWvdSTimeEdit
Selezione ora.
Namespace
WvdS.UI.Controls.Editors
PXAML
<TimeEdit Time="{Binding StartTime}" TimeFormat="HH:mm" Use24HourFormat="True" />
Properties
| Property | Tipo | Default | Descrizione |
| Time | TDateTime | 0 | Ora selezionata |
|---|---|---|---|
| TimeFormat | string | 'HH:mm:ss' | Formato visualizzazione |
| Use24HourFormat | Boolean | True | Formato 24 ore |
| ShowSeconds | Boolean | True | Mostra secondi |
Events
| Event | Firma | Descrizione |
| OnTimeChanged | TNotifyEvent | Ora modificata |
|---|
TWvdSDateTimeEdit
Selezione combinata data e ora.
Namespace
WvdS.UI.Controls.Editors
PXAML
<DateTimeEdit DateTime="{Binding AppointmentTime}" DateTimeFormat="dd.MM.yyyy HH:mm" />
Properties
| Property | Tipo | Default | Descrizione |
| DateTime | TDateTime | 0 | Data e ora |
|---|---|---|---|
| DateTimeFormat | string | 'dd.MM.yyyy HH:mm:ss' | Formato |
TWvdSCalcEdit
Campo input calcolatrice.
Namespace
WvdS.UI.Controls.Editors
PXAML
<CalcEdit Value="{Binding Price}" DecimalPlaces="2" Prefix="EUR " />
Properties
| Property | Tipo | Default | Descrizione |
| Value | Double | 0 | Valore calcolato |
|---|---|---|---|
| DecimalPlaces | Integer | 2 | Cifre decimali |
| Prefix | string | | Prefisso (es. valuta) |
^ Suffix | string | | Suffisso |
TWvdSColorEdit
Selezione colore.
Namespace
WvdS.UI.Controls.Editors
PXAML
<ColorEdit Color="{Binding ThemeColor}" ShowAlpha="True" />
Properties
| Property | Tipo | Default | Descrizione |
| Color | TWvdSColor | clBlack | Colore selezionato |
|---|---|---|---|
| ShowAlpha | Boolean | False | Mostra canale alpha |
| ColorPalette | TWvdSColorPalette | cpDefault | Palette predefinita |
Events
| Event | Firma | Descrizione |
| OnColorChanged | TNotifyEvent | Colore modificato |
|---|
TWvdSMaskEdit
Input con maschera.
Namespace
WvdS.UI.Controls.Editors
PXAML
<MaskEdit EditMask="(000) 000-0000" Text="{Binding PhoneNumber}" /> <MaskEdit EditMask="00.00.0000" Text="{Binding Date}" />
Properties
| Property | Tipo | Default | Descrizione |
| Text | string | | Testo formattato |
^ EditValue | string | | Valore non formattato |
|---|---|---|---|
| EditMask | string | | Maschera input |
^ MaskKind | TWvdSMaskKind | mkStandard | Standard, RegEx |
^ PlaceHolder | Char | '_' | Carattere segnaposto |
==== Sintassi Maschera ====
| Carattere | Significato |
^ 0 | Cifra (obbligatoria) |
^ 9 | Cifra (opzionale) |
^ L | Lettera (obbligatoria) |
^ ? | Lettera (opzionale) |
^ A | Alfanumerico (obbligatorio) |
^ a | Alfanumerico (opzionale) |
—-
===== TWvdSRichEdit =====
Editor testo formattato.
==== Namespace ====
WvdS.UI.Controls.Editors
==== PXAML ====
<code xml>
<RichEdit Document=„{Binding Content}“
ShowToolbar=„True“ />
</code>
==== Properties ====
| Property | Tipo | Default | Descrizione |
^ Document | TWvdSDocument | nil | Documento RTF/HTML |
^ PlainText | string | | Accesso solo testo |
| ShowToolbar | Boolean | True | Barra formattazione |
TWvdSTokenEdit
Input tag/token.
Namespace
WvdS.UI.Controls.Editors
PXAML
<TokenEdit Tokens="{Binding Tags}" AllowDuplicates="False" MaxTokens="10" />
Properties
| Property | Tipo | Default | Descrizione |
| Tokens | TStrings | nil | Lista token |
|---|---|---|---|
| AllowDuplicates | Boolean | False | Duplicati permessi |
| MaxTokens | Integer | 0 | Max. token (0=illimitato) |
| Separator | Char | ',' | Separatore per input testo |
Events
| Event | Firma | Descrizione |
| OnTokenAdded | TTokenEvent | Token aggiunto |
|---|---|---|
| OnTokenRemoved | TTokenEvent | Token rimosso |
TWvdSComboBoxEdit
Lista a discesa.
Namespace
WvdS.UI.Controls.Editors
PXAML
<ComboBoxEdit SelectedItem="{Binding Country}" ItemsSource="{Binding Countries}" DisplayMember="Name" />
Properties
| Property | Tipo | Default | Descrizione |
| Items | TStrings | nil | Item statici |
|---|---|---|---|
| ItemsSource | IEnumerable | nil | Dati bindati |
| SelectedItem | TObject | nil | Item selezionato |
| SelectedIndex | Integer | -1 | Indice selezionato |
| DisplayMember | string | | Campo visualizzazione |
^ ValueMember | string | | Campo valore |
| DropDownStyle | TWvdSDropDownStyle | dsDropDown | DropDown, DropDownList |
Events
| Event | Firma | Descrizione |
| OnSelectedIndexChanged | TNotifyEvent | Selezione modificata |
|---|
TWvdSLookupEdit
Dropdown lookup con ricerca.
Namespace
WvdS.UI.Controls.Editors
PXAML
<LookupEdit SelectedValue="{Binding CustomerId}" ItemsSource="{Binding Customers}" DisplayMember="Name" ValueMember="Id" SearchMode="Contains" />
Properties
| Property | Tipo | Default | Descrizione |
| ItemsSource | IEnumerable | nil | Sorgente dati |
|---|---|---|---|
| SelectedValue | TValue | nil | Valore selezionato |
| DisplayMember | string | | Campo visualizzazione |
^ ValueMember | string | | Campo valore |
| SearchMode | TWvdSSearchMode | smStartsWith | StartsWith, Contains |
| PopupWidth | Integer | 0 | Larghezza popup (0=Auto) |
TWvdSCheckedComboBox
Dropdown multi-selezione.
Namespace
WvdS.UI.Controls.Editors
PXAML
<CheckedComboBox ItemsSource="{Binding Categories}" SelectedItems="{Binding SelectedCategories}" DisplayMember="Name" />
Properties
| Property | Tipo | Default | Descrizione |
| ItemsSource | IEnumerable | nil | Tutti gli item |
|---|---|---|---|
| SelectedItems | IList | nil | Item selezionati |
| SelectAllText | string | '(Select All)' | Testo „Seleziona tutti“ |
TWvdSMRUEdit
Input Most Recently Used.
Namespace
WvdS.UI.Controls.Editors
PXAML
<MRUEdit Text="{Binding SearchText}" MaxItems="10" StorageKey="RecentSearches" />
Properties
| Property | Tipo | Default | Descrizione |
| Text | string | | Testo attuale |
^ Items | TStrings | nil | Lista MRU |
^ MaxItems | Integer | 10 | Max. voci |
^ StorageKey | string | | Chiave persistenza |
|---|
TWvdSPopupEdit
Input con popup personalizzato.
Namespace
WvdS.UI.Controls.Editors
PXAML
<PopupEdit DisplayText="{Binding SelectedAddress.Display}"> <PopupEdit.PopupContent> <AddressSelector Value="{Binding SelectedAddress}" /> </PopupEdit.PopupContent> </PopupEdit>
Properties
| Property | Tipo | Default | Descrizione |
| DisplayText | string |
|---|
PXAML
<RangeTrackBar MinValue="{Binding PriceMin}" MaxValue="{Binding PriceMax}" Minimum="0" Maximum="1000" />
Properties
| Property | Tipo | Default | Descrizione |
| MinValue | Double | 0 | Limite inferiore |
|---|---|---|---|
| MaxValue | Double | 100 | Limite superiore |
| Minimum | Double | 0 | Minimo assoluto |
| Maximum | Double | 100 | Massimo assoluto |
| Step | Double | 1 | Passo |
Events
| Event | Firma | Descrizione |
| OnRangeChanged | TRangeEvent | Intervallo modificato |
|---|