I have no problem tying KeyGestures in a Window type. But when I do
the same code that adds to a custom controls' InputBindings and
CommandBindings nothing happens. Only MouseGestures work to trigger
the command handler.
I have no problem tying KeyGestures in a Window type. But when I do
the same code that adds to a custom controls' InputBindings and
CommandBindings nothing happens. Only MouseGestures work to trigger
the command handler.
For some reason, it only fires when the mouse is over the content
portion, not when it is inside the bounds. F.e, if I have a custom
control derived from Control class. I have a OnRender() that draws the
text property using DrawingContext.DrawText(). Only when I'm over the
text the MouseEnter event is fired.
I'm using the MouseEnter event to draw a focus rectangle.
| Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| problem with enum in web custom control | rony_16 | .NET General | 4 | 31 Aug 2008 |
| Exposing contained control properties from within a custom control | Martin Robins | Avalon | 1 | 10 Apr 2008 |
| Exposing contained control properties from within a custom control | Martin Robins | Avalon | 0 | 10 Apr 2008 |
| Custom Keyboard action? | Donny | Vista General | 2 | 11 Apr 2007 |
| How do I use Custom Control Properties in Control Templates? | Joerg Engel | Avalon | 1 | 24 Mar 2006 |