37 references to XamlParseException
Microsoft.Maui.Controls (8)
ReferenceTypeConverter.cs (1)
30
return referenceProvider.FindByName(value) ?? throw new
XamlParseException
($"Can't resolve name '{value}' on Element", serviceProvider);
Setter.cs (3)
31
throw new
XamlParseException
("Property not set", serviceProvider);
43
throw new
XamlParseException
($"Multiple properties with name '{Property.DeclaringType}.{Property.PropertyName}' found.", serviceProvider, innerException: e);
53
throw new
XamlParseException
($"Multiple methods with name '{Property.DeclaringType}.Get{Property.PropertyName}' found.", serviceProvider, innerException: e);
StyleSheets\Style.cs (2)
109
throw new
XamlParseException
($"Multiple properties with name '{property.DeclaringType}.{property.PropertyName}' found.", serviceProvider, innerException: e);
119
throw new
XamlParseException
($"Multiple methods with name '{property.DeclaringType}.Get{property.PropertyName}' found.", serviceProvider, innerException: e);
Xaml\TypeConversionExtensions.cs (1)
159
exception = e as XamlParseException ?? new
XamlParseException
($"Type converter failed: {e.Message}", serviceProvider, e);
Xaml\ValueConverterProvider.cs (1)
19
throw new
XamlParseException
(exception.Message, serviceProvider, exception);
Microsoft.Maui.Controls.Xaml (29)
CreateValuesVisitor.cs (1)
143
var xamlpe = e as XamlParseException ?? new
XamlParseException
("Markup extension failed", serviceProvider, e);
ExpandMarkupsVisitor.cs (1)
194
var ex = new
XamlParseException
($"MarkupExtension not found for {match}", serviceProvider);
MarkupExpressionParser.cs (6)
59
throw new
XamlParseException
("Expression must end with '}'", serviceProvider);
67
throw new
XamlParseException
("Expression did not end in '}'", serviceProvider);
161
throw new
XamlParseException
("Unexpected end of markup expression", serviceProvider);
167
throw new
XamlParseException
("Unexpected character following value string", serviceProvider);
218
throw new
XamlParseException
("Unterminated quoted string", serviceProvider);
221
throw new
XamlParseException
("Empty value string in markup expression", serviceProvider);
MarkupExtensionParser.cs (5)
43
throw new
XamlParseException
($"MarkupExtension not found for {match}", serviceProvider);
48
throw new
XamlParseException
($"Missing public default constructor for MarkupExtension {match}", serviceProvider);
80
throw new
XamlParseException
($"Multiple properties with name '{t}.{prop}' found.", serviceProvider, innerException: e);
91
throw new
XamlParseException
($"Multiple properties with name '{markupExtension.GetType()}.{prop}' found.", serviceProvider, innerException: e);
106
throw new
XamlParseException
($"Multiple properties with name '{markupExtension.GetType()}.{prop}' found.", serviceProvider, innerException: e);
MarkupExtensions\AppThemeBindingExtension.cs (3)
56
throw new
XamlParseException
("AppThemeBindingExtension requires a non-null value to be specified for at least one theme or Default.", serviceProvider);
89
throw new
XamlParseException
($"Multiple properties with name '{bp.DeclaringType}.{bp.PropertyName}' found.", serviceProvider, innerException: e);
99
throw new
XamlParseException
($"Multiple methods with name '{bp.DeclaringType}.Get{bp.PropertyName}' found.", serviceProvider, innerException: e);
MarkupExtensions\DynamicResourceExtension.cs (1)
17
throw new
XamlParseException
("DynamicResource markup require a Key", serviceProvider);
MarkupExtensions\OnIdiomExtension.cs (3)
41
throw new
XamlParseException
("OnIdiomExtension requires a non-null value to be specified for at least one idiom or Default.", serviceProvider);
84
throw new
XamlParseException
($"Multiple properties with name '{bp.DeclaringType}.{bp.PropertyName}' found.", serviceProvider, innerException: e);
94
throw new
XamlParseException
($"Multiple methods with name '{bp.DeclaringType}.Get{bp.PropertyName}' found.", serviceProvider, innerException: e);
MarkupExtensions\OnPlatformExtension.cs (3)
52
throw new
XamlParseException
("OnPlatformExtension requires a value to be specified for at least one platform or Default.", serviceProvider);
106
throw new
XamlParseException
($"Multiple properties with name '{bp.DeclaringType}.{bp.PropertyName}' found.", serviceProvider, innerException: e);
116
throw new
XamlParseException
($"Multiple methods with name '{bp.DeclaringType}.Get{bp.PropertyName}' found.", serviceProvider, innerException: e);
MarkupExtensions\ReferenceExtension.cs (1)
37
throw new
XamlParseException
($"Cannot find the object referenced by `{Name}`", serviceProvider);
MarkupExtensions\StaticExtension.cs (2)
24
throw new
XamlParseException
("Syntax for x:Static is [Member=][prefix:]typeName.staticMemberName", serviceProvider);
40
throw new
XamlParseException
($"No static member found for {Member}", serviceProvider);
MarkupExtensions\StaticResourceExtension.cs (1)
20
throw new
XamlParseException
("you must specify a key in {StaticResource}", serviceProvider);
MarkupExtensions\StyleSheetExtension.cs (2)
24
throw new
XamlParseException
($"StyleSheet cannot have both a Source and a content", serviceProvider);
48
throw new
XamlParseException
($"StyleSheet require either a Source or a content", serviceProvider);