xarial / xcad

Framework for developing CAD applications for SOLIDWORKS, including add-ins, stand-alone applications, macro features, property manager pages, etc.
https://xcad.net
MIT License
131 stars 28 forks source link

About PMPage problem #101

Closed Brent-bai closed 1 year ago

Brent-bai commented 1 year ago

I encountered the following issues when using the PMPage interface: 1 The custom wpf interface only displays a portion in the property manager page; 2. Can a label be added on the same line before the text box to identify the content to be filled in this text box; 3. It seems that the webview2 control cannot be used for wpf in the class library, and the display is a blank page

Brent-bai commented 1 year ago

How do I chage the size of the user control wpf view (the yellow box is the true size) which in a pmp page. control

Brent-bai commented 1 year ago

I chage a method: add the Mgrtab. ` private void CreatFeatureMgrTab() { var doc = Application.Documents.Active; if (doc == null) { return; } // prp_m_page.Show(prp_m_model); if (tab == null) { tab = CreateFeatureManagerTab(doc);

            tab.Control.Sw = Application.Sw;
        }
        else
        {
            tab.Close();
            tab.Dispose();
            tab = null;
        }

    }

` It also does not work well, when I click the tab, it only display part view of the tab: tab So i need adjust the size of whole tab every time.

artem1t commented 1 year ago

How do I chage the size of the user control wpf view (the yellow box is the true size) which in a pmp page. control

You can use ControlOptionsAttribute

Brent-bai commented 1 year ago

Thanks you very much! It worked.