Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
给定DataWindow带有 的视图, CatelDataWindowMode.OkCancelApply有没有办法自定义 Ok、Cancel、Apply 按钮的样式?至少我需要为按钮定义自动化 ID。我试图进入但在那里返回 null 。我相信在 Catel 中一定有一种简单的方法可以做到这一点,而无需使用."_ButtonsWrapPanel"OnApplyTemplate()GetTemplateChildAddCustomButton
DataWindow
DataWindowMode.OkCancelApply
"_ButtonsWrapPanel"
OnApplyTemplate()
GetTemplateChild
AddCustomButton
要自定义样式,您可以修改应用于所有按钮的DataWindowButtonStyle样式。
尚不支持实现自动化 ID。这应该很容易解决,所以请把它放在 backlog 上,以便实施。我们也接受拉取请求;-)