2 writes to Value
Microsoft.Maui.Controls.Xaml (2)
XamlNode.cs (1)
115
Value
= value;
XamlParser.cs (1)
125
((ValueNode)node.CollectionItems[0]).
Value
+= reader.Value.Trim();
53 references to Value
Microsoft.Maui.Controls.Build.Tasks (37)
CompiledConverters\BindablePropertyConverter.cs (2)
81
=> ((node as ElementNode).Properties[new XmlName("", "TargetType")] as ValueNode)?.
Value
as string;
102
return ((target?.Parent as IElementNode)?.Properties[new XmlName("", "TargetType")] as ValueNode)?.
Value
as string;
CompiledMarkupExtensions\DataTemplateExtension.cs (2)
25
var contentTypeRef = module.ImportReference(XmlTypeExtensions.GetTypeReference(context.Cache, valueNode.
Value
as string, module, node as BaseNode))
26
?? throw new BuildException(BuildExceptionCode.TypeResolution, node as IXmlLineInfo, null, valueNode.
Value
);
CompiledMarkupExtensions\StaticExtension.cs (1)
18
var member = ((ValueNode)ntype).
Value
as string;
CompiledMarkupExtensions\StaticResourceExtension.cs (7)
36
&& xKeyValueNode.
Value
as string == keyValueNode.
Value
as string)
57
&& xKeyValueNode2.
Value
as string == keyValueNode.
Value
as string)
82
&& xKeyValueNode3.
Value
as string == keyValueNode.
Value
as string)
103
foreach (var instruction in FallBack(keyValueNode.
Value
as string, eNode, module, context).ToList())
CompiledMarkupExtensions\TypeExtension.cs (2)
31
var typeref = module.ImportReference(XmlTypeExtensions.GetTypeReference(context.Cache, valueNode.
Value
as string, module, node as BaseNode));
33
context.TypeExtensions[node] = typeref ?? throw new BuildException(BuildExceptionCode.TypeResolution, node as IXmlLineInfo, null, valueNode.
Value
);
CompiledValueProviders\SetterValueProvider.cs (2)
21
var bpRef = (new BindablePropertyConverter()).GetBindablePropertyFieldReference((string)bpNode.
Value
, context, module, bpNode);
34
var value = ((string)((ValueNode)valueNode).
Value
);
CompiledValueProviders\StyleSheetProvider.cs (2)
41
var style = (styleNode as ValueNode).
Value
as string;
50
var source = (sourceNode as ValueNode)?.
Value
as string;
CreateObjectVisitor.cs (5)
41
Context.Values[node] = node.
Value
;
144
var factoryMethod = (string)(node.Properties[XmlName.xFactoryMethod] as ValueNode).
Value
;
216
Context.IL.Emit(OpCodes.Ldstr, ((ValueNode)(node.CollectionItems.First())).
Value
as string);
396
((ValueNode)node.CollectionItems[0]).
Value
is string;
397
var valueString = hasValue ? ((ValueNode)node.CollectionItems[0]).
Value
as string : string.Empty;
NodeILExtensions.cs (5)
47
var str = (string)node.
Value
;
155
var str = (string)node.
Value
;
168
node.
Value
as string, context, node as BaseNode});
200
yield return Create(Ldstr, node.
Value
as string);
322
yield return Create(Ldstr, node.
Value
as string);
SetFieldVisitor.cs (1)
33
var field = Context.Body.Method.DeclaringType.Fields.SingleOrDefault(fd => fd.Name == (string)node.
Value
);
SetNamescopesAndRegisterNamesVisitor.cs (2)
35
RegisterName((string)node.
Value
, Context.Scopes[node].Item1, Context.Scopes[node].Item2, Context.Variables[(IElementNode)parentNode], node);
36
SetStyleId((string)node.
Value
, Context.Variables[(IElementNode)parentNode]);
SetPropertiesVisitor.cs (6)
436
var path = (pathNode as ValueNode)?.
Value
as string;
438
|| !Enum.TryParse((modeNode as ValueNode)?.
Value
as string, true, out BindingMode declaredmode))
497
string dataType = (dataTypeNode as ValueNode)?.
Value
as string;
1204
var value = ((ValueNode)valueNode).
Value
;
1654
var key = (valueNode).
Value
as string;
1708
var key = (valueNode).
Value
as string;
Microsoft.Maui.Controls.Xaml (16)
ApplyPropertiesVisitor.cs (3)
141
xKey = valueNode.
Value
as string;
203
xKey = valueNode.
Value
as string;
349
var xKey = node is IElementNode eNode && eNode.Properties.ContainsKey(XmlName.xKey) ? ((ValueNode)eNode.Properties[XmlName.xKey]).
Value
as string : null;
CreateValuesVisitor.cs (4)
40
Values[node] = node.
Value
;
98
var converted = ((ValueNode)node.CollectionItems.First()).
Value
.ConvertTo(type, () => type,
251
var factoryMethod = ((string)((ValueNode)node.Properties[XmlName.xFactoryMethod]).
Value
);
347
&& ((ValueNode)node.CollectionItems[0]).
Value
is string valuestring)
PruneIgnoredNodesVisitor.cs (1)
24
if (!((propertyKvp.Value as ValueNode)?.
Value
is string propertyValue))
RegisterXNamesVisitor.cs (3)
31
((IElementNode)parentNode).NameScopeRef.NameScope.RegisterName((string)node.
Value
, Values[parentNode]);
37
var xpe = new XamlParseException($"An element with the name \"{(string)node.
Value
}\" already exists in this NameScope", node);
56
element.StyleId = element.StyleId ?? (string)node.
Value
;
SimplifyTypeExtensionVisitor.cs (2)
62
&& node.Properties[typeNameXmlName] is ValueNode {
Value
: string } propertyValueNode)
69
&& node.CollectionItems[0] is ValueNode {
Value
: string } collectionValueNode)
XamlNode.cs (1)
125
public override INode Clone() => new ValueNode(
Value
, NamespaceResolver, LineNumber, LinePosition)
XamlParser.cs (1)
200
? ((ValueNode)attributes.First(kvp => kvp.Key == XmlName.xTypeArguments).Value).
Value
as IList<XmlType>
XamlServiceProvider.cs (1)
370
BindingDataType = valueNode.
Value
as string;