Inhaltsverzeichnis
API: Vrstice/Trak
API-referenca za menijske vrstice, orodne vrstice in trak.
TWvdSBarManager
Upravitelj za menije in orodne vrstice.
Namespace
WvdS.UI.Controls.Bars
PXAML
<BarManager> <BarManager.MainMenu> <Bar> <BarSubItem Caption="File"> <BarButton Caption="New" Command="{Binding NewCommand}" Shortcut="Ctrl+N" /> <BarButton Caption="Open" Command="{Binding OpenCommand}" Shortcut="Ctrl+O" /> <BarSeparator /> <BarButton Caption="Exit" Command="{Binding ExitCommand}" /> </BarSubItem> <BarSubItem Caption="Edit"> <BarButton Caption="Undo" Command="{Binding UndoCommand}" Shortcut="Ctrl+Z" /> <BarButton Caption="Redo" Command="{Binding RedoCommand}" Shortcut="Ctrl+Y" /> </BarSubItem> </Bar> </BarManager.MainMenu> <BarManager.Toolbars> <Bar Name="Standard"> <BarButton Caption="New" Icon="new" Command="{Binding NewCommand}" /> <BarButton Caption="Open" Icon="open" Command="{Binding OpenCommand}" /> <BarButton Caption="Save" Icon="save" Command="{Binding SaveCommand}" /> </Bar> </BarManager.Toolbars> </BarManager>
Lastnosti
| Lastnost | Tip | Privzeto | Opis |
| MainMenu | TBar | nil | Glavni meni |
|---|---|---|---|
| Toolbars | TBarCollection | nil | Orodne vrstice |
| PopupMenus | TPopupMenuCollection | nil | Kontekstni meniji |
| AllowCustomization | Boolean | True | Prilagajanje dovoljeno |
TWvdSRibbonControl
Trak v slogu Microsoft Office.
Namespace
WvdS.UI.Controls.Bars
PXAML
<RibbonControl ApplicationButtonText="File"> <RibbonControl.ApplicationMenu> <RibbonApplicationMenu> <BarButton Caption="New" Icon="new" Command="{Binding NewCommand}" /> <BarButton Caption="Open" Icon="open" Command="{Binding OpenCommand}" /> <BarButton Caption="Save" Icon="save" Command="{Binding SaveCommand}" /> <BarSeparator /> <BarButton Caption="Exit" Command="{Binding ExitCommand}" /> </RibbonApplicationMenu> </RibbonControl.ApplicationMenu> <RibbonPage Caption="Home"> <RibbonGroup Caption="Clipboard"> <BarButton Caption="Paste" Icon="paste" Size="Large" /> <BarButton Caption="Cut" Icon="cut" /> <BarButton Caption="Copy" Icon="copy" /> </RibbonGroup> <RibbonGroup Caption="Font"> <BarEditItem> <ComboBoxEdit Width="100" ItemsSource="{Binding Fonts}" /> </BarEditItem> <BarButton Caption="Bold" Icon="bold" IsToggle="True" /> <BarButton Caption="Italic" Icon="italic" IsToggle="True" /> </RibbonGroup> </RibbonPage> <RibbonPage Caption="Insert"> <RibbonGroup Caption="Tables"> <BarButton Caption="Table" Icon="table" Size="Large" /> </RibbonGroup> </RibbonPage> </RibbonControl>
Lastnosti
| Lastnost | Tip | Privzeto | Opis |
| Pages | TRibbonPageCollection | nil | Strani traku |
|---|---|---|---|
| SelectedPage | TRibbonPage | nil | Aktivna stran |
| ApplicationButtonText | string | | Besedilo gumba aplikacije |
^ ApplicationMenu | TRibbonApplicationMenu | nil | Meni aplikacije |
^ QuickAccessToolbar | TBar | nil | Hiter dostop |
^ IsMinimized | Boolean | False | Trak minimiziran |
^ Style | TRibbonStyle | rsOffice2019 | Office2007, Office2010, Office2013, Office2016, Office2019 |
—-
===== TWvdSRibbonPage =====
Stran traku (zavihek).
==== Namespace ====
WvdS.UI.Controls.Bars
==== Lastnosti ====
| Lastnost | Tip | Privzeto | Opis |
^ Caption | string | | Naslov zavihka |
| Groups | TRibbonGroupCollection | nil | Skupine |
| IsVisible | Boolean | True | Vidno |
| ContextualTabGroup | string | | Kontekstualni zavihek |
—-
===== TWvdSRibbonGroup =====
Skupina traku znotraj strani.
==== Namespace ====
WvdS.UI.Controls.Bars
==== Lastnosti ====
| Lastnost | Tip | Privzeto | Opis |
^ Caption | string | | Ime skupine |
| Items | TBarItemCollection | nil | Vsebovane postavke |
| ShowDialogLauncher | Boolean | False | Zaganjalnik dialoga |
| CollapsePriority | Integer | 0 | Prioriteta zloženja |
TWvdSBarButton
Gumb orodne vrstice/menija.
Namespace
WvdS.UI.Controls.Bars
PXAML
<BarButton Caption="Save" Icon="save" Command="{Binding SaveCommand}" Shortcut="Ctrl+S" Hint="Save the current document" />
Lastnosti
| Lastnost | Tip | Privzeto | Opis |
| Caption | string | | Besedilo gumba |
^ Icon | TWvdSImageSource | nil | Ikona |
^ Command | IWvdSCommand | nil | Ukaz |
^ Shortcut | string | | Tipkovna bližnjica |
|---|---|---|---|
| Hint | string | | Namig |
^ Size | TBarButtonSize | bsSmall | Small, Large |
^ IsToggle | Boolean | False | Preklopni gumb |
^ IsPressed | Boolean | False | Stanje preklopa |
^ IsEnabled | Boolean | True | Omogočen |
==== Dogodki ====
| Dogodek | Podpis | Opis |
^ OnClick | TNotifyEvent | Gumb kliknjen |
—-
===== TWvdSBarSubItem =====
Podmeni.
==== Namespace ====
WvdS.UI.Controls.Bars
==== PXAML ====
<code xml>
<BarSubItem Caption=„Recent Files“>
<BarButton Caption=„Document1.txt“ />
<BarButton Caption=„Document2.txt“ />
<BarSeparator />
<BarButton Caption=„Clear Recent“ />
</BarSubItem>
</code>
==== Lastnosti ====
| Lastnost | Tip | Privzeto | Opis |
^ Caption | string | | Besedilo menija |
| Icon | TWvdSImageSource | nil | Ikona |
| Items | TBarItemCollection | nil | Postavke podmenija |
TWvdSBarEditItem
Urejevalnik v orodni vrstici/meniju.
Namespace
WvdS.UI.Controls.Bars
PXAML
<BarEditItem Caption="Zoom:"> <SpinEdit Value="{Binding ZoomLevel}" Minimum="25" Maximum="400" Width="80" /> </BarEditItem>
Lastnosti
| Lastnost | Tip | Privzeto | Opis |
| Caption | string |
|---|
PXAML
<DataGrid ContextMenu="{StaticResource GridContextMenu}" /> <PopupMenu x:Key="GridContextMenu"> <BarButton Caption="Edit" Command="{Binding EditCommand}" /> <BarButton Caption="Delete" Command="{Binding DeleteCommand}" /> <BarSeparator /> <BarSubItem Caption="Export"> <BarButton Caption="Excel" Command="{Binding ExportExcel}" /> <BarButton Caption="PDF" Command="{Binding ExportPdf}" /> </BarSubItem> </PopupMenu>
Lastnosti
| Lastnost | Tip | Privzeto | Opis |
| Items | TBarItemCollection | nil | Postavke menija |
|---|
Metode
| Metoda | Opis |
| ShowAt(x, y) | Prikaži meni na položaju |
|---|---|
| ShowAtCursor | Prikaži meni na kurzorju |
| Close | Zapri meni |
Glejte tudi
Zuletzt geändert: dne 29.01.2026 ob 22:27