private void LoadProperties() { Children.Clear(); var type = Value.GetType(); var accessors = type.GetAccessors(); accessors.Foreach(a => { var viewModel = PropertySheetManager.GetViewModelFor(a.ValueType); if (viewModel == null) { return; } viewModel.Accessor = a; viewModel.Object = Value; Children.Add(viewModel); }); }
public App() { PropertySheetManager.Initialize(); PropertySheetManager.RegisterViewModelForType(typeof(Vector2), typeof(Vector2ViewModel)); }