Advanced Forum Search Results
-
lol wow....I'm a tool, there was a name in the XAML tho....therefore all elements were named the same thing....you'd think there would be an error specific to naming conventions eh?
-
I didn't name them...thats a good point, however...thanks to new implementations of beta 2, you can no longer add a name in the code behind file...it says it can be set ONLY in XAML, therefore, how can I EVER do this witha dynamic control?
-
How can this work for a class operating on generic elements??
I tried casting as a Button if it is a button and doing the following:
((Button)element).Click += new MouseButtonEventHandler(ElementMouseLeftButtonDown));
where this is the that event....
private void ElementMouseLeftButtonDown(object sender, MouseButtonEventArgs e) ...
-
I have a custom control that I am using on a Grid Layout thats nested on a few levels of Canvas'. I need to add my custom control which consists of a rectangle, and a few texblocks to this grid and be able to drag and drop it around the grid. My problem is that this custom control doesn't like to be added to the Grid...or anywhere ...
-
I think I may have found a partial reason why this isn't working....http://silverlight.net/forums/t/17687.aspx
As I said before, the MouseButtonDown event is not registering and is a change in Beta 2....what do you MS guys think? is there any way around it? I REALLY need to drag and drop buttons....
-
This no longer works on the standard Silverlight 2 beta 2.... It appears that the events do not get registered as when I set a breka point in the ElementMouseLeftButtonDown method and try to drag a button it never breaks. Does anyone else have a solution???
-
I have the same problem with my app. I am customizing a button that has two textblocks on it. I need to be able to edit the text at runtime. How can I do this? I tried forwarding text throught he Content property in the Button, and although it compiles it fails. You can see below near the bottom in App.XAML I have a two text blocks, one with ...
-
Is there a workaround yet? or a fix? I have a similar problem adding a new self defined XAML User Control to a Canvas, it gives me:
An exception of type 'System.ArgumentException' occurred in System.Windows.dll but was not handled in user code
Additional information: Value does not fall within the expected range.public void ...