IXRHyperlinkButton::SetTargetName (Compact 2013)
3/28/2014
This method sets the target window in which you would like the web page to display.
Syntax
virtual HRESULT STDMETHODCALLTYPE SetTargetName(
const WCHAR* szTargetName
) = 0;
Parameters
szTargetName
[in] The target window in which you would like the web page to display.The following table lists several target types for opening a web page.
Target
Description
_blank
Loads the web page into a new blank window.
_parent
Loads the web page into the parent window.
_search
Loads the web page into the browser search pane.
_self
Loads the page into the same window in which the link was clicked.
_top
Loads the web page into the topmost window.
_media
Loads the web page into the HTML content area of the Media Bar.
Return Value
Returns an HRESULT that indicates success or failure.
Remarks
The value of szTargetName corresponds to the HTML TARGET
attribute.
The web page is specified in IXRHyperlinkButton::SetNavigateUri.
The OnClick event handler code can retrieve the target window in which to open the web page by calling IXRHyperlinkButton::GetTargetName.
.NET Framework Equivalent
System.Windows.Controls.HyperlinkButton.TargetName
Requirements
Header |
XamlRuntime.h |
sysgen |
SYSGEN_XAML_RUNTIME |