canton7 / Stylet

A very lightweight but powerful ViewModel-First MVVM framework for WPF for .NET Framework and .NET Core, inspired by Caliburn.Micro.
MIT License
981 stars 143 forks source link

Unable to use Style in xaml #231

Closed ObsidianSilence closed 3 years ago

ObsidianSilence commented 3 years ago

This is my first project using Stylet so I am probably missing something. I am opening a number of views that open other views, all of the views have a button that opens another view and a GoBack button. When I have all of the styling information in each button the project compiles and runs just fine.
When I pull the styling values out into Styles.xaml and use the Style tag image I get the following error message "{DependencyProperty.UnsetValue}" is not a valid value for property 'Foreground'. image