9 Answers, 1 is accepted
The following article shows how you can create the exact same layout: Collapsible menu from Demo application.
Another approach is to use the new navigation view which has similar behavior. Detailed information is available here: Navigation View.
I hope this will be useful. Let me know if you have additional questions.
Regards,
Dimitar
Progress Telerik
how to change RadPageView pages back color in mouse hover and after selection changed ?
Regards,
Ranees
Hello Ranees,
In order to change the color of the RadPageViewItem for a specified visual state, you can use the SetThemeValueOverride method. Аccording to your requirement you should override the MouseOver and Selected states:
this.radPageViewPage1.Item.SetThemeValueOverride(RadPageViewStripItem.BackColorProperty, Color.Green, "MouseOver");
this.radPageViewPage1.Item.SetThemeValueOverride(RadPageViewStripItem.DrawFillProperty,true, "MouseOver");
this.radPageViewPage1.Item.SetThemeValueOverride(RadPageViewStripItem.NumberOfColorsProperty, 1, "MouseOver");
this.radPageViewPage1.Item.SetThemeValueOverride(RadPageViewStripItem.BackColorProperty, Color.Red, "Selected");
this.radPageViewPage1.Item.SetThemeValueOverride(RadPageViewStripItem.DrawFillProperty, true, "Selected");
this.radPageViewPage1.Item.SetThemeValueOverride(RadPageViewStripItem.NumberOfColorsProperty, 1, "Selected");
You can refer to the following documentation article which demonstrates how to override the theme settings for a specific element state without losing the applied style for the rest of the states: https://docs.telerik.com/devtools/winforms/telerik-presentation-framework/override-theme-settings-at-run-time.
I hope this helps. Should you have any other questions do not hesitate to ask.
Regards,
Nadya
Progress Telerik
hii Nadya , i can't access these all...i am using Telerik 2015 version...
Regards,
Ranees
Hello Ranees,
Please note that the theme value override API functionality was introduced in the 2015.3.930 release of Telerik UI for WinForms suite. If you are using an older version you could not be able to use it. This is why I recommend you to upgrade to one of the latest version. Thus, you can benefit from all of the introduced improvements and new features that are available in the new versions.
However, I can suggest using the Visual Style Builder where you can modify the theme and change the styles of each specific state. Here are the steps you need to take to achieve this:
1. Extract the predefined theme: Loading Predefined Themes
2. Change the BackColorProperty, DrawFillProperty and NumberOfColorsProperty properties of the RadPageViewStripItem (see attached picture).
3. Save and use the new theme in your application: Using custom themes
I hope this information helps. Let me know if I can assist you further.
Regards,
Nadya
Progress Telerik
Hello Ranees,
If you don't want to use the Visual Style Builder and apply a custom theme I recommend you to upgrade to one of the latest versions in order to make use of the first suggested solution via the SetThemeValueOverride method. By upgrading to the latest version you will benefit from all of the introduced improvements and new features that are available in Telerik UI for Winforms suite as well.
Do not hesitate to contact us if you have other questions.
Regards,
Nadya
Progress Telerik
hii Nadya...i have upgraded to the latest version..its worked well...thanks for your time
Regards,
Ranees
Hello Ranees,
I am glad that you achieved the desired result. If you have any other questions, please do not hesitate to contact us.
Regards,
Nadya
Progress Telerik