5

誰かがWPFウィンドウにCommandLinkコントロールを追加する方法を教えてもらえますか?

これは私がCommandLinkによって意味するものです:http://msdn.microsoft.com/en-us/library/aa511455.aspx

4

1 に答える 1

6

WPFタスクダイアログラッパー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タスクダイアログラッパー

ライブラリは、Code ProjectOpenLicenseの下でライセンスされています。


セブンアップデートCommandLinkには、ボタンのもう1つの優れた実装があります。

これはどのように見えるかです:

セブンアップデート

これはGPLv3ライセンスの下でライセンスされたプロジェクトであることに注意してください。


このガイドも役立つかもしれません:

ExpressionBlend3とビヘイビアを使用したSilverlightでのコマンドリンクコントロールの作成

于 2011-07-29T11:00:21.533 に答える