You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 17, 2021. It is now read-only.
DefaultStyleKeyProperty.OverrideMetadata(typeof(VisualProgramEditor), new FrameworkPropertyMetadata(typeof(VisualProgramEditor)));
}
#region Program DependencyProperty
public VisualProgram Program {
get => (VisualProgram)GetValue(ProgramProperty);
set => SetValue(ProgramProperty, value);
}
public static readonly DependencyProperty ProgramProperty =
DependencyProperty.Register("Program", typeof(VisualProgram), typeof(VisualProgramEditor), new FrameworkPropertyMetadata(null, FrameworkPropertyMetadataOptions.AffectsRender));
#endregion
}
public class ProgramViewModelConverter : IValueConverter {
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) => value is VisualProgram vp ? new VisualProgramViewModel(vp) : null;
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) => throw new NotImplementedException();