private static void OnSetOutputPath(DependencyObject d, DependencyPropertyChangedEventArgs e) { if (e.NewValue is string) { CorkBoard source = (CorkBoard)d; source.SetOutputPath(e.NewValue.ToString(), source); } }
private void SetOutputPath(string value, CorkBoard source) { CorkboardViewModel vm = (CorkboardViewModel)source.RootElement.DataContext; vm.OutputFilePath = value; }