Inhaltsverzeichnis

API: Specialized Controls

Riferimento API per componenti specializzati.

TWvdSScheduler

Calendario e pianificazione appuntamenti.

Namespace

WvdS.UI.Controls.Specialized

PXAML

<Scheduler DataSource="{Binding Appointments}"
           StartProperty="Start"
           EndProperty="End"
           SubjectProperty="Subject"
           CurrentDate="{Binding SelectedDate}"
           ViewType="Week">
  <Scheduler.Resources>
    <SchedulerResource Id="1" Caption="Room A" Color="Blue" />
    <SchedulerResource Id="2" Caption="Room B" Color="Green" />
  </Scheduler.Resources>
</Scheduler>

Properties

Property Tipo Default Descrizione
DataSource IEnumerable nil Dati appuntamenti
StartProperty string 'Start' Campo inizio
EndProperty string 'End' Campo fine
SubjectProperty string 'Subject' Campo oggetto
CurrentDate TDateTime Today Data attiva
ViewType TSchedulerViewType svDay Day, Week, Month, Timeline
Resources TResourceCollection nil Risorse
FirstDayOfWeek TDayOfWeek dwMonday Inizio settimana
WorkTimeStart TTime 08:00 Inizio orario lavoro
WorkTimeEnd TTime 18:00 Fine orario lavoro

Events

Event Firma Descrizione
OnAppointmentClick TAppointmentEvent Appuntamento cliccato
OnAppointmentEditing TAppointmentEditEvent Appuntamento in modifica
OnDateChanged TDateChangedEvent Data cambiata

TWvdSRichEditControl

Control word-processor.

Namespace

WvdS.UI.Controls.Specialized

PXAML

<RichEditControl Document="{Binding DocumentContent}"
                 DocumentFormat="OpenXml"
                 ShowRuler="True"
                 ShowStatusBar="True" />

Properties

Property Tipo Default Descrizione
Document TWvdSDocument nil Documento
DocumentFormat TDocumentFormat dfRtf Rtf, OpenXml, Html, PlainText
ShowRuler Boolean True Mostra righello
ShowStatusBar Boolean True Barra di stato
ReadOnly Boolean False Sola lettura
SpellCheckEnabled Boolean True Controllo ortografico

Metodi

Metodo Descrizione
LoadDocument(path) Carica documento
SaveDocument(path, format) Salva documento
Print Stampa
ExportToPdf(path) Esporta come PDF

TWvdSSpreadsheetControl

Foglio di calcolo.

Namespace

WvdS.UI.Controls.Specialized

PXAML

<SpreadsheetControl Document="{Binding Workbook}"
                    ActiveSheet="{Binding CurrentSheet}"
                    ShowFormulaBar="True" />

Properties

Property Tipo Default Descrizione
Document TWvdSWorkbook nil Cartella di lavoro
ActiveSheet TWvdSWorksheet nil Foglio attivo
ShowFormulaBar Boolean True Barra formule
ShowSheetTabs Boolean True Tab fogli
ReadOnly Boolean False Sola lettura

Metodi

Metodo Descrizione
LoadDocument(path) Carica file Excel
SaveDocument(path) Salva
ExportToPdf(path) Come PDF
Calculate Calcola formule

TWvdSMapControl

Visualizzazione mappa.

Namespace

WvdS.UI.Controls.Specialized

PXAML

<MapControl CenterPoint="{Binding MapCenter}"
            ZoomLevel="{Binding Zoom}"
            MapProvider="OpenStreetMap">
  <MapControl.Layers>
    <VectorLayer ItemsSource="{Binding Markers}">
      <VectorLayer.ItemTemplate>
        <MapPushpin Location="{Binding Location}"
                    Text="{Binding Name}" />
      </VectorLayer.ItemTemplate>
    </VectorLayer>
  </MapControl.Layers>
</MapControl>

Properties

Property Tipo Default Descrizione
CenterPoint TGeoPoint (0,0) Centro mappa
ZoomLevel Double 10 Livello zoom
MapProvider TMapProvider mpOpenStreetMap OpenStreetMap, Bing, etc.
Layers TMapLayerCollection nil Livelli mappa
ShowMiniMap Boolean False Minimappa
ShowScale Boolean True Scala

