Skip to content

Templating

JanDotNet edited this page Jul 28, 2017 · 4 revisions

Note: Templating is available in the licensed version only. See FeatureTour.de for details.

It is possible to create a custom control template for the whole popup. The demo application contains the OrginalTheme as well as one ExampleTheme that is slightly different.

Custom View Model

With version 1.2.0, it is also possible to use a custom view model behind the popup. That may be helpful for advanced scenarios when using custom templates.

To use a custom view model, just set the factory method as shown below:

FeatureTour.SetViewModelFactoryMethod(tourRun => new CustomTourViewModel(tourRun));

Note that the custom view model has to derive from TourViewModel:

public class CustomTourViewModel : TourViewModel
{
    public CustomTourViewModel(ITourRun run)
        : base(run) { }

    public string CustomProperty => "Any Text";
}

Clone this wiki locally