有人可以告诉我如何在 WPF 窗口中添加 CommandLink 控件吗?
这就是我所说的 CommandLink 的意思:http://msdn.microsoft.com/en-us/library/aa511455.aspx http://msdn.microsoft.com/en-us/library/aa511455.aspx
WPF 任务对话框包装器 https://github.com/yadyn/WPF-Task-Dialog提供了一个实现CommandLink https://github.com/yadyn/WPF-Task-Dialog/blob/master/TaskDialog/CommandLink.xaml用户控制。
以下是如何显示命令链接的示例:
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 Code Project Open License 获得许可。
七更新 https://github.com/sevenalive/SevenUpdate/有另一个很好的实现CommandLink https://github.com/sevenalive/SevenUpdate/blob/master/Externals/SevenSoftware.Windows/Controls/CommandLink.cs Button.
它是这样的:
请记住,这是一个根据 GPL v3 许可证授权的项目。
本指南也可能有帮助:
使用 Expression Blend 3 和行为在 Silverlight 中创建命令链接控件 http://expression.microsoft.com/en-us/ee662150
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)