简体   繁体   中英

Plugin Window with .Show() disables DataGrid Ctrl+C function .ShowDialog() doesn't

I'm working on a plugin dll for Revit. If I render the main window with .Show() the DataGrid lose it's function to be copied by pressing Ctrl+C. However if I use .ShowDialog() Ctrl+C works fine. I do not want the window to be modal and want to use .Show() method.

Do you have any idea how to correct Ctrl+C function with .Show() method? Thanks

I believe that the key is to make your form a child of the Revit process.

See Jeremy's blog post here: http://thebuildingcoder.typepad.com/blog/2009/02/revit-window-handle-and-modeless-dialogues.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM