IXRUIElement::SetVisibility (Compact 2013)
3/28/2014
This method determines whether this UI element is visible. A UI element that is not visible cannot be rendered on-screen and cannot communicate its desired size to the layout system.
Syntax
virtual HRESULT STDMETHODCALLTYPE SetVisibility(
XRVisibility Visibility
) = 0;
Parameters
- Visibility
[in] XRVisibility structure that describes the new display state of this UI element.
Return Value
Returns an HRESULT that indicates success or failure.
Remarks
When pVisibility is false, this UI element does not participate in input events, is not in a tab sequence (and cannot receive UI focus), and is excluded during hit testing.
Note
The value that is provided in IXRUIElement::SetIsHitTestVisible is ignored when a UI element is not visible.
.NET Framework Equivalent
System.Windows.UIElement.Visibility
Requirements
Header |
XamlRuntime.h |
sysgen |
SYSGEN_XAML_RUNTIME |