gpt4 book ai didi

c# - WPF 中的 CommandLink

转载 作者:太空狗 更新时间:2023-10-29 23:10:25 25 4
gpt4 key购买 nike

谁能告诉我如何在 WPF 窗口中添加 CommandLink 控件?

这就是我所说的 CommandLink 的意思:http://msdn.microsoft.com/en-us/library/aa511455.aspx

最佳答案

WPF Task Dialog Wrapper提供 CommandLink 的实现用户控制。

以下是如何显示命令链接的示例:

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);

WPF Task Dialog Wrapper

该库已根据 The Code Project Open License 获得许可。


Seven Update还有一个很好的 CommandLink 实现按钮。

它是这样的:

Seven Update

请记住,这是一个根据 GPL v3 许可获得许可的项目。


本指南也可能有所帮助:

Creating Command Link Controls in Silverlight with Expression Blend 3 and Behaviors

关于c# - WPF 中的 CommandLink,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6870314/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com