My goal is basic: Have a label/texblock what-have-you on a WPF form that is stylized to look like a link. When clicked, the control should open a new e-mail composition window in the user's default e-mail app. The code to actually open the new e-mail window seems trivial:
Process.Start("mailto:[email protected]?subject=SubjectExample&body=BodyExample ");
However I'm having trouble with two pieces:
- Binding the "new message open" action to a label click event.
- Stylizing the label so that it looks exactly like a default WPF hyperlink.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…