API-Referenz für spezialisierte Komponenten.
Kalender und Terminplanung.
WvdS.UI.Controls.Specialized
<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>
| Property | Typ | Default | Beschreibung |
| DataSource | IEnumerable | nil | Termin-Daten |
|---|---|---|---|
| StartProperty | string | 'Start' | Start-Feld |
| EndProperty | string | 'End' | Ende-Feld |
| SubjectProperty | string | 'Subject' | Betreff-Feld |
| CurrentDate | TDateTime | Today | Aktives Datum |
| ViewType | TSchedulerViewType | svDay | Day, Week, Month, Timeline |
| Resources | TResourceCollection | nil | Ressourcen |
| FirstDayOfWeek | TDayOfWeek | dwMonday | Wochenstart |
| WorkTimeStart | TTime | 08:00 | Arbeitsbeginn |
| WorkTimeEnd | TTime | 18:00 | Arbeitsende |
| Event | Signatur | Beschreibung |
| OnAppointmentClick | TAppointmentEvent | Termin geklickt |
|---|---|---|
| OnAppointmentEditing | TAppointmentEditEvent | Termin wird bearbeitet |
| OnDateChanged | TDateChangedEvent | Datum gewechselt |
Word-Prozessor-Control.
WvdS.UI.Controls.Specialized
<RichEditControl Document="{Binding DocumentContent}" DocumentFormat="OpenXml" ShowRuler="True" ShowStatusBar="True" />
| Property | Typ | Default | Beschreibung |
| Document | TWvdSDocument | nil | Dokument |
|---|---|---|---|
| DocumentFormat | TDocumentFormat | dfRtf | Rtf, OpenXml, Html, PlainText |
| ShowRuler | Boolean | True | Lineal anzeigen |
| ShowStatusBar | Boolean | True | Statusleiste |
| ReadOnly | Boolean | False | Nur-Lesen |
| SpellCheckEnabled | Boolean | True | Rechtschreibprüfung |
| Methode | Beschreibung |
| LoadDocument(path) | Dokument laden |
|---|---|
| SaveDocument(path, format) | Dokument speichern |
| ExportToPdf(path) | Als PDF exportieren |
Tabellenkalkulation.
WvdS.UI.Controls.Specialized
<SpreadsheetControl Document="{Binding Workbook}" ActiveSheet="{Binding CurrentSheet}" ShowFormulaBar="True" />
| Property | Typ | Default | Beschreibung |
| Document | TWvdSWorkbook | nil | Arbeitsmappe |
|---|---|---|---|
| ActiveSheet | TWvdSWorksheet | nil | Aktives Blatt |
| ShowFormulaBar | Boolean | True | Formelleiste |
| ShowSheetTabs | Boolean | True | Blatt-Tabs |
| ReadOnly | Boolean | False | Nur-Lesen |
| Methode | Beschreibung |
| LoadDocument(path) | Excel-Datei laden |
|---|---|
| SaveDocument(path) | Speichern |
| ExportToPdf(path) | Als PDF |
| Calculate | Formeln berechnen |
Kartenanzeige.
WvdS.UI.Controls.Specialized
<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>
| Property | Typ | Default | Beschreibung |
| CenterPoint | TGeoPoint | (0,0) | Kartenmitte |
|---|---|---|---|
| ZoomLevel | Double | 10 | Zoom-Stufe |
| MapProvider | TMapProvider | mpOpenStreetMap | OpenStreetMap, Bing, etc. |
| Layers | TMapLayerCollection | nil | Kartenebenen |
| ShowMiniMap | Boolean | False | Minikarte |
| ShowScale | Boolean | True | Maßstab |
Diagramm-Editor.
WvdS.UI.Controls.Specialized
<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>
| Property | Typ | Default | Beschreibung |
| Document | TDiagramDocument | nil | Diagramm |
|---|---|---|---|
| Shapes | TDiagramShapeCollection | nil | Formen |
| Connectors | TConnectorCollection | nil | Verbindungen |
| ShowGrid | Boolean | True | Raster anzeigen |
| SnapToGrid | Boolean | True | Am Raster ausrichten |
PDF-Anzeige.
WvdS.UI.Controls.Specialized
<PdfViewer DocumentSource="{Binding PdfPath}" CurrentPage="{Binding CurrentPage}" ZoomMode="FitWidth" />
| Property | Typ | Default | Beschreibung |
| DocumentSource | string | | PDF-Pfad oder Stream |
^ CurrentPage | Integer | 1 | Aktuelle Seite |
^ PageCount | Integer | 0 | Seitenanzahl (read-only) |
^ ZoomLevel | Double | 100 | Zoom in % |
^ ZoomMode | TZoomMode | zmActualSize | ActualSize, FitWidth, FitPage |
^ ShowToolbar | Boolean | True | Toolbar |
^ ShowThumbnails | Boolean | False | Seitenvorschau |
==== Methoden ====
| Methode | Beschreibung |
^ Print | Drucken |
^ GoToPage(n) | Zu Seite springen |
^ Search(text) | Text suchen |
—-
===== TWvdSImageGallery =====
Bildergalerie.
==== Namespace ====
WvdS.UI.Controls.Specialized
==== PXAML ====
<code xml>
<ImageGallery ItemsSource=„{Binding Images}“
ImageMember=„Url“
ThumbnailMember=„Thumbnail“
CaptionMember=„Title“
ViewMode=„Thumbnails“ />
</code>
==== Properties ====
| Property | Typ | Default | Beschreibung |
^ ItemsSource | IEnumerable | nil | Bild-Daten |
^ ImageMember | string | | Bild-URL-Feld |
|---|---|---|---|
| ThumbnailMember | string | | Thumbnail-Feld |
^ CaptionMember | string | | Titel-Feld |
| SelectedImage | TObject | nil | Ausgewähltes Bild |
| ViewMode | TGalleryViewMode | gvThumbnails | Thumbnails, Slideshow |
| ThumbnailSize | Integer | 100 | Thumbnail-Größe |
Rechtschreibprüfung.
WvdS.UI.Controls.Specialized
SpellChecker := TWvdSSpellChecker.Create; SpellChecker.Dictionary := 'de-DE'; SpellChecker.CheckControl(MemoEdit);
| Property | Typ | Default | Beschreibung |
| Dictionary | string | 'en-US' | Wörterbuch |
|---|---|---|---|
| CustomDictionary | TStrings | nil | Eigene Wörter |
| IgnoreUppercase | Boolean | True | Großbuchstaben ignorieren |
| IgnoreNumbers | Boolean | True | Zahlen ignorieren |
| Methode | Beschreibung |
| Check(text) | Text prüfen |
|---|---|
| GetSuggestions(word) | Vorschläge holen |
| AddToCustom(word) | Zum Wörterbuch hinzufügen |
Filter-Builder für Daten.
WvdS.UI.Controls.Specialized
<FilterControl DataSource="{Binding DataGrid.DataSource}" FilterExpression="{Binding Filter, Mode=TwoWay}" />
| Property | Typ | Default | Beschreibung |
| DataSource | IEnumerable | nil | Datenquelle |
|---|---|---|---|
| FilterExpression | string | | Filter-Ausdruck |
^ AvailableFields | TStringList | nil | Verfügbare Felder |
—-
===== TWvdSExpressionEditor =====
Formel-Editor.
==== Namespace ====
WvdS.UI.Controls.Specialized
==== PXAML ====
<code xml>
<ExpressionEditor Expression=„{Binding Formula}“
DataSource=„{Binding AvailableFields}“
ShowFunctions=„True“ />
</code>
==== Properties ====
| Property | Typ | Default | Beschreibung |
^ Expression | string | | Formel |
| DataSource | IEnumerable | nil | Verfügbare Felder |
| ShowFunctions | Boolean | True | Funktionen-Panel |
| ValidatedExpression | string | | Geprüfte Formel |
—-
===== TWvdSPropertyGridControl =====
Property-Grid für Objektbearbeitung.
==== Namespace ====
WvdS.UI.Controls.Specialized
==== PXAML ====
<code xml>
<PropertyGridControl SelectedObject=„{Binding SelectedItem}“
ShowCategories=„True“
SortMode=„Categorized“ />
</code>
==== Properties ====
| Property | Typ | Default | Beschreibung |
^ SelectedObject | TObject | nil | Bearbeitetes Objekt |
^ SelectedObjects | TObjectList | nil | Mehrere Objekte |
^ ShowCategories | Boolean | True | Kategorien anzeigen |
^ SortMode | TSortMode | smCategorized | Alphabetical, Categorized |
—-
===== TWvdSSearchControl =====
Such-Eingabefeld.
==== Namespace ====
WvdS.UI.Controls.Specialized
==== PXAML ====
<code xml>
<SearchControl SearchText=„{Binding Query}“
Placeholder=„Search…“
ShowClearButton=„True“
SearchMode=„Instant“ />
</code>
==== Properties ====
| Property | Typ | Default | Beschreibung |
^ SearchText | string | | Suchtext |
| Placeholder | string | | Platzhalter |
^ SearchMode | TSearchMode | smInstant | Instant, OnEnter |
^ MinSearchLength | Integer | 1 | Min. Zeichen |
==== Events ====
| Event | Signatur | Beschreibung |
^ OnSearch | TSearchEvent | Suche ausgelöst |
—-
===== TWvdSRangeControl =====
Bereichsauswahl für Zeitreihen.
==== 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 | Typ | Default | Beschreibung |
^ DataSource | IEnumerable | nil | Datenquelle |
^ SelectionStart | TDateTime | 0 | Bereichsanfang |
^ SelectionEnd | TDateTime | 0 | Bereichsende |
—-
===== TWvdSZoomTrackBar =====
Zoom-Slider.
==== Namespace ====
WvdS.UI.Controls.Specialized
==== PXAML ====
<code xml>
<ZoomTrackBar Value=„{Binding ZoomLevel}“
Minimum=„25“ Maximum=„400“
DefaultValue=„100“
ShowButtons=„True“ />
</code>
==== Properties ====
| Property | Typ | Default | Beschreibung |
^ Value | Integer | 100 | Zoom in % |
^ Minimum | Integer | 25 | Minimum |
^ Maximum | Integer | 400 | Maximum |
^ DefaultValue | Integer | 100 | Default (Doppelklick) |
^ ShowButtons | Boolean | True | +/- Buttons |
—-
===== TWvdSMarkupEdit =====
Markup/Markdown-Editor.
==== Namespace ====
WvdS.UI.Controls.Specialized
==== PXAML ====
<code xml>
<MarkupEdit Text=„{Binding MarkdownContent}“
MarkupType=„Markdown“
ShowPreview=„True“
PreviewPosition=„Right“ />
</code>
==== Properties ====
| Property | Typ | Default | Beschreibung |
^ Text | string | | Markup-Text |
| MarkupType | TMarkupType | mtMarkdown | Markdown, Html, BBCode |
| ShowPreview | Boolean | True | Vorschau anzeigen |
| PreviewPosition | TPosition | pRight | Right, Bottom |