Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
C# コードで 2 つのグラデーションの背景を持つ Visual Studio スタイルのツールバーを再現しようとしています。XAML でそれを行う方法はわかりますが、オブジェクトにドリルインして、C# コードで「MainPanelBorder」境界線の背景を変更するにはどうすればよいですか?
ありがとう
を使用する必要があります
myToolbar.Template.FindName("MainPanelBorder", myToolbar) as Panel //Or whatever the type of the item is in the template.