Windows Vista Forums

Problem with keyboard gestures in custom control
  1. #1


    aagranov2007 Guest

    Problem with keyboard gestures in custom control

    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.



      My System SpecsSystem Spec

  2. #2


    aagranov2007 Guest

    Problem with MouseEnter event in a custom control

    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.

      My System SpecsSystem Spec

Problem with keyboard gestures in custom control problems?

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