45 references to VisualDiagnostics
Microsoft.Maui (4)
VisualDiagnostics\VisualDiagnostics.cs (4)
28
if (target != null &&
VisualDiagnostics
.IsEnabled)
44
if (!
VisualDiagnostics
.IsEnabled)
57
if (!
VisualDiagnostics
.IsEnabled)
68
if (!
VisualDiagnostics
.IsEnabled)
Microsoft.Maui.Controls (34)
AppThemeBinding.cs (3)
55
if (
VisualDiagnostics
.IsEnabled &&
VisualDiagnostics
.GetSourceInfo(this) is SourceInfo info)
56
VisualDiagnostics
.RegisterSourceInfo(clone, info.SourceUri, info.LineNumber, info.LinePosition);
Binding.cs (3)
174
if (
VisualDiagnostics
.IsEnabled &&
VisualDiagnostics
.GetSourceInfo(this) is SourceInfo info)
175
VisualDiagnostics
.RegisterSourceInfo(clone, info.SourceUri, info.LineNumber, info.LinePosition);
Element\Element.cs (2)
598
VisualDiagnostics
.OnChildAdded(this, child);
618
VisualDiagnostics
.OnChildRemoved(this, child, oldLogicalIndex);
ListView\ListView.cs (2)
455
VisualDiagnostics
.OnChildAdded(this, content);
470
VisualDiagnostics
.OnChildRemoved(this, content, index);
MultiBinding.cs (3)
73
if (
VisualDiagnostics
.IsEnabled &&
VisualDiagnostics
.GetSourceInfo(this) is SourceInfo info)
74
VisualDiagnostics
.RegisterSourceInfo(clone, info.SourceUri, info.LineNumber, info.LinePosition);
TableView\TableSection.cs (5)
38
VisualDiagnostics
.OnChildAdded(this, element);
48
VisualDiagnostics
.OnChildRemoved(this, element, _children.IndexOf(item));
79
VisualDiagnostics
.OnChildRemoved(this, element, _children.IndexOf(item));
104
VisualDiagnostics
.OnChildAdded(this, element, index);
121
VisualDiagnostics
.OnChildRemoved(this, element, index);
TableView\TableView.cs (2)
79
VisualDiagnostics
.OnChildRemoved(this, _tableModel.Root, 0);
82
VisualDiagnostics
.OnChildAdded(this, _tableModel.Root);
TemplateBinding.cs (3)
104
if (
VisualDiagnostics
.IsEnabled &&
VisualDiagnostics
.GetSourceInfo(this) is SourceInfo info)
105
VisualDiagnostics
.RegisterSourceInfo(clone, info.SourceUri, info.LineNumber, info.LinePosition);
VisualStateManager.cs (9)
521
if (
VisualDiagnostics
.IsEnabled &&
VisualDiagnostics
.GetSourceInfo(this) is SourceInfo info)
522
VisualDiagnostics
.RegisterSourceInfo(clone, info.SourceUri, info.LineNumber, info.LinePosition);
635
if (
VisualDiagnostics
.IsEnabled &&
VisualDiagnostics
.GetSourceInfo(this) is SourceInfo info)
636
VisualDiagnostics
.RegisterSourceInfo(clone, info.SourceUri, info.LineNumber, info.LinePosition);
702
if (
VisualDiagnostics
.IsEnabled &&
VisualDiagnostics
.GetSourceInfo(groups) is SourceInfo info)
703
VisualDiagnostics
.RegisterSourceInfo(clone, info.SourceUri, info.LineNumber, info.LinePosition);
Xaml\Diagnostics\BindingDiagnostics.cs (2)
19
BindingFailed?.Invoke(null, new BindingBaseErrorEventArgs(
VisualDiagnostics
.GetSourceInfo(binding), binding, errorCode, message, messageArgs));
25
BindingFailed?.Invoke(null, new BindingErrorEventArgs(
VisualDiagnostics
.GetSourceInfo(binding), binding, source, bo, bp, errorCode, message, messageArgs));
Microsoft.Maui.Controls.Xaml (7)
ApplyPropertiesVisitor.cs (2)
375
if (
VisualDiagnostics
.GetSourceInfo(target) != null)
379
VisualDiagnostics
.RegisterSourceInfo(target, new Uri($"{path};assembly={assemblyName}", UriKind.Relative), lineInfo.LineNumber, lineInfo.LinePosition);
CreateValuesVisitor.cs (2)
173
VisualDiagnostics
.RegisterSourceInfo(value, new Uri($"{path};assembly={assemblyName}", UriKind.Relative), ((IXmlLineInfo)node).LineNumber, ((IXmlLineInfo)node).LinePosition);
192
VisualDiagnostics
.RegisterSourceInfo(rnode.Root, new Uri($"{path};assembly={assemblyName}", UriKind.Relative), ((IXmlLineInfo)node).LineNumber, ((IXmlLineInfo)node).LinePosition);
Diagnostics\ResourceDictionaryDiagnostics.cs (1)
8
if (
VisualDiagnostics
.IsEnabled)
XamlLoader.cs (2)
89
VisualDiagnostics
.OnChildAdded(null, view as Element);
134
VisualDiagnostics
.OnChildAdded(null, inflatedView as Element);