TWvdSDiagramControl

Editor diagrammi.

Namespace

WvdS.UI.Controls.Specialized

PXAML

<DiagramControl Document="{Binding DiagramDocument}"
                Shapes="{Binding AvailableShapes}"
                Connectors="{Binding Connections}">
  <DiagramControl.Toolbox>
    <DiagramToolbox>
      <ToolboxGroup Header="Basic Shapes">
        <ToolboxShape ShapeType="Rectangle" />
        <ToolboxShape ShapeType="Ellipse" />
        <ToolboxShape ShapeType="Diamond" />
      </ToolboxGroup>
    </DiagramToolbox>
  </DiagramControl.Toolbox>
</DiagramControl>

Properties

Property Tipo Default Descrizione
Document TDiagramDocument nil Diagramma
Shapes TDiagramShapeCollection nil Forme
Connectors TConnectorCollection nil Connessioni
ShowGrid Boolean True Mostra griglia
SnapToGrid Boolean True Allinea alla griglia

TWvdSPdfViewer

Visualizzatore PDF.

Namespace

WvdS.UI.Controls.Specialized

PXAML

<PdfViewer DocumentSource="{Binding PdfPath}"
           CurrentPage="{Binding CurrentPage}"
           ZoomMode="FitWidth" />

Properties

Property Tipo Default Descrizione
DocumentSource string | Percorso PDF o stream | ^ CurrentPage | Integer | 1 | Pagina corrente | ^ PageCount | Integer | 0 | Numero pagine (sola lettura) | ^ ZoomLevel | Double | 100 | Zoom in % | ^ ZoomMode | TZoomMode | zmActualSize | ActualSize, FitWidth, FitPage | ^ ShowToolbar | Boolean | True | Toolbar | ^ ShowThumbnails | Boolean | False | Anteprima pagine | ==== Metodi ==== | Metodo | Descrizione | ^ Print | Stampa | ^ GoToPage(n) | Vai a pagina | ^ Search(text) | Cerca testo | —- ===== TWvdSImageGallery ===== Galleria immagini. ==== Namespace ==== WvdS.UI.Controls.Specialized ==== PXAML ==== <code xml> <ImageGallery ItemsSource=„{Binding Images}“ ImageMember=„Url“ ThumbnailMember=„Thumbnail“ CaptionMember=„Title“ ViewMode=„Thumbnails“ /> </code> ==== Properties ==== | Property | Tipo | Default | Descrizione | ^ ItemsSource | IEnumerable | nil | Dati immagini | ^ ImageMember | string | Campo URL immagine
ThumbnailMember string | Campo thumbnail | ^ CaptionMember | string | Campo titolo
SelectedImage TObject nil Immagine selezionata
ViewMode TGalleryViewMode gvThumbnails Thumbnails, Slideshow
ThumbnailSize Integer 100 Dimensione thumbnail

TWvdSSpellChecker

Controllo ortografico.

Namespace

WvdS.UI.Controls.Specialized

Sintassi

SpellChecker := TWvdSSpellChecker.Create;
SpellChecker.Dictionary := 'it-IT';
SpellChecker.CheckControl(MemoEdit);

Properties

Property Tipo Default Descrizione
Dictionary string 'en-US' Dizionario
CustomDictionary TStrings nil Parole personalizzate
IgnoreUppercase Boolean True Ignora maiuscole
IgnoreNumbers Boolean True Ignora numeri

Metodi

Metodo Descrizione
Check(text) Controlla testo
GetSuggestions(word) Ottieni suggerimenti
AddToCustom(word) Aggiungi al dizionario

TWvdSFilterControl

Costruttore filtri per dati.

Namespace

WvdS.UI.Controls.Specialized

PXAML

<FilterControl DataSource="{Binding DataGrid.DataSource}"
               FilterExpression="{Binding Filter, Mode=TwoWay}" />

Properties

