Search found 11 matches

  • 1
  • 2
by co_nl_on
23 Feb 2015, 01:49
Forum: General Discussion
Replies: 15
Views: 4624

Re: Unity: Do DependencyProperties / Control.SetBinding work

By initialize I mean call the constructor, and the first time you call the constructor you also call the static constructor. If I have a UserControl called FooButton, and if I include it in the XAML like this <local: Foobuton ... /> Then the first time I construct an object of that type will be in t...
by co_nl_on
23 Feb 2015, 00:30
Forum: General Discussion
Replies: 15
Views: 4624

Re: Unity: Do DependencyProperties / Control.SetBinding work

BINGO found the bug. If a UserControl has a dependency property, it throws this exception (and crashes the Unity Editor) if it's first initialized via C# code. If the first initialization happens in XAML then everything works fine. The work around for this is easy now that I know it. Check your sta...
by co_nl_on
22 Feb 2015, 22:59
Forum: General Discussion
Replies: 15
Views: 4624

Re: Unity: Do DependencyProperties / Control.SetBinding work

Still getting the same error. Let me continue investigating. In a different project it worked just fine :cry:
by co_nl_on
22 Feb 2015, 20:26
Forum: General Discussion
Replies: 15
Views: 4624

Re: Unity: Do DependencyProperties / Control.SetBinding work

I tried to repro yesterday with 1.2RC2 but then it actually worked. Today I'm going to see if it works now.
by co_nl_on
22 Feb 2015, 09:25
Forum: General Discussion
Replies: 15
Views: 4624

Re: Unity: Do DependencyProperties / Control.SetBinding work

OK tried to repro with a simpler type. Apparently you can't have readonly DependencyProperties with NoesisGUI.
by co_nl_on
22 Feb 2015, 04:27
Forum: General Discussion
Replies: 15
Views: 4624

Unity: Do DependencyProperties / Control.SetBinding work?

Can I make dependency properties for my UserControls and use them like I would in WPF? I'm attempting this but I get the error: Exception: Unknown Unity extended type Noesis.Error.Check () (at Assets/Plugins/NoesisGUI/Scripts/Core/NoesisError.cs:21) Noesis.DependencyProperty.Noesis_RegisterDependenc...
by co_nl_on
08 Feb 2015, 23:49
Forum: General Discussion
Replies: 2
Views: 1828

Re: Can't control ProgressBar Height/Thickness

I was able to work around this by setting its height to 1 and wrapping it in a viewbox.
by co_nl_on
08 Feb 2015, 06:02
Forum: General Discussion
Replies: 2
Views: 1828

Can't control ProgressBar Height/Thickness

Alright here's my code <Grid     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"     xmlns:d="http://schemas.microsoft.com/expression/blend/2008"     xmlns:mc="http://schemas.openxmlformat...
by co_nl_on
05 Feb 2015, 04:45
Forum: General Discussion
Replies: 1
Views: 1090

Feature Request: Seal non-inheritable classes

I don't know about you, but I much prefer to get a compiler error than have to dig through documentation to find out that I wasn't supposed to do something. Plus, the main way that I learn a library is just by monkeying around with it. With that in mind, it'd be nice if the classes which I'm not sup...
by co_nl_on
04 Feb 2015, 10:57
Forum: General Discussion
Replies: 2
Views: 2033

Re: Can't name UserControl and find with FindName

It worked!

Well, finding the code-inserted control didn't work, but I think I understand why it wouldn't.

Thanks for the speedy response.
  • 1
  • 2