Advanced Forum Search Results
-
Hello, this looks suspiciously like the problem Patrick8639 was mentioning. It is pretty hard to reproduce because of the timing. You may want to see Mr. Wick's post here and see the repro here
-
I haven't found a good solution to this yet. I suppose you could define your own attached property that takes a list of Behavior and then add them using Interaction.GetBehaviors().Add()
I think that's pretty dirty but if I had to set the behaviors on a couple thousand controls I might think about doing it.
You ...
-
I've run into this problem yet again in SL3 RTW and it is still not working. Has anybody found a work around?
Since it's a little hard to reproduce (but definitely happens!) by hand here's a repro that could help out: http://www.waywardscholar.com/ButtonValueExpectedRangeBug.zip
-
I'm having a similar problem with Char. String works as I expected but I get the same Unknown Element if I try to declare a Char. Have you found anything since your post?
-
Nice. I've actually done quite the same and I'll email you about it separately.
But for this post I'm really more interested in the setting of the behaviors in a style than the behavior itself.
-
Has anyone else been able to set Behaviors from within a style?
I want to attach a Behavior to within a style that I can reuse. In particular, I'm thinking of attaching a behavior to ScrollViewers that will listen to the MouseWheel event and scroll it as you'd expect. The problem I have is that the setter that I would normally ...
-
Whaaaat?
I don't understand how I might've missed this... I must need more sleep. This works to add a a ResourceDictionary to MergedResource at runtime:
ResourceDictionary dictionary = new ResourceDictionary();
dictionary.Source= new Uri("/MergedResourceCodeTest;component/MergedResource.xaml", ...
-
@sinds1985 : I'm beginning to think so too.
[quote user="Amanda Wang - MSFT"]
ResourceDictionary dictionary = new ResourceDictionary();
Uri uri = new ...
-
Hrm, you're right... I don't know what got into me...
-
Is it possible to add a ResourceDictionary to MergedDictionaries at during application startup at all??