Pergunta

My situation is this:

We have a WPF application using a WPF ribbon(http://msdn.microsoft.com/en-us/library/ff799534(v=vs.100).aspx). We have a scenario where we use both the RibbonComboBox as well as "normal" ComboBox in the ribbon, where the ComboBox is referenced via a ControlTemplate.

The issue we have, is that the default ComboBox style is different to the RibbonComboBox style, which is a bit of an eyesore. How can we determine what the Style / ControlTemplate of the RibbonComboBox is so that we can apply the same / something similar to the "normal" ComboBox, without having to go and scratch around in the MS code.

If gone through MSDN after MSDN article and I've scoured stackoverflow and nowhere can I find this info?

Thanks!

Foi útil?

Solução

Use the following link for getting style of your RibbonComboBox using Blend.

http://www.jeff.wilcox.name/2010/08/using-blend-to-find-default-style-xaml/

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top