IHostNativeControls Interface
- Last UpdatedAug 21, 2026
- 1 minute read
This interface to be optionally implemented by Apps if they host native windows controls and those controls are not wrapped using the WPF WindowsFormsHost to integrate with WPF control. ViewApp framework uses this interface to detect whether an App has any native controls. This is used to enable certain functionalities such as showing natural navigation buttons on top of the native controls.
'Declaration
<SuppressMessageAttribute("Microsoft.Design",
"CA1040:AvoidEmptyInterfaces",
Justification="Backward compatible")>
Public Interface IHostNativeControls
Inherits IHostNativeControls
[SuppressMessage("Microsoft.Design",
"CA1040:AvoidEmptyInterfaces",
Justification="Backward compatible")]
public interface IHostNativeControls : IHostNativeControls
[SuppressMessage("Microsoft.Design",
"CA1040:AvoidEmptyInterfaces",
Justification="Backward compatible")]
public interface class IHostNativeControls : public IHostNativeControls