WPF Example : A Dynamic Crop Rectangle over an Image Control HD

08.10.2015
http://www.microsoft-programmierer.de/Details?d=1087&a=9&f=129&l=0&t=Gel%C3%B6st:-WPF-Mouse-und-Click-Events-durch-eine-UIElement-Control-durchleiten Solved: WPF Mouse and Click events through a UIElement Control passing Views 1 Date 8/10/2015 WPF: Click Event passing through a Control Problem: I have a transparent Rectangle Control In the underlying Control, background have the MouseDown, MouseUp, MouseMove event, the I process for pulling a crop frame OK: if I move just above the background control, the Mouse Function Events is ok Incorrect: but when I move about the new Rectangle Control, then comes out on tickets by Solution: Here the value IsHitTestVisible = "False" in the overlying UIElement Rectangle on an image is, the event passed. A value of False means that the element no selbts Gelöst: WPF Mouse und Click Events durch eine UIElement Control durchleiten Views 1 Date 08.10.2015 WPF: Click Event durch ein Control durchleiten Problem: ich habe ein transparentes Rectangle Control In dem darunter liegenden Control, Hintergrund habe den MouseDown, MouseUp, MouseMove Event, den ich verarbeite zum Ziehen eines Crop-Rahmens OK: wenn ich mich direkt über dem Hintergrund Control bewege, ist die Mouse-Function Events ok Falsch: wenn ich mich aber über das neue Rectangle Control bewege, dann kommt kein Event durch Lösung: mit dem Wert IsHitTestVisible="False" im überliegenden UIElement hier Rectangle über einem Image, wird der event durchgeleitet. Der Wert False bedeutet, das das Element selbst keine

Похожие видео

Показать еще