Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public partial class CustomView : UserControl, IViewFor<CustomViewModel>
- {
- public CustomViewModel ViewModel { get; set; }
- object IViewFor.ViewModel {
- get { return ViewModel; }
- set { ViewModel = value as CustomViewModel; }
- }
- public BridgeGeometryView()
- {
- InitializeComponent();
- this.Bind(ViewModel, x => x.SomeBindingList, x => x.DataGridBindingSource.DataSource);
- }
- }
- customView.ViewModel = new CustomViewModel(model)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement