Skip to main content
Home Forums Silverlight Programming Programming with .NET - General MouseMove event can't be fired on ScrollViewer
4 replies. Latest Post by jawc on October 3, 2008.
(0)
jawc
Member
47 points
57 Posts
10-02-2008 9:34 PM |
Hello,Does anyone know why I need to set background property of scrollviewer. Otherelse, the mousemove event can't be fired on scrollviewer control?Any idea?
HarshBar...
Star
9908 points
1,719 Posts
10-03-2008 3:19 AM |
Hi,
can you Give your Code to Reproduce this.
I tried this without Specifying BackGround but i was not able to.
Here is my code.(I tried this with a Empty Scroll Viewer also)
<Grid x:Name="LayoutRoot" Background="White"> <ScrollViewer x:Name="myViewer" VerticalScrollBarVisibility="Visible" HorizontalScrollBarVisibility="Visible" Height="100" Width="200" MouseMove="myViewer_MouseMove"> <Canvas Height="1000" Width="1000">
<Button Height="50" Width="50" Canvas.Top="500" Canvas.Left="350"></Button> </Canvas> </ScrollViewer> </Grid>
10-03-2008 3:33 AM |
Hello,You probably can try this...
10-03-2008 4:30 AM |
I checked your code and able to see same thing.
Then i checked msdn:(http://msdn.microsoft.com/en-us/library/system.windows.controls.scrollviewer_events(VS.95).aspx)
10-03-2008 4:37 AM |
Hello,
Yes, I know it.... But I think that's useless in some secario..Therefore, I am looking for a workaround for this problem...Do you have any good suggestion or tips :)