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

Metro themed standard controls

8 Answers 255 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
naip
Top achievements
Rank 2
naip asked on 21 Jul 2011, 02:22 PM
Hello,

the look of the new metro theme is fantastic. Unfortunately our application does not use only telerik control, but also a lot of standard controls (ScrollViewer, StackPanel etc.).

Is there a way that the scroll bars of the standard silverlight container controls look the same as in the telerik controls (RadGridView etc.)? I have tried to apply telerik:StyleManager.Theme="MetroTheme" to ScrollViewers and other containers, but the result was nonsatisfying.

Best regards
Thomas

8 Answers, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 21 Jul 2011, 02:51 PM
Hi It Services,

 
Indeed the case with RadGridView is a different one because this control uses its own GridViewScrollViewer which internally uses the standard ScrollViewer. You may see this relation within GridViewScrollViewer's template. 
As the rest of our themes you may apply Telerik theme to several Microsoft controls such as TextBox, Button, CheckBox, RepeatButton etc. If you want to style the standard ScrollViewer just apply the theme to this control.
For GridViewScrollViewer this technique would not work. May you please share with us a bit more info about your exact scenario? Thus we would be able to provide you with an appropriate solution. 



All the best,
Vanya Pavlova
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
naip
Top achievements
Rank 2
answered on 22 Jul 2011, 06:55 AM
Hello Vanya,

I have tried to apply the metro theme to a standard scroll viewer - but the result is not convincing. Please take a look at the attached screenshots. The images are showing a RadGridViewer and a standard ScrollViewer side by side.

In the first image the scroll viewer has no explicit theme set and the ui does not look coherent. In the second image the scrollviewer has StyleManager.Theme="MetroTheme". The additional property does have an effect (the scrollviewer looks different), but ui is still not coherent.

Best regards,
Thomas
0
Accepted
Vanya Pavlova
Telerik team
answered on 22 Jul 2011, 07:49 AM
Hi Thomas,

 
I have tried to replicate the behaviour you described, but I was not able to. May you please take a look at the attached example and let me know how it differs from yours? Feel free to update this project and send it back to us in a new support ticket where we can see what might be wrong.



Best wishes,
Vanya Pavlova
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
naip
Top achievements
Rank 2
answered on 22 Jul 2011, 08:06 AM
Hello Vanya,

thank you very much - now I see my mistake. In my code I have used

StyleManager.Theme="MetroTheme"

but from your example I see, that should have used

StyleManager.Theme="Metro"

Sorry for being supid.

Best regards,
Thomas

0
AvgurD
Top achievements
Rank 1
answered on 04 Jul 2012, 12:58 PM
Hi!
I am a big fun of Metro style too - but i have one thing in this style wich don' like many users of my apps in metro style - width of scrollbar. It's too small. Can you advise solution of this - may be with styling in Blend? But i have many types of telerik controls in my app now - and change style for each int too long...May be i can change width of metro scroll bar for all controls in one place?
0
Vanya Pavlova
Telerik team
answered on 05 Jul 2012, 07:55 AM
Hello Dmitry,

 


You can change the style for System.Windows.ScrollViewer and its scrollbars to achieve your goal. 



Regards,
Vanya Pavlova
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
AvgurD
Top achievements
Rank 1
answered on 05 Jul 2012, 10:07 AM
Hello, Vanya.

You mean that i must set style of standard scrollbar in  ScrollViewer  like in Metro style, but increase width?
and then i make something like setter for metro style component (like RadGridView) and override it scrolls to standart view (i make it for RadGridView one year ago - but only change scrollbar to standard view - its looked no goog really with metro theme).
Or if i only increase width of  scrollbar in  ScrollViewer  - scrollbars in metro components increses too?

Sorry for terrible English! :)
0
Vanya Pavlova
Telerik team
answered on 06 Jul 2012, 11:55 AM
Hi Dmitry,

 

Yes you are right - RadGridView has its own GridViewScrollViewer, which internally uses the standard one. A wiser solution in this case is to create custom theme based on Metro and modify the file System.Windows.xaml. This file contains the styles for the native Microsoft controls being supported by our theming mechanism.  Once you change the size of the ScrollViewer all scrollable controls will be affected by these cnahges. Furthermore we have recently introduced a way to style our controls using implicit styles. Please check the following forum thread for further reference. The same is applicable to Silverlight as well. I have prepared small Silverlight 5 demo, which illustrates how to achieve your goal. 





Regards,
Vanya Pavlova
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
General Discussions
Asked by
naip
Top achievements
Rank 2
Answers by
Vanya Pavlova
Telerik team
naip
Top achievements
Rank 2
AvgurD
Top achievements
Rank 1
Share this question
or