protected override PropertyManagerPageWindowFromHandleEx CreateControl(IPropertyManagerPageWindowFromHandle swCtrl, IAttributeSet atts, THandler handler, short height) { if (height == -1) { height = 100; } swCtrl.Height = height; return(new PropertyManagerPageWindowFromHandleEx(swCtrl, atts.Id, atts.Tag, handler)); }
//Controls are displayed on the page top to bottom in the order //in which they are added to the object. protected void AddControls() { short controlType = -1; short align = -1; int options = -1; //Add the groups options = (int)swAddGroupBoxOptions_e.swGroupBoxOptions_Expanded | (int)swAddGroupBoxOptions_e.swGroupBoxOptions_Visible; group1 = (IPropertyManagerPageGroup)swPropertyPage.AddGroupBox(group1ID, "Window Form", options); options = (int)swAddGroupBoxOptions_e.swGroupBoxOptions_Checkbox | (int)swAddGroupBoxOptions_e.swGroupBoxOptions_Visible; group2 = (IPropertyManagerPageGroup)swPropertyPage.AddGroupBox(group2ID, "User Control", options); options = (int)swAddGroupBoxOptions_e.swGroupBoxOptions_Checkbox | (int)swAddGroupBoxOptions_e.swGroupBoxOptions_Visible; group3 = (IPropertyManagerPageGroup)swPropertyPage.AddGroupBox(group3ID, "WPF Control", options); //Add the controls to group1` controlType = (int)swPropertyManagerPageControlType_e.swControlType_WindowFromHandle; align = (int)swPropertyManagerPageControlLeftAlign_e.swControlAlign_LeftEdge; options = (int)swAddControlOptions_e.swControlOptions_Enabled | (int)swAddControlOptions_e.swControlOptions_Visible; dotnet1 = (IPropertyManagerPageWindowFromHandle)group1.AddControl(DotNet1ID, controlType, ".Net Windows Form Control", align, options, "This Control is added without COM"); dotnet1.Height = 150; controlType = (int)swPropertyManagerPageControlType_e.swControlType_WindowFromHandle; align = (int)swPropertyManagerPageControlLeftAlign_e.swControlAlign_LeftEdge; options = (int)swAddControlOptions_e.swControlOptions_Enabled | (int)swAddControlOptions_e.swControlOptions_Visible; dotnet2 = (IPropertyManagerPageWindowFromHandle)group2.AddControl(DotNet2ID, controlType, ".Net User Form Control", align, options, "This Control is added without COM"); dotnet2.Height = 150; dotnet3 = (IPropertyManagerPageWindowFromHandle)group3.AddControl(DotNet3ID, controlType, ".Net WPF Control", align, options, "This Control is added without COM"); dotnet3.Height = 50; }
//Controls are displayed on the page top to bottom in the order //in which they are added to the object. protected void AddControls() { short controlType = -1; short align = -1; int options = -1; //Add the groups options = (int)swAddGroupBoxOptions_e.swGroupBoxOptions_Expanded | (int)swAddGroupBoxOptions_e.swGroupBoxOptions_Visible; group1 = (IPropertyManagerPageGroup)swPropertyPage.AddGroupBox(group1ID, "Window Form", options); options = (int)swAddGroupBoxOptions_e.swGroupBoxOptions_Checkbox | (int)swAddGroupBoxOptions_e.swGroupBoxOptions_Visible; group2 = (IPropertyManagerPageGroup)swPropertyPage.AddGroupBox(group2ID, "User Control", options); options = (int)swAddGroupBoxOptions_e.swGroupBoxOptions_Checkbox | (int)swAddGroupBoxOptions_e.swGroupBoxOptions_Visible; group3 = (IPropertyManagerPageGroup)swPropertyPage.AddGroupBox(group3ID, "WPF Control", options); //Add the controls to group1` controlType = (int)swPropertyManagerPageControlType_e.swControlType_WindowFromHandle; align = (int)swPropertyManagerPageControlLeftAlign_e.swControlAlign_LeftEdge; options = (int)swAddControlOptions_e.swControlOptions_Enabled | (int)swAddControlOptions_e.swControlOptions_Visible; dotnet1 = (IPropertyManagerPageWindowFromHandle)group1.AddControl(DotNet1ID, controlType, ".Net Windows Form Control", align, options, "This Control is added without COM"); dotnet1.Height = 150; controlType = (int)swPropertyManagerPageControlType_e.swControlType_WindowFromHandle; align = (int)swPropertyManagerPageControlLeftAlign_e.swControlAlign_LeftEdge; options = (int)swAddControlOptions_e.swControlOptions_Enabled | (int)swAddControlOptions_e.swControlOptions_Visible; dotnet2 = (IPropertyManagerPageWindowFromHandle)group2.AddControl(DotNet2ID, controlType, ".Net User Form Control", align, options, "This Control is added without COM"); dotnet2.Height = 150; dotnet3 = (IPropertyManagerPageWindowFromHandle)group3.AddControl(DotNet3ID, controlType, ".Net WPF Control", align, options, "This Control is added without COM"); dotnet3.Height = 50; }
public IPropertyManagerPageWindowFromHandleObject(IPropertyManagerPageWindowFromHandle IPropertyManagerPageWindowFromHandleinstance) { IPropertyManagerPageWindowFromHandleInstance = IPropertyManagerPageWindowFromHandleinstance; }
public IPropertyManagerPageWindowFromHandleWrapper(IPropertyManagerPageWindowFromHandle winformhandler) { handler = winformhandler; }
internal PropertyPageControlCreator(IPropertyManagerPageWindowFromHandle pmpCtrl) { m_PmpCtrl = pmpCtrl; }