This is a migrated thread and some comments may be shown as answers.

NavigationView

2 Answers 263 Views
PageView
This is a migrated thread and some comments may be shown as answers.
Mehdi
Top achievements
Rank 1
Mehdi asked on 23 Nov 2019, 09:10 PM

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 Answers, 1 is accepted

Sort by
0
Mehdi
Top achievements
Rank 1
answered on 23 Nov 2019, 09:18 PM
another one: i need to show sub item in this view, like example picture. is it possible?
0
Accepted
Nadya | Tech Support Engineer
Telerik team
answered on 26 Nov 2019, 04:18 PM

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.
Tags
PageView
Asked by
Mehdi
Top achievements
Rank 1
Answers by
Mehdi
Top achievements
Rank 1
Nadya | Tech Support Engineer
Telerik team
Share this question
or