StartPageRelativeExtension Class

Definition

A markup extension that enables custom start pages to use relative paths (where "relative" means relative to the XAML file rather than relative to VS) on any property expecting a Uri, ImageSource, or string.

Usage:

public ref class StartPageRelativeExtension : System::Windows::Markup::MarkupExtension
public class StartPageRelativeExtension : System.Windows.Markup.MarkupExtension
type StartPageRelativeExtension = class
    inherit MarkupExtension
Public Class StartPageRelativeExtension
Inherits MarkupExtension
Inheritance
StartPageRelativeExtension

Remarks

Usage: <Image Source="{vs:StartPageRelative mypic.png}"/>

Constructors

StartPageRelativeExtension(String)

Constructor

Methods

ProvideValue(IServiceProvider)

Returns the object based on the relative path provided.

Applies to