Hey all,
I'm not sure if I'm going crazy or if this is a bug. Maybe someone else can
verify if this is a Silverlight beta 2 bug?
I've tried via code and via Xaml, but I just can't get the Mouse events to
raise. I don't think they are gone, they are still in the docs.
MouseLeftButtonDown and MouseEnter (haven't checked the others) don't work.
ValueChanged works fine.
My code worked in beta 1 but not now. Can anyone else reproduce this?
public Page() {
InitializeComponent();
theSlider.MouseLeftButtonDown += new
MouseButtonEventHandler(theSlider_MouseLeftButtonDown);
theSlider.MouseEnter += new
MouseEventHandler(theSlider_MouseEnter);
theSlider.ValueChanged +=new
RoutedPropertyChangedEventHandler<double>(theSlider_ValueChanged);
}
void theSlider_MouseEnter(object sender, MouseEventArgs e) {
Debug.WriteLine(theSlider.Value.ToString());
}
void theSlider_MouseLeftButtonDown(object sender,
MouseButtonEventArgs e) {
Debug.WriteLine(theSlider.Value.ToString());
}
private void theSlider_ValueChanged(object sender,
RoutedPropertyChangedEventArgs<double> e) {
if (theSlider != null) {
if (theSlider.Value > 0) {
Debug.WriteLine(theSlider.Value.ToString());
}
}
}
-------------------------------------------------------------------
OzSilverlight.com - to unsubscribe from this list, send a message back to the
list with 'unsubscribe' as the subject.
Powered by mailenable.com - List managed by www.readify.net