Runtime license for WPF UserControl

Hi Northwoods,

Is there any way to deploy a GoXam runtime license for our WPF class that does not inherit from System.Windows.Application, without doing something like instantiating a trivial class?
Thanks!

What kind of application did you want to run your diagram-based software in? Is it not a WPF application?

Hi Walter,

We want this in a WPF user control (System.Windows.Controls.UserControl). We’re finding that Application.Current is null. GoXamIntro.pdf suggests creating a trivial class that inherits from System.Windows.Application, but is there any way to do this without instantiating such a class?

What’s the problem with doing that?

Hi Walter,

This user control is currently used in multiple applications, including applications in the same app domain. The case where we’re trying to use this user control in the same app domain is problematic with the trivial class approach, since there is already an instance of System.Windows.Application.

Anyway we think we can probably work around this with some conditional logic with this trivial class, but it seems to be getting increasingly burdensome to support setting the runtime license the way we’re specifically using this, and we’re also getting nervous about other unintended consequences we may not be anticipiating when instantiating such a class in our user control. Before we commit to this approach, we are wondering if there are any other alternatives we can consider in setting this license.

BTW, this challenge aside, our team is absolutely loving GoXam.

Thanks!