0
我正在设计一个模板在belnd 4中。我对.net和blend是新手。我想click事件链接到该按钮,但是当我去TP属性,然后单击事件,我得到这个在后面混合4个代码
The document item has no code-behind file. Add a code-behind file and a class before adding event handlers
我会很高兴帮助
我正在设计一个模板在belnd 4中。我对.net和blend是新手。我想click事件链接到该按钮,但是当我去TP属性,然后单击事件,我得到这个在后面混合4个代码
The document item has no code-behind file. Add a code-behind file and a class before adding event handlers
我会很高兴帮助
我想你想添加事件处理程序用于ResourceDictionary文件内部的按钮。 ResourceDictionary仅用于存储控件的样式。您只能在UserControl或Page中执行此操作。
你是对的。但是,当我点击编辑模板时,它会自动创建ResourceDictionary文件。我如何阻止它这样做,或者我怎样才能在用户控制中做到这一点。任何文章或链接来做到这一点?我会感谢你的帮助。谢谢 – Autolycus
没关系。得到它了。谢谢 – Autolycus
@Autolycus,酷,很好,你有它想通了。 :) –