Advanced Forum Search Results
-
Hello,
Any ideas on why this doesn't work in Silverlight ?ListBox box = new ListBox();
WeakReference controlWeakReference = new WeakReference(box);Assert.IsTrue(controlWeakReference.IsAlive);
box.ItemsSource = null;box = null;
GC.Collect();GC.Collect();
Assert.IsFalse(controlWeakReference.IsAlive); // FAIL: IsAlive returns ...
-
Greetings!
I'm currently peeking through Deployment.Current.Parts. I'm curious on how I can get the equivalent Assembly for each AssemblyPart. That is, is there a way to get a reference to the Assembly that's loaded into memory that the AssemblyPart.Source represents? Assembly.LoadFrom obviously throws a ...
-
Is this supported?
I've been trying to get this to work without much luck, specifically the StoryBoard.TargetName bombs out with an error:
Cannot resolve TargetProperty (Controls:Scripting.Script) on specified object.
Here's my attached property:
public static class Scripting
{public static readonly DependencyProperty ScriptProperty = ...
-
I am currently seeing performance issues related to templated items. The more templated items I create (through use of a paging control), the less performant my application becomes.
There is a Loaded event. Is there an equivalent to an Unloaded event? Or an event/practice to employ when a ItemsControl updates its ...
-
I'm currently exploring the wonders of databinding. I'm curious if I can databind to a value of another control? That is, set {Binding Source={Control ControlName}}
Also, it would be kickass to be able to set the converter to an event handler of the hosting control somehow. Is this possible?
Thanks!
Michael
-
Hmmm... try taking out the width and height in your usercontrol and see if you get the same value.
My scenario is much more complicated. I'm currently attempting to simplify the elements used (a bunch of nested canvases and grids) and I'll post my results here.
-
That sounds great... however, how do you grab the Grid cell that an element is contained within? :) The only thing I see is Grid.GetRow and Grid.GetColumn...
-
I have a Canvas that is in a grid cell that has *x* in dimensions. When I access the Canvas.ActualWidth, I get double.Infinity returned. Not the number I'm looking for. :) How do I ascertain the computed, runtime value of this number?
Thanks!
Michael
-
Sweet. I think I can work with that... thanks!
-
Hm. That might work for me. However I'm using Windows Authentication and not Forms Authentication. I'd be interested in seeing how you check for the authentication token, however. :)
Thanks!