お世話になっております。
WPFアプリケーションをNuGetを用いてElysium.Theme(2.0.4)を使用させていただき、開発を行っております。
導入に関してはこちらを参考にしました。
しかし、ComboBoxをWindow等に配置した際に下記のようなエラーが複数個発生します。
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ComboBox', AncestorLevel='1''. BindingExpression:Path=(0).(1); DataItem=null; target element is 'DropShadowEffect' (HashCode=60695621); target property is 'Color' (type 'Color')
また、毎回ではないのですが、下記のようなエラーが発生します。
System.Windows.Data Error: 2 : Cannot find governing FrameworkElement or FrameworkContentElement for target element. BindingExpression:Path=Percent; DataItem=null; target element is 'ScaleTransform' (HashCode=7180698); target property is 'ScaleX' (type 'Double')
前者に関してはDropShadowEffect
に何かしらColorをXAML側でセットしてあげれば良いのではないかと思い、
[wpf combobox DropShadowEffect]などのキーワードで検索してみたのですが、解決できませんでした。
解決策をご存知の方、よろしくお願い致します。
実際にElysiumを導入されてご検証いただくのも、面倒だと思います。
Comboboxに対してDropShadowEffectを無効にする方法等でも構いませんので、よろしくお願い致します。
環境
VS 2017 Pro, C#, .NET FW 4.5
あなたの回答
tips
プレビュー