I have some short questions that refer to the SampleCSWinForms:
In the example I noticed that the SampleCsObjectPropertesPage is not there by default (OnLoad) However, once I execute any of the the SampleCs…commands, then when I select an object the Sample Object Property Page is there. Why is that? (The same with Document Properties and Options…they only appear after executing any of the commands)
I guess the best way (or only way) to connect the SampleCsObjectPropertiesPage with the selected Object or Objects is over the UserControl instance and ShouldDisplay :
public override object PageControl => m_control ?? (m_control = new SampleCsObjectPropertiesUserControl());
But once I select an object and I try to acces “m_control” in ShouldDisplay, I get the message that m_control is null. This happens only before I actually click on the new ObjectProperty icon for the first time…which means that this Instance is initialized only after I click on it… After that it works fine…even when some other Property Page is selected, the m_control is there… Why is that? Can this Property Page be initialized OnLoad?