AVEVA OMI Software Developer Kit
Members 



ArchestrA.Client.CommonUtil Namespace : WinFormContainer Class
WinFormContainer Class
This class adds logic to ensure the embedded WinForms control is disposed properly when disposing the WPF wrapper control.
Syntax
'Declaration
 
<DesignerCategoryAttribute("code")>
<ContentPropertyAttribute("Child")>
<DefaultEventAttribute("ChildChanged")>
<StyleTypedPropertyAttribute(Property="FocusVisualStyle", StyleTargetType=System.Windows.Controls.Control)>
<XmlLangPropertyAttribute("Language")>
<UsableDuringInitializationAttribute(True)>
<RuntimeNamePropertyAttribute("Name")>
<UidPropertyAttribute("Uid")>
<TypeDescriptionProviderAttribute(MS.Internal.ComponentModel.DependencyObjectProvider)>
<NameScopePropertyAttribute("NameScope", System.Windows.NameScope)>
Public Class WinFormContainer 
   Inherits System.Windows.Forms.Integration.WindowsFormsHost
   Implements ArchestrA.Client.RuntimeData.ICustomWinformsHostArchestrA.Client.RuntimeData.IUserActivity 
'Usage
 
Dim instance As WinFormContainer
[DesignerCategory("code")]
[ContentProperty("Child")]
[DefaultEvent("ChildChanged")]
[StyleTypedProperty(Property="FocusVisualStyle", StyleTargetType=System.Windows.Controls.Control)]
[XmlLangProperty("Language")]
[UsableDuringInitialization(true)]
[RuntimeNameProperty("Name")]
[UidProperty("Uid")]
[TypeDescriptionProvider(MS.Internal.ComponentModel.DependencyObjectProvider)]
[NameScopeProperty("NameScope", System.Windows.NameScope)]
public class WinFormContainer : System.Windows.Forms.Integration.WindowsFormsHost, ArchestrA.Client.RuntimeData.ICustomWinformsHostArchestrA.Client.RuntimeData.IUserActivity  
[DesignerCategory("code")]
[ContentProperty("Child")]
[DefaultEvent("ChildChanged")]
[StyleTypedProperty(Property="FocusVisualStyle", StyleTargetType=System.Windows.Controls.Control)]
[XmlLangProperty("Language")]
[UsableDuringInitialization(true)]
[RuntimeNameProperty("Name")]
[UidProperty("Uid")]
[TypeDescriptionProvider(MS.Internal.ComponentModel.DependencyObjectProvider)]
[NameScopeProperty("NameScope", System.Windows.NameScope)]
public ref class WinFormContainer : public System.Windows.Forms.Integration.WindowsFormsHost, ArchestrA.Client.RuntimeData.ICustomWinformsHostArchestrA.Client.RuntimeData.IUserActivity  
Inheritance Hierarchy

System.Object
   System.Windows.Threading.DispatcherObject
      System.Windows.DependencyObject
         System.Windows.Media.Visual
            System.Windows.UIElement
               System.Windows.FrameworkElement
                  System.Windows.Interop.HwndHost
                     System.Windows.Forms.Integration.WindowsFormsHost
                        ArchestrA.Client.CommonUtil.WinFormContainer

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also