Hello,
I would like to hide/show properties in the xamPropertyGrid in code. I would like to show/hide properties by an visibility layer.
E.g.
Is there a way to archive that?
//... switch (userType) { case UserTypeEnum.Dummy: PropertyGridComparisonCondition comparisonCondition1 = new PropertyGridComparisonCondition(); comparisonCondition1.OperandSource = PropertyGridFilterOperandSource.CategoryName; comparisonCondition1.Operator = ComparisonOperator.Equals; comparisonCondition1.Value = "Occupation"; PropertyGridComparisonCondition comparisonCondition2 = new PropertyGridComparisonCondition(); comparisonCondition2.OperandSource = PropertyGridFilterOperandSource.CategoryName; comparisonCondition2.Operator = ComparisonOperator.Equals; comparisonCondition2.Value = "Location"; filterConditions.Clear(); filterConditions.Add(comparisonCondition1); filterConditions.Add(comparisonCondition2); this.xamPropertyGrid1.ItemFilters = filterConditions; break; //...