开发者

How create custom feedback button? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years 开发者_如何转开发ago.

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

thank


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 = "foo@bar.com";
        emailComposeTask.Subject = "Windows Phone 7 app - Feedback";
        emailComposeTask.Show(); 
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