Creating objects like Noesis.Button directly within C#
Posted: 15 Oct 2013, 15:50
Hi,
we have a few cases in our project where we directly create objects like a Noesis Button or StackPanel directly in our C# code.
The code looks something like this:
//
Button objButton = new Button().
objButton.SetContent("text bla bla");
//
With 1.0.4 this worked without problems. Unfortunately with 1.1.0 there is an access violation occuring inside the called functions like SetContent(). As far as i have seen there is a new default constructor added in the proxies like Button.cs. And i guess it creates the object in the wrong address space (outside the dll) if we do it as we did?
What is the correct approach to create a Noesis UiElement within c# code?
best regards,
Andreas
we have a few cases in our project where we directly create objects like a Noesis Button or StackPanel directly in our C# code.
The code looks something like this:
//
Button objButton = new Button().
objButton.SetContent("text bla bla");
//
With 1.0.4 this worked without problems. Unfortunately with 1.1.0 there is an access violation occuring inside the called functions like SetContent(). As far as i have seen there is a new default constructor added in the proxies like Button.cs. And i guess it creates the object in the wrong address space (outside the dll) if we do it as we did?
What is the correct approach to create a Noesis UiElement within c# code?
best regards,
Andreas