Class PmpWpfHost
- Namespace
- Hymma.Solidworks.Addins
- Assembly
- Hymma.Solidworks.Addins.dll
a windows winForm host that solidworks uses to show win forms or wpf
public class PmpWpfHost : PmpControl<IPropertyManagerPageWindowFromHandle>, IWrapSolidworksObject<IPropertyManagerPageWindowFromHandle>, IReleaseSolidworksObject, IEquatable<PmpWpfHost>, IDisposable
- Inheritance
-
PmpControl<IPropertyManagerPageWindowFromHandle>PmpWpfHost
- Implements
-
IWrapSolidworksObject<IPropertyManagerPageWindowFromHandle>
- Inherited Members
Remarks
your addin must add a reference to WindowsFormsIntegration
Constructors
PmpWpfHost(UserControl, int)
constructor
public PmpWpfHost(UserControl winFormOrWpfControl, int height)
Parameters
winFormOrWpfControlUserControla wpf controller
heightintheight of this control in property manager page if set to zero the control will not appear
PmpWpfHost(ElementHost, UserControl, int)
default constructor
public PmpWpfHost(ElementHost elementHost, UserControl wpfControl, int height)
Parameters
elementHostElementHostsolidworks uses ElementHost to hook into a windows winForm
wpfControlUserControlwpf controller
heightintheight of this control in property manager page if set to zero the control will not appear
Properties
ElementHost
A host for WindowsControl
public ElementHost ElementHost { get; }
Property Value
Enabled
enables or disables this property control on
public override bool Enabled { get; set; }
Property Value
WindowsControl
a windows winForm or wpf controller
public UserControl WindowsControl { get; }
Property Value
Methods
Dispose()
properly disposes of this object
public void Dispose()
Equals(PmpWpfHost)
makes sure each SwWindowHandler has its unique ElementHost
public bool Equals(PmpWpfHost other)
Parameters
otherPmpWpfHost
Returns
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with the current object.