I'm tagging onto this thread as my query seems sort of related to BrennanSalibrici's queries re what we can use in Addons.
I have pretty much finished an Addon... but I have spent about 3 weeks hitting my head on a brick wall... hope Jesse can provide guidance ;-)
Actually, my Addon started as a VS Windows Forms project... works great. I thought I should convert it to an Addon... and that's where the pain began!
I really wanted to use the Forms DataGridView control, does everything I want... but found I had to resort to WindowsFormsHost (and WindowsFormsIntegration.dll) to embed a Forms control inside a standard System.Windows.Control. Well... all that worked fine in a separate VS project, but it seems no amount of tinkering could convince the Windows form host to render in my NT Addon. No errors... I see the data in the VS debugger... but it just won't show zip.
Tried various workarounds... DataGrid, XamDataGrid... but each one has some problem that I can't solve.
So... bottom line: should it be possible to get the WindowsFormsHost thing to operate inside Ninja Addon code? Or is there some fundamental reason that will never work?
Thanks,
Let me know if you think this should be a new thread...
T.
PS... All of my efforts might be rendered a waste of time... if, I knew how to create the sort of grid that NT uses. Is that available to us developers?
Cheers,
Comment