要求绝对基本的分步说明以将模板添加到WPF项目 [英] Request for absolutely basic step by step instructions to add template to WPF project

查看:65
本文介绍了要求绝对基本的分步说明以将模板添加到WPF项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是WPF的新手.

我想覆盖按钮的行为,并且从网上搜索告诉我编写模板.

周围有很多模板片段,但在此之前我还停留了很多.

我到底要将模板放在哪里?

是我添加到项目中的新XAML文件吗?

我是否要压缩XAML中的代码行,以使有问题的按钮放在我正在使用的窗口上?

请有人可以从最基本的位置逐步向我展示模板的放置位置吗?

谢谢.

Hi, I''m new to WPF.

I want to override a behaviour of a push button, and searches from the web tells me to write a template.

There are plenty of template snippets around but I''m stuck much before that.

Where exactly do I put the template?

Is it a new XAML file I add to the project?

Do I squeeze the lines of code in the XAML that puts the button in question on the window I''m working on?

Please can someone show me step by step, from the very very basic, where I put the template?

Thanks.

推荐答案

在CodeProject上的本文部分中,有很多WPF的示例,包括许多逐步指南.查看它们以寻求帮助.
There are lots of samples of WPF in the articles section here on CodeProject, including a number of step by step guides. Take a look through them for some help.


这篇关于要求绝对基本的分步说明以将模板添加到WPF项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