覆盖设计时间设置 [英] Overriding design time setting
本文介绍了覆盖设计时间设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个DataGrid,它在设计时本身将RowBackGround和交替的RowBackGround设置为黑色.
作为事件触发主题更改的一部分,我想包括要在运行时设置的AlternatingRowBackGround和RowBackGround(以其他颜色设置),但是它没有发生.它需要一些替代方法来解决这个问题
在此先感谢
I have DataGrid whose RowBackGround and alternating RowBackGround set to black at the design time itself.
an as the part of event triggered theme change I want to include AlternatingRowBackGround and RowBackGround to be set during run time (to some other color) but it is not taking place.it require some overrid how i can aproach this
thanks in advance
推荐答案
使用依赖项属性 [ ^ ]来做什么您想要的.
Use Dependency Properties[^] to do what you want.
这篇关于覆盖设计时间设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文