public Page2(NavigationWindowService <InitializeData> service) { InitializeComponent(); var model = new Page2Model(service.Share); model.CanChenged += Model_CanChenged; DataContext = new ViewModels.Page2ViewModel(service, model); }
public Page2ViewModel(NavigationWindowService <InitializeData> bindableValue, Page2Model model) : base(bindableValue?.NavigationValue) { this.model = model; GetPathBtClick = new DelegateCommand(GetPathBt_Click); AutoSearchBtClick = new DelegateCommand(AutoSearchBt_Click); ServerFilePathText = model.ToReactivePropertyAsSynchronized(m => m.ServerFilePathText); }