BaseUriHelper.GetBaseUri(DependencyObject) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the value of the BaseUri
for a specified UIElement.
public:
static Uri ^ GetBaseUri(System::Windows::DependencyObject ^ element);
[System.Security.SecurityCritical]
public static Uri GetBaseUri(System.Windows.DependencyObject element);
public static Uri GetBaseUri(System.Windows.DependencyObject element);
[<System.Security.SecurityCritical>]
static member GetBaseUri : System.Windows.DependencyObject -> Uri
static member GetBaseUri : System.Windows.DependencyObject -> Uri
Public Shared Function GetBaseUri (element As DependencyObject) As Uri
- element
- DependencyObject
The element from which the property value is read.
The base URI of a given element.
- Attributes
element
is null
.
Use this method to get the IUriContext.BaseUri property if it is implemented or the BaseUri attached property if is set on an element. GetBaseUri will traverse the parent elements of element
to search for the nearest BaseUri (IUriContext or attached property).
Ürün | Sürümler |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9, 10 |
.NET geri bildirimi
.NET, açık kaynak bir projedir. Geri bildirim sağlamak için bir bağlantı seçin: