You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
540 B
21 lines
540 B
using System.Collections.ObjectModel;
|
|
|
|
namespace Microsoft.Windows.Controls.PropertyGrid
|
|
{
|
|
public class PropertyDefinitionCollection : ObservableCollection<PropertyDefinition>
|
|
{
|
|
public PropertyDefinition this[string propertyName]
|
|
{
|
|
get
|
|
{
|
|
foreach (var item in Items)
|
|
{
|
|
if (item.Name == propertyName)
|
|
return item;
|
|
}
|
|
|
|
return null;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|