Skip to main content

TileBase.NavigationTargetType Property

Allows you to specify the name of the Page class to be opened when an end-user taps/clicks the Tile. This is a dependency property.

Namespace: DevExpress.UI.Xaml.Layout

Assembly: DevExpress.UI.Xaml.Layout.v21.2.dll

NuGet Package: DevExpress.Uwp.Controls

Declaration

public string NavigationTargetType { get; set; }

Property Value

Type Description
String

A String value that specifies the name of the Page class to be opened when an end-user taps/clicks the Tile.

Remarks

The NavigationTargetType property specifies the name of the Page class to be opened when an end-user clicks the Tile.

For the NavigationTargetType property to work, perform the following modifications in the App.xaml.cs (.vb) file.

  1. Change the type of the rootFrame object from the Frame class to the DevExpress.UI.Xaml.Layout.DXFrame class.
  2. Initialize the rootFrame object as follows:

    using DevExpress.UI.Xaml.Layout;
    
    // Create a Frame to act as the navigation context and navigate to the first page
    rootFrame = new DXFrame() { NavigationTypeProvider = new NavigationTypeProvider() };
    
  3. Declare the NavigationTypeProvider class as shown in the code below:

    using System.Reflection;
    
    public class NavigationTypeProvider : TypeProviderBase {
        public override IEnumerable<System.Reflection.Assembly> Assemblies {
            get {
                yield return typeof(App).GetTypeInfo().Assembly;
            }
        }
    }
    
See Also