Proper way to bind to usercontrol? I get BindingExpression errors in output window but the binding works fine in runtime

Mar 13, 2014 at 7:47 PM
i have the following xaml:

<UserControls:MaintenancePanel cal:Bind.Model="{Binding MyPanelInfo}" Margin="5,5,5,5"/>

and I have a viewmodel class called MaintenanceViewModel which contains a property called MyPanelInfo

inside the usercontrol, i have bindings to properties that MyPanelInfo instance contains. the binding works fine in runtime but i get this annoying error in the output window that i'd like to resolve for the sake of resolving it.

System.Windows.Data Error: 40 : BindingExpression path error: 'DeviceName' property not found on 'object' ''MaintenanceViewModel' (HashCode=16653192)'. BindingExpression:Path=DeviceName; DataItem='MaintenanceViewModel' (HashCode=16653192); target element is 'GroupBox' (Name=''); target property is 'Header' (type 'Object')