Advanced Forum Search Results
-
I use different way, when inheriting objects:
3)
BaseControl = It is inherited from User Control. It has XAML.
MyControl = It is inherited from BaseControl. It is a class that doesnt have XAML. Additional controls and methods are added in C# code in constructor.
In classic WPF it works without a problem, but in Silverlight 2 ...
-
ControlTwo does not have any XAML code, it just derives from ControlX. I guess, that it's not agains rules, but the XAML parser is thinking otherwise.
Small update: Page.xaml contains:
<UserControl x:Class="Test1.Page"
xmlns="http://schemas.microsoft.com/client/2007"
...
-
Ok, the solution is:
In Silverlight 2 beta 1 DragDeltaEventArgs has VerticalOffset and HorizontalOffset, not VerticalChange and HorizontalChange, just like WPF.
So keep that in mind.
-
I've got another problem, very similar to the previous one.
I've got my own User Control with some XAML definition code and I want to inherit from this class:
<UserControl x:Class="Test1.ControlX"
xmlns="http://schemas.microsoft.com/client/2007"
...
-
I'm experiencing problem with creating resize control. I'm using MouseUp, MouseDown and MouseMove Events, but the position returned by mousePosition = e.GetPosition(null); is just strange.
Just look at this example, including the source code.
Try to resize the rectangle using the yellow ...
-
I've found another problem in Silverlight 2. I am not able to make the Thumb Events get working. This is the minimal code for reproducing this behavior:
<UserControl x:Class="Test1.Page"
xmlns="http://schemas.microsoft.com/client/2007"
...
-
Hello,
I'm creating Silverlight 2 application, kind of shape designer. I'm experiencing problems with using Thumb at all.
In XAML file is UserControl containing Grid 3x3 -> with 4 Thumbs and with a Rectangle in the middle:
...
<Thumb x:Name="LeftBorder" Cursor="SizeWE" Grid.Row="1" ...