Compile time error when styling BaseView like LoadingDecorator
问题 For instance I have the next code for my BaseView: using System.Windows; using DevExpress.Xpf.Core; namespace Infrastructure.BaseView { public class BaseView : LoadingDecorator { public BaseView() { Style = FindResource("BaseViewStyle") as Style; } } } Style: <Style TargetType="{x:Type baseView:BaseView}" x:Key="BaseViewStyle" > <Setter Property="OwnerLock" Value="InputOnly"/> <Style.Triggers> <DataTrigger Binding="{Binding State}" d:DataContext="{d:DesignInstance Type=baseViewModel