RadMenu Like photoshop

2 posts, 0 answers
  1. Iivan
    Iivan avatar
    1 posts
    Member since:
    Oct 2013

    Posted 04 Oct 2013 Link to this post

    Hi.
    https://dl.dropboxusercontent.com/u/87574708/%D0%91%D0%B5%D0%B7%D1%8B%D0%BC%D1%8F%D0%BD%D0%BD%D1%8B%D0%B9.png

    In photoshop menu MenuItem parent has toggleButton style, and hi is like selector from children MenuItem .

    <telerik:RadMenu  Orientation="Vertical"  telerik:StyleManager.Theme="Windows8Touch" ClickToOpen="True" >          
              <telerik:RadMenuItem Header="{Binding Path=SelectorType,Mode=TwoWay}" cal:Message.Attach="[Event Click] = [Action SetOperation($source )]" >
                  <telerik:RadMenuItem Header="1" cal:Message.Attach="[Event Click] = [Action SetOperationSelect($source )]" />
                  <telerik:RadMenuItem Header="2" cal:Message.Attach="[Event Click] = [Action SetOperationSelectRing($source )]" />
                  <telerik:RadMenuItem Header="3" cal:Message.Attach="[Event Click] = [Action SetOperationSelectRadius($source )]" />
              </telerik:RadMenuItem >
    </telerik:RadMenu>

    Why Event Click on root firing  before click on child elements.
    Has any methods to supperes opening child elements? I want to open him on mouse touchdown on 2 sec.

  2. Kalin
    Admin
    Kalin avatar
    1209 posts

    Posted 04 Oct 2013 Link to this post

    Hello Iivan,

    For the explained scenario I would suggest that you use a ToggleButton with a ContextMenu attached to it instead of RadMenu. This way you can easily delay the appearance of the menu. For your convenience we have prepared and attached a sample project which demonstrates the exact approach.

    Hope this will work for you.

    Regards,
    Kalin
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top