@@ -71,12 +71,15 @@ public sealed class XmlFlavorForXaml : XmlFlavor
71
71
{ ElementNames . DataTemplate , AttributeNames . DataType } ,
72
72
{ ElementNames . EventSetter , AttributeNames . Event } ,
73
73
{ ElementNames . GlobalResourceDictionary , AttributeNames . Source } ,
74
+ { ElementNames . Image , AttributeNames . Source } ,
74
75
{ ElementNames . ListView , AttributeNames . ItemsSource } ,
75
76
{ ElementNames . Setter , AttributeNames . Property } ,
76
77
{ ElementNames . StaticResource , AttributeNames . ResourceKey } ,
77
78
{ ElementNames . Style , AttributeNames . TargetType } ,
78
79
{ ElementNames . TextBlock , AttributeNames . Text } ,
79
80
{ ElementNames . Trigger , AttributeNames . Property } ,
81
+ { ElementNames . UserControl , AttributeNames . Class } ,
82
+ { ElementNames . Window , AttributeNames . Class } ,
80
83
} ;
81
84
82
85
public override bool ParseAttributesEnabled => false ;
@@ -191,11 +194,14 @@ private static class ElementNames
191
194
internal const string TextBlock = "TextBlock" ;
192
195
internal const string TextBox = "TextBox" ;
193
196
internal const string Trigger = "Trigger" ;
197
+ internal const string UserControl = "UserControl" ;
198
+ internal const string Window = "Window" ;
194
199
}
195
200
196
201
private static class AttributeNames
197
202
{
198
203
internal const string AutomationId = "AutomationProperties.AutomationId" ;
204
+ internal const string Class = "x:Class" ;
199
205
internal const string Command = "Command" ;
200
206
internal const string Content = "Content" ;
201
207
internal const string DataType = "DataType" ;
0 commit comments