问题描述
谁能告诉我我怎么能在WPF窗口中添加CommandLink控制
Can someone tell me how can I add a CommandLink control in a WPF window?
这是我说的CommandLink:的
This is what I mean by CommandLink : http://msdn.microsoft.com/en-us/library/aa511455.aspx
推荐答案
提供 <$ 。C $ C> CommandLink 用户控件
WPF Task Dialog Wrapper provides an implementation of a CommandLink
user control.
下面是如何显示命令链接的例子:
Here's an example of how to show command links:
TaskDialogOptions config = new TaskDialogOptions();
config.Owner = this;
config.Title = "RadioBox Title";
config.MainInstruction = "The main instruction text for the TaskDialog goes here.";
config.Content = "The content text for the task dialog is shown here "
+ "and the text will automatically wrap as needed.";
config.ExpandedInfo = "Any expanded content text for the task dialog "
+ "is shown here and the text will automatically wrap as needed.";
config.CommandButtons = new string[] {
"Command &Link 1", "Command Link 2\nLine 2\nLine 3", "Command Link 3" };
config.MainIcon = VistaTaskDialogIcon.Information;
TaskDialogResult res = TaskDialog.Show(config);
该库的代码项目开放许可证。
The library is licensed under the The Code Project Open License.
还有一个很好的实现的 CommandLink
按钮
Seven Update has another nice implementation of a CommandLink
Button.
这是它的样子:
请记住这是一个项目在GPL v3的许可证授权
Bear in mind that is a project licensed under the GPL v3 license.
本指南也会有所帮助:
创建命令链接控制在Silverlight与Expression Blend的3和行为
这篇关于CommandLink在WPF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!