Property Tipo Default Descrizione
DataSource IEnumerable nil Sorgente dati
FilterExpression string | Espressione filtro | ^ AvailableFields | TStringList | nil | Campi disponibili | —- ===== TWvdSExpressionEditor ===== Editor formule. ==== Namespace ==== WvdS.UI.Controls.Specialized ==== PXAML ==== <code xml> <ExpressionEditor Expression=„{Binding Formula}“ DataSource=„{Binding AvailableFields}“ ShowFunctions=„True“ /> </code> ==== Properties ==== | Property | Tipo | Default | Descrizione | ^ Expression | string | Formula
DataSource IEnumerable nil Campi disponibili
ShowFunctions Boolean True Pannello funzioni
ValidatedExpression string | Formula validata | —- ===== TWvdSPropertyGridControl ===== Property-Grid per modifica oggetti. ==== Namespace ==== WvdS.UI.Controls.Specialized ==== PXAML ==== <code xml> <PropertyGridControl SelectedObject=„{Binding SelectedItem}“ ShowCategories=„True“ SortMode=„Categorized“ /> </code> ==== Properties ==== | Property | Tipo | Default | Descrizione | ^ SelectedObject | TObject | nil | Oggetto modificato | ^ SelectedObjects | TObjectList | nil | Oggetti multipli | ^ ShowCategories | Boolean | True | Mostra categorie | ^ SortMode | TSortMode | smCategorized | Alphabetical, Categorized | —- ===== TWvdSSearchControl ===== Campo input ricerca. ==== Namespace ==== WvdS.UI.Controls.Specialized ==== PXAML ==== <code xml> <SearchControl SearchText=„{Binding Query}“ Placeholder=„Search…“ ShowClearButton=„True“ SearchMode=„Instant“ /> </code> ==== Properties ==== | Property | Tipo | Default | Descrizione | ^ SearchText | string | Testo ricerca
Placeholder string | Segnaposto | ^ SearchMode | TSearchMode | smInstant | Instant, OnEnter | ^ MinSearchLength | Integer | 1 | Min. caratteri | ==== Events ==== | Event | Firma | Descrizione | ^ OnSearch | TSearchEvent | Ricerca attivata | —- ===== TWvdSRangeControl ===== Selezione intervallo per serie temporali. ==== Namespace ==== WvdS.UI.Controls.Specialized ==== PXAML ==== <code xml> <RangeControl DataSource=„{Binding TimeData}“ ArgumentMember=„Date“ ValueMember=„Value“ SelectionStart=„{Binding RangeStart}“ SelectionEnd=„{Binding RangeEnd}“ /> </code> ==== Properties ==== | Property | Tipo | Default | Descrizione | ^ DataSource | IEnumerable | nil | Sorgente dati | ^ SelectionStart | TDateTime | 0 | Inizio intervallo | ^ SelectionEnd | TDateTime | 0 | Fine intervallo | —- ===== TWvdSZoomTrackBar ===== Slider zoom. ==== Namespace ==== WvdS.UI.Controls.Specialized ==== PXAML ==== <code xml> <ZoomTrackBar Value=„{Binding ZoomLevel}“ Minimum=„25“ Maximum=„400“ DefaultValue=„100“ ShowButtons=„True“ /> </code> ==== Properties ==== | Property | Tipo | Default | Descrizione | ^ Value | Integer | 100 | Zoom in % | ^ Minimum | Integer | 25 | Minimo | ^ Maximum | Integer | 400 | Massimo | ^ DefaultValue | Integer | 100 | Default (doppio click) | ^ ShowButtons | Boolean | True | Pulsanti +/- | —- ===== TWvdSMarkupEdit ===== Editor markup/markdown. ==== Namespace ==== WvdS.UI.Controls.Specialized ==== PXAML ==== <code xml> <MarkupEdit Text=„{Binding MarkdownContent}“ MarkupType=„Markdown“ ShowPreview=„True“ PreviewPosition=„Right“ /> </code> ==== Properties ==== | Property | Tipo | Default | Descrizione | ^ Text | string | Testo markup
MarkupType TMarkupType mtMarkdown Markdown, Html, BBCode
ShowPreview Boolean True Mostra anteprima
PreviewPosition TPosition pRight Right, Bottom

Vedi anche