Может ли кто-нибудь сказать мне, как добавить элемент управления CommandLink в окне WPF?
Это то, что я имею в виду под 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);
Библиотека лицензируется в соответствии с Открытой лицензией проекта кода.
Seven Update имеет еще одну приятную реализацию CommandLink
.
Вот как это выглядит:
Имейте в виду, что это проект, лицензированный по лицензии GPL v3.
Это руководство также может помочь:
Создание элементов управления связью в Silverlight с выражением Blender 3 и поведением