开发者

WPF UserControl shows up blank everywhere except in the designer for the control itself

开发者 https://www.devze.com 2023-01-29 20:01 出处:网络
I have a WPF UserControl that shows up fine in the designer. 开发者_如何学PythonHowever, the UserControl shows up blank anywhere else! What is the cause of this?

I have a WPF UserControl that shows up fine in the designer. 开发者_如何学PythonHowever, the UserControl shows up blank anywhere else! What is the cause of this?

The source is here: http://github.com/angelsl/NSMBWSaveEd (the usercontrol is Block2Editor)


Oh, god... I finally found it. You have style in Themes\Generic.xaml which sets Template property for your Block2Editor control. Remove it and all be ok.

0

精彩评论

暂无评论...
验证码 换一张
取 消