本文介绍了获取样式以覆盖控件模板的某些设置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对控件模板上的样式的层次感到有点困惑。

我有10个不同的按钮模板,但是我想应用一种调整宽度和高度的样式。这样我可以集体改变宽度和高度,同时仍然有非常独特的按钮,有自己的鼠标悬停事件等。但是,当我应用具有固定宽度的样式,没有任何反应 - 按钮仍然自动大小(这是我的宽度在控件模板中设置的内容)。

任何帮助将不胜感激。


Purkiss

解决方案


I'm a little confused on the heirarchy of a style over a control template.

I have 10 different button templates, but I would like to apply a single style that adjusts the width and height.  This way i can change the width and height en masse, while still having very unique buttons that have their own mouseover events etc.  however, when i apply the style with a fixed width, nothing happens--the button still auto sizes (which is what my width is set to in the control template). 

Any help would be appreciated.


Purkiss

解决方案


这篇关于获取样式以覆盖控件模板的某些设置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-29 13:07
查看更多