NavigationView

3 posts, 1 answers
  1. Mehdi
    Mehdi avatar
    15 posts
    Member since:
    Jan 2018

    Posted 23 Nov 2019 Link to this post

    hello Telerik!

    can i change hamburger menu (☰) to my own icon/png and show another icon when menu expand?

    another question: like css, set animation to change icon/png/svg for collapse/expand ?

  2. Mehdi
    Mehdi avatar
    15 posts
    Member since:
    Jan 2018

    Posted 23 Nov 2019 Link to this post

    another one: i need to show sub item in this view, like example picture. is it possible?
  3. Answer
    Nadya
    Admin
    Nadya avatar
    241 posts

    Posted 26 Nov 2019 Link to this post

    Hello Mehdi,

    I suppose that you have RadPageView in NavigationView mode. If you want to change the default look of the hamburger button you can achieve ii as shown below:

    RadPageViewNavigationViewElement navigationElement = this.radPageView1.ViewElement as RadPageViewNavigationViewElement;
    navigationElement.HamburgerButton.Text = "";
    navigationElement.HamburgerButton.ImagePrimitive.Image = Image.FromFile(@"..//..//menuitem.png");
    navigationElement.HamburgerButton.ImagePrimitive.ImageScaling = Telerik.WinControls.Enumerations.ImageScaling.SizeToFit;

    This is the achieved result:

    According to your second question, there are no built-in CSS-like animations in RadPageView. I can suggest you to take a look at the following help article which shows currently supported animations from Telerik Presentation Framework: https://docs.telerik.com/devtools/winforms/telerik-presentation-framework/animations

    As to the question in your last post concerning sub-items in navigation view mode, I would like to note that we already have logged a feature request for this. You can track its progress, vote for it in order to increase its priority, subscribe for status changes and add your comments on the following link - feedback item

    I hope this information helps. Should you have any other questions do not hesitate to ask.

    Regards,
    Nadya
    Progress Telerik

    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top