❔ WPF Inserting a color from the ResourceDictionary into the button code gives an error

3 Replies
Earlier in the code, using colors from ResourceDictionary did not cause errors

I mean
the error tells you exactly what's wrong
the type of
primaryBackColor1
(System.Windows.Media.Color
) is incompatible with the type of Button.Background
(System.Windows.Media.Brush
)Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.