2011-07-29 5 views

答えて

5

WPF Task Dialog WrapperCommandLinkユーザーコントロールの実装を提供します。

はここでコマンドリンクを表示する方法の例です:

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

ライブラリは、コードプロジェクトオープンライセンスの下でライセンスされています。


Seven UpdateCommandLinkボタンの他​​の素敵な実装があります。 GPL v3のライセンスの下でライセンスプロジェクトです念頭に置いて

Seven Update

ベア:それはどのように見えるか

です。


このガイドでは、あまりにも役立つかもしれない:

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

+0

はコピーレフトライセンスなしでソリューションを消費する任意の少ない時間ありますか? ;) – OneWorld

+0

@OneWorld私は別のライブラリで自分の答えを更新しました。あなたが役に立つと思っているものが見つかったり、分かち合いたいと思ったら、私の答えを編集することができます。 –

+0

あなたの投稿をありがとう。私は自分のプロジェクトにライブラリをインポートしました。私はXAMLに ''を追加することができましたが、今では自分のニーズに合わせてテキストとアイコンを調整するのに苦労しています。私はまた、私のプロジェクトに図書館の代わりにソースプロジェクトを含めました。しかし、それでも私が調整する必要があるプロパティを保持することはできません。 – OneWorld

関連する問題