I have successfully launched WPF application in NX Model using Custom Button, But when mouse leaves(moves) outside of CustomWPF application boundary(Geaometry), busy indicator is displaying. Is there any way to avoid this?.. I think NX model is doing some busy task in background/hang, that may be the reason showing busy indicator(round one ).
a) I have used "Show()" instead of "ShowDialog".
b) Removed “StartupUri” from App.xaml.
c) MainWindow instantiated from in "OnStartUp()"
d) I have created application as ".exe" then renamed to ".dll "and start from NX using custom button.
Please check attachement "Snap_WPF.png" for code snap.
Rebuild you application as DLL and we can check if that works better.
An EXE is not a DLL and vice versa, some things are still too different to just rename the files.
Production: NX10.0.3, VERICUT 8.1, FBM, MRL 3.1.7 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 10.1
Development: VB.NET, Tcl/Tk Testing: NX12.0 Preparing: NX12.0
Employees of the customers, together we are strong
How to Get the Most from Your Signature in the Community
NX Customization - Best Practice Guide
Changed exe to dll as you commented + changed below way the window get initialized. so issue has been resolved.
public static void Main()
App app = new App();
window= new MainWindow();