public void Change_Properties(PropertyGridPrimitive control) { var person = new Person(); var properties = PropertyModel.GetProperties(person, true); collection.RemoveAll(); foreach (var item in properties) collection.Add(item); }
public void Initialize(PropertyGridPrimitive control) { control.Width = 300; control.Height = 450; control.Background = StyleResources.Colors["Mac.Lavender"] as Brush; model = new Car{ChildCar = new Car()}; collection = PropertyModel.GetProperties(model, true); control.ViewModel = new PropertyGridPrimitiveViewModel(collection); }
public void Destroy_ViewModel(PropertyGridPrimitive control) { control.ViewModel.Dispose(); }
public void Change_Property_Value_Null(PropertyGridPrimitive control) { model.Brand = null; }
public void Change_Property_Value(PropertyGridPrimitive control) { model.Brand = RandomData.LoremIpsum(1, 3); }