我不是程序员,甚至不在电视上播放一个...你能帮我编写一个重播按钮吗? [英] I'm not a programmer and don't even play one on TV...can you help me code-behind a Replay button?

查看:115
本文介绍了我不是程序员,甚至不在电视上播放一个...你能帮我编写一个重播按钮吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我正在使用Expression Blend中的WPF应用程序。这是一张电子贺卡;目标是让用户打开它(启动动画),然后通过单击重播按钮重播它。

我已经想出如何制作漂亮的重播按钮。但我不是程序员,真的,真的,如果我能避免它,真的不想在Visual Studio上安装/提升。我可能没有机会再次使用它,如果是这样的话。

我发现我需要一个代码隐藏文件;当我在"对象和时间线"窗格中选择我的按钮,然后转到单击"事件"按钮时,我收到消息"文档项目没有代码隐藏文件。在添加事件处理程序之前添加代码隐藏文件和类定义。"

我如何...


Hello,

I'm working on a WPF application in Expression Blend.  It's an e-greeting card; the goal is to have users open it (which starts the animation), then replay it, if desired, by clicking a Replay button.

I've figured out how to make a nifty-looking Replay button.  But I'm not a programmer, and really, REALLY do not want to install/ramp up on Visual Studio if I can avoid it.  I probably would not have occasion to use it again, if so.

I've figured out that I need a code-behind file; when I select my button in the Objects and Timeline pane, and go over to click the Events button, I get the message "The document item has no code-behind file.  Add a code-behind file and a class definition before adding event handlers."

How can I...


  1. 添加我的按钮的代码隐藏文件。目前没有一个。我只是希望远离Visual Studio领域,并在记事本或其他一些纯文本格式中进行编辑。

  2. 编程按钮(button.xaml),以便在按钮单击时触发发生(触发器是......等待它...单击按钮)故事板OnClick从button.xaml文件返回到GreetingCard.xaml并运行OnLoaded故事板。

感谢您的帮助!
Gaby

Thanks for your help!
Gaby

推荐答案

您好,您可以使用Microsoft Visual Studio Express Edition它是Visual Studio的低版本。




如果你只想使用记事本,那么在表达式混合中你可以去

工具 - > ;选项 - >事件处理程序 - >选择Option ClipBoard Only。

何时在属性页面事件处理程序部分输入任何eventHandler名称。

您将获得弹出窗口"复制到剪贴板"说"将以下事件处理程序复制到剪贴板" [确定] [取消]

如果单击[确定]它将被复制到剪贴板

您可以在记事本中转到特定文件.xaml.cs并粘贴事件处理程序。

我希望这会对你有所帮助:)
Hi,

You can use Microsoft Visual Studio Express Edition it is the Lower Edition of Visual Studio.

or

If you want to use only notepad, then in expression blend you can go to

Tools->Options->Event handlers->Select the Option ClipBoard Only.

when ever you enter any eventHandler name in the property page event handler section.

you will get the popup "Copy to Clipboard" saying that "The following event handler will be copied to clipboard" [Ok] [Cancel]

if you click on [Ok] it will be copied to clipboard

you can go to that particular file .xaml.cs  in notepad and paste the event handler.

I hope this will help you :)


这篇关于我不是程序员,甚至不在电视上播放一个...你能帮我编写一个重播按钮吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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