Back to Devexpress

ViewServiceBase.ViewTemplate Property

wpf-devexpress-dot-mvvm-dot-ui-dot-viewservicebase.md

latest3.4 KB
Original Source

ViewServiceBase.ViewTemplate Property

Specifies the view template.

Namespace : DevExpress.Mvvm.UI

Assembly : DevExpress.Xpf.Core.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public DataTemplate ViewTemplate { get; set; }
vb
Public Property ViewTemplate As DataTemplate

Property Value

TypeDescription
DataTemplate

A DataTemplate object.

|

Remarks

To learn more, see View creation mechanisms.

The following code snippets (auto-collected from DevExpress Examples) contain references to the ViewTemplate property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-reporting-use-custom-controls-for-editing-report-content-in-print-preview/CS/MainWindow.xaml#L24

xml
<dx:DialogService Name="previewService">
    <dx:DialogService.ViewTemplate>
        <DataTemplate>

wpf-lookupedit-process-new-values/CS/HowToCreateLookUpEdit/MainWindow.xaml#L15

xml
<dx:DialogService DialogWindowStartupLocation="CenterOwner">
    <dx:DialogService.ViewTemplate>
        <DataTemplate>

how-to-use-the-wpf-wizardservice/CS/VM-DrivenWizard/MainWindow.xaml#L20

xml
<dx:DialogService UnregisterOnUnloaded="True">
    <dx:DialogService.ViewTemplate>
        <DataTemplate>

reporting-wpf-mvvm-show-report-document-preview/CS/MainWindow.xaml#L14

xml
<dx:DialogService Name="previewDialogService">
    <dx:DialogService.ViewTemplate>
        <DataTemplate>

reporting-wpf-mvvm-viewmodel-data-to-report/CS/MainWindow.xaml#L16

xml
<dx:DialogService>
    <dx:DialogService.ViewTemplate>
        <DataTemplate>

See Also

ViewServiceBase Class

ViewServiceBase Members

DevExpress.Mvvm.UI Namespace