1

C# コードで 2 つのグラデーションの背景を持つ Visual Studio スタイルのツールバーを再現しようとしています。XAML でそれを行う方法はわかりますが、オブジェクトにドリルインして、C# コードで「MainPanelBorder」境界線の背景を変更するにはどうすればよいですか?

ありがとう

4

1 に答える 1

1

を使用する必要があります

myToolbar.Template.FindName("MainPanelBorder", myToolbar) as Panel 
   //Or whatever the type of the item is in the template.
于 2008-12-23T15:46:29.143 に答える