Пример #1
0
 static ViewModelLocator()
 {
     AutoWireViewModelProperty = AvaloniaProperty.RegisterAttached <Control, bool>("AutoWireViewModel", typeof(ViewModelLocator), false);
     AutoWireViewModelProperty.Changed.Subscribe(args => AutoWireViewModelChanged(args?.Sender, args));
 }