如何创建自定义反馈按钮?

发布于 2024-10-31 18:09:31 字数 50 浏览 3 评论 0原文

如何使用表情混合4创建自定义按钮? 我将图像插入按钮并收到反馈,

谢谢

How create custom button with expression blend 4?
I insert an image into the button and receive feedback

thank

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

淤浪 2024-11-07 18:09:31

我的猜测:您想创建一个内部带有图像的按钮,单击事件会触发该按钮 EmailComposeTask 发送包含反馈的电子邮件。

有很多关于如何在 Blend 中制作按钮的教程。这非常简单,

  1. 拖动屏幕上的按钮即可。
  2. 将按钮的内容更改为图像或创建新的/编辑按钮的重复样式/模板。将文本块更改为图像。

这就是 UI,现在您需要逻辑。这是 Visual Studio 的工作。

(您始终可以在 Visual Studio 中创建所有 UI - 我更喜欢这种方式)

XAML 示例

<Button>
      <Button.Content>
        <Image Source="img.png" />  
      </Button.Content>
    </Button>

然后您在页面后面的代码中创建一个 EmailComposeTask。

        EmailComposeTask emailComposeTask = new EmailComposeTask();
        emailComposeTask.To = "[email protected]";
        emailComposeTask.Subject = "Windows Phone 7 app - Feedback";
        emailComposeTask.Show(); 

My guess: you would like to create a button with an image inside, which the click event triggers EmailComposeTask to send an email with the feedback.

There are dozens of tutorial how to make a button in Blend. It's prety simple

  1. Drag the button on the screen.
  2. Change Content of the button to the image or create new/edit dupicate style/templeate of the button. Change TextBlock to Image.

That's the UI now you need the logic. Which is a job for Visual Studio.

(You can always create all UI in Visual Studio - I prefer this way)

Example of XAML

<Button>
      <Button.Content>
        <Image Source="img.png" />  
      </Button.Content>
    </Button>

Then you in code behind the page create a EmailComposeTask.

        EmailComposeTask emailComposeTask = new EmailComposeTask();
        emailComposeTask.To = "[email protected]";
        emailComposeTask.Subject = "Windows Phone 7 app - Feedback";
        emailComposeTask.Show(); 
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文