Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Commit 48f64db

Browse files
committed
Get all Set Properties
1 parent a2f8ecf commit 48f64db

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Project/Xaml/XamlDesignItem.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,10 @@ public override DesignItemPropertyCollection Properties {
260260
get { return _properties; }
261261
}
262262

263+
public override IEnumerable<DesignItemProperty> AllSetProperties {
264+
get { return _xamlObject.Properties.Select(x => new XamlModelProperty(this, x)); }
265+
}
266+
263267
internal void NotifyPropertyChanged(XamlModelProperty property)
264268
{
265269
Debug.Assert(property != null);

src/AddIns/DisplayBindings/WpfDesign/WpfDesign/Project/DesignItem.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@ public abstract class DesignItem : INotifyPropertyChanged
7878
/// </summary>
7979
public abstract DesignItemPropertyCollection Properties { get; }
8080

81+
/// <summary>
82+
/// Gets properties set on the design item.
83+
/// </summary>
84+
public abstract IEnumerable<DesignItemProperty> AllSetProperties { get; }
85+
8186
/// <summary>
8287
/// Gets/Sets the name of the design item.
8388
/// </summary>

0 commit comments

Comments
 (0)