Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Mon, 25 Aug 2008 12:14:19 -0700,    group: microsoft.public.dotnet.framework        back       


ModelUIElement3D PreviewMouseDown Outer/Inner Object   
Let's say I have 2 cubes; "OuterCube" and "InnerCube". Both are 
ModelUIElement3D objects. The inner one is .8 scaled on each axis compared to 
the outer cube which makes it the inner cube. The outer has a rather 
translucent material so you can see through it easily. Both InnerCube as well 
as OuterCube both have PreviewMouseDown event handlers. If the user clicks at 
a place on OuterCube that overlaps InnerCube it's PreviewMouseDown routed 
event handler gets called and e.handled is set to false. By my understanding, 
this event should continue being tunneled down to the InnerCube but it isn't. 
I've tried to do my own hit testing at the viewport but when I RaiseEvent 
myself for the ModelUIElemenent3D the PreviewMouseDown handler for the 
viewport get's called again so a stack overflow occurs due to the cycle.

My goal is to let my application/model logic determine if mouse clicks 
should be stopped at the OuterCube or the InnerCube. I know I could create my 
own events but I would like to use the infrastructure that is there for other 
features.

Please advise.
date: Mon, 25 Aug 2008 12:14:19 -0700   author:   ClearlyDotNet

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us