Partager via


StartPageRelativeExtension Class

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.

Namespace:  Microsoft.VisualStudio.PlatformUI
Assembly:  Microsoft.VisualStudio.Shell.StartPage (in Microsoft.VisualStudio.Shell.StartPage.dll)

Syntax

'Déclaration
Public Class StartPageRelativeExtension _
    Inherits MarkupExtension
'Utilisation
Dim instance As StartPageRelativeExtension
public class StartPageRelativeExtension : MarkupExtension
public ref class StartPageRelativeExtension : public MarkupExtension
type StartPageRelativeExtension =  
    class
        inherit MarkupExtension
    end
public class StartPageRelativeExtension extends MarkupExtension

Remarks

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

Inheritance Hierarchy

System.Object
  System.Windows.Markup.MarkupExtension
    Microsoft.VisualStudio.PlatformUI.StartPageRelativeExtension

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

StartPageRelativeExtension Members

Microsoft.VisualStudio.PlatformUI Namespace