Search found 36 matches

by MrHayato
20 Aug 2015, 12:00
Forum: General Discussion
Replies: 7
Views: 3014

Re: FindResource no longer goes up the visual tree?

For now, we need a workaround for the TrackBgBrush issue because we can't release a feature without the Loading bug discussed in the forums before, and the workaround for that doesn't work. Now this bug is preventing us from finishing this feature as well. Perhaps posting the template that noesis us...
by MrHayato
20 Aug 2015, 01:43
Forum: General Discussion
Replies: 7
Views: 3014

Re: FindResource no longer goes up the visual tree?

Confirmed that this is caused by the scroll viewer's scrollbar. If I don't use my scrollbar's custom style, it no longer holds onto the Noesis.dll. Here's my style for the scrollbar. <Style x:Key="ScrollBarBaseStyle" TargetType="{x:Type ScrollBar}"> <Setter Property="Foreground" Value="{DynamicResou...
by MrHayato
20 Aug 2015, 01:15
Forum: General Discussion
Replies: 7
Views: 3014

Re: FindResource no longer goes up the visual tree?

Found out more information. Managed to fix the cause of the crash, which was caused by one of our controls binding to an ObservableCollection<bool>(). Is this not allowed? Wrapping the boolean in a class and using that in the observable collection seems to be fine and the exception no longer occurs....
by MrHayato
19 Aug 2015, 21:44
Forum: General Discussion
Replies: 7
Views: 3014

Re: FindResource no longer goes up the visual tree?

We are able to find out more information regarding this. If we do the FindResource in a Loaded event, the resource is found. It probably has to do with the control not actually being in the tree yet when OnPostInit() is fired. In our case, we have an attached property called MultiStyle that combines...
by MrHayato
19 Aug 2015, 20:08
Forum: General Discussion
Replies: 7
Views: 3014

FindResource no longer goes up the visual tree?

We just upgraded to 1.2.4 and now we're getting a huge breaking change. Whenever we call "FindResource" from a custom control, it no longer returns the resource defined at the root level that contains the custom control. We then tried to work around this by using VisualTreeHelper.GetParent to climb ...
by MrHayato
15 Aug 2015, 00:06
Forum: General Discussion
Replies: 1
Views: 1234

DataTriggers

What is the status of DataTriggers? Is this a feature we can expect soon (like 1.2.5? pretty please?). Trello doesn't mention anything about it, but I think this is a major feature that we're missing from WPF. There are really complicated things we're doing to make data triggers work, and often time...
by MrHayato
13 Jul 2015, 19:01
Forum: General Discussion
Replies: 6
Views: 2355

Re: DataContextChanged event?

Sorry, I replied to this thread mistakenly. It was actually meant to be in response to this other thread:
viewtopic.php?f=3&t=747

I had too many tabs open...
by MrHayato
09 Jul 2015, 22:00
Forum: General Discussion
Replies: 5
Views: 1984

Re: [Unity] Loaded event issues

Perfect. This did the trick.

Do you know what the ETA on the Loaded fix would be? I have a feeling we'll encounter this more times later.

Thanks again!
by MrHayato
09 Jul 2015, 20:35
Forum: General Discussion
Replies: 5
Views: 1984

[Unity] Loaded event issues

Hi, I've been pulling my hair out trying to get this to work, but I can't seem to... The idea: - A scrollviewer contains a stackpanel - The stackpanel contains a bunch of items in it. - I want to know where each item is, relative to the scrollviewer. - A control contains buttons, with one button per...
by MrHayato
09 Jul 2015, 00:38
Forum: General Discussion
Replies: 6
Views: 2355

Re: DataContextChanged event?

It didn't work before. I wonder if it was because I was using the empty constructor to call my other constructor using
public MyClass() : this(null) {
}
Leaving just an empty constructor though does seem to do the trick.