2 types derived from Canvas
PresentationFramework (2)
MS\Internal\Annotations\Component\HighlightComponent.cs (1)
34internal class HighlightComponent : Canvas, IAnnotationComponent, IHighlightRange
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (1)
43internal sealed class MarkedHighlightComponent : Canvas, IAnnotationComponent
6 instantiations of Canvas
IdeBenchmarks (1)
InheritanceMargin\InheritanceMarginGlyphBenchmarks.cs (1)
174_canvas = new Canvas()
Microsoft.VisualStudio.LanguageServices (1)
InheritanceMargin\InheritanceMarginViewMargin.cs (1)
64_mainCanvas = new Canvas { ClipToBounds = true, Width = HeightAndWidthOfMargin };
PresentationFramework (3)
System\Windows\Input\KeyboardNavigation.cs (1)
530Canvas canvas = new Canvas();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
2443bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.Canvas(); };
System\Windows\Markup\KnownTypes.cs (1)
1159case KnownElements.Canvas: o = new System.Windows.Controls.Canvas(); break;
PresentationUI (1)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (1)
2427Canvas canvas = new Canvas();
92 references to Canvas
IdeBenchmarks (2)
InheritanceMargin\InheritanceMarginGlyphBenchmarks.cs (2)
44private Canvas _canvas; 117Canvas.SetTop(glyph, j * WidthAndHeightOfGlyph);
Microsoft.CodeAnalysis.EditorFeatures.Wpf (8)
InlineDiagnostics\InlineDiagnosticsAdornmentManager.cs (2)
171Canvas.SetLeft(visualElement, 178Canvas.SetTop(visualElement, lineView.Bottom - visualElement.DesiredSize.Height);
InlineDiagnostics\InlineDiagnosticsTag.cs (1)
131Canvas.SetLeft(border, view.ViewportRight - border.DesiredSize.Width);
InlineRename\UI\Adornment\RenameFlyout.xaml.cs (2)
150Canvas.SetTop(this, top); 151Canvas.SetLeft(this, left);
InlineRename\UI\Dashboard\RenameDashboard.xaml.cs (2)
305Canvas.SetTop(this, top); 306Canvas.SetLeft(this, _textView.ViewportLeft + _textView.VisualElement.RenderSize.Width - this.RenderSize.Width);
LineSeparators\LineSeparatorTag.cs (1)
51Canvas.SetTop(border, bounds.Bounds.Bottom - border.Height);
Microsoft.VisualStudio.LanguageServices (4)
InheritanceMargin\InheritanceGlyphManager.cs (3)
45private readonly Canvas _glyphsContainer; 62Canvas canvas, 161=> Canvas.SetTop(glyph, line.TextTop - _textView.ViewportTop);
InheritanceMargin\InheritanceMarginViewMargin.cs (1)
36private readonly Canvas _mainCanvas;
PresentationFramework (73)
System\Windows\Controls\Canvas.cs (14)
79/// <seealso cref="Canvas.LeftProperty" /> 93/// <seealso cref="Canvas.LeftProperty" /> 105/// <seealso cref="Canvas.TopProperty" /> 119/// <seealso cref="Canvas.TopProperty" /> 131/// <seealso cref="Canvas.RightProperty" /> 145/// <seealso cref="Canvas.RightProperty" /> 157/// <seealso cref="Canvas.BottomProperty" /> 171/// <seealso cref="Canvas.BottomProperty" /> 199Canvas p = VisualTreeHelper.GetParent(uie) as Canvas; 213= DependencyProperty.RegisterAttached("Left", typeof(double), typeof(Canvas), 224= DependencyProperty.RegisterAttached("Top", typeof(double), typeof(Canvas), 236= DependencyProperty.RegisterAttached("Right", typeof(double), typeof(Canvas), 247= DependencyProperty.RegisterAttached("Bottom", typeof(double), typeof(Canvas),
System\Windows\Controls\DataGridColumnFloatingHeader.cs (3)
18[TemplatePart(Name = "PART_VisualBrushCanvas", Type = typeof(Canvas))] 103_visualBrushCanvas = GetTemplateChild(VisualBrushCanvasTemplateName) as Canvas; 196private Canvas _visualBrushCanvas;
System\Windows\Controls\GridViewColumnHeader.cs (3)
48[TemplatePart(Name = "PART_FloatingHeaderCanvas", Type = typeof(Canvas))] 104_floatingHeaderCanvas = GetTemplateChild(FloatingHeaderCanvasTemplateName) as Canvas; 1010private Canvas _floatingHeaderCanvas;
System\Windows\Controls\Slider.cs (8)
1024Canvas.SetLeft(rangeElement, (thumbSize.Width * 0.5) + Math.Max(Maximum - SelectionEnd, 0) * valueToSize); 1028Canvas.SetLeft(rangeElement, (thumbSize.Width * 0.5) + Math.Max(SelectionStart - Minimum, 0) * valueToSize); 1046Canvas.SetTop(rangeElement, (thumbSize.Height * 0.5) + Math.Max(SelectionStart - Minimum, 0) * valueToSize); 1050Canvas.SetTop(rangeElement, (thumbSize.Height * 0.5) + Math.Max(Maximum - SelectionEnd,0) * valueToSize); 1091Canvas.SetRight(rangeElement, (thumbSize.Width * 0.5)); 1095Canvas.SetLeft(rangeElement, (thumbSize.Width * 0.5)); 1114Canvas.SetTop(rangeElement, (thumbSize.Height * 0.5)); 1118Canvas.SetBottom(rangeElement, (thumbSize.Height * 0.5));
System\Windows\Documents\FixedDSBuilder.cs (1)
246if (fen.uiElement is Canvas)
System\Windows\Documents\FixedPage.cs (12)
220/// <seealso cref="Canvas.LeftProperty" /> 235/// <seealso cref="Canvas.LeftProperty" /> 248/// <seealso cref="Canvas.TopProperty" /> 263/// <seealso cref="Canvas.TopProperty" /> 276/// <seealso cref="Canvas.RightProperty" /> 291/// <seealso cref="Canvas.RightProperty" /> 304/// <seealso cref="Canvas.BottomProperty" /> 319/// <seealso cref="Canvas.BottomProperty" /> 895if (element is Canvas) 899Debug.Assert(currentLevelIndex >= 0 && currentLevelIndex <= ((Canvas)element).Children.Count); 900element = ((Canvas)element).Children[currentLevelIndex]; 1023else if (parent is Canvas parentC)
System\Windows\Documents\FixedTextBuilder.cs (6)
973else if (elements.Current is Canvas) 980Canvas canvas = elements.Current as Canvas; 1402Debug.Assert(elem is FixedPage || elem is Canvas); 1407Canvas canvas = child as Canvas;
System\Windows\Documents\Hyperlink.cs (1)
896if (fe != null && ((fe is Path) || (fe is Canvas) || (fe is Glyphs) || (fe is FixedPage)))
System\Windows\Input\KeyboardNavigation.cs (5)
530Canvas canvas = new Canvas(); 605Canvas.SetLeft(control, rect.X); 606Canvas.SetTop(control, rect.Y); 623Canvas.SetLeft(control, rect.X); 624Canvas.SetTop(control, rect.Y);
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
162case 66: t = () => typeof(Canvas); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (15)
4232Type type = typeof(System.Windows.Controls.Canvas); 4234this.GetXamlType(typeof(System.Windows.Controls.Canvas)), // DeclaringType 4240bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.Canvas)target).Children; }; 8323Type type = typeof(System.Windows.Controls.Canvas); 8324DependencyProperty dp = System.Windows.Controls.Canvas.TopProperty; 8326this.GetXamlType(typeof(System.Windows.Controls.Canvas)), // DeclaringType 8340Type type = typeof(System.Windows.Controls.Canvas); 8341DependencyProperty dp = System.Windows.Controls.Canvas.LeftProperty; 8343this.GetXamlType(typeof(System.Windows.Controls.Canvas)), // DeclaringType 8357Type type = typeof(System.Windows.Controls.Canvas); 8358DependencyProperty dp = System.Windows.Controls.Canvas.BottomProperty; 8360this.GetXamlType(typeof(System.Windows.Controls.Canvas)), // DeclaringType 8374Type type = typeof(System.Windows.Controls.Canvas); 8375DependencyProperty dp = System.Windows.Controls.Canvas.RightProperty; 8377this.GetXamlType(typeof(System.Windows.Controls.Canvas)), // DeclaringType
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
2441typeof(System.Windows.Controls.Canvas),
System\Windows\Markup\KnownTypes.cs (1)
5620case KnownElements.Canvas: t = typeof(System.Windows.Controls.Canvas); break;
System\Windows\Window.cs (2)
973Canvas.TopProperty.AddOwner(typeof(Window), 1024Canvas.LeftProperty.AddOwner(typeof(Window),
PresentationUI (1)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (1)
2427Canvas canvas = new Canvas();
System.Windows.Controls.Ribbon (4)
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenu.cs (4)
347double currentXPosition = Canvas.GetLeft(_popupToggleButton); 353double currentYPosition = Canvas.GetTop(_popupToggleButton); 361Canvas.SetLeft(_popupToggleButton, currentXPosition + popupToggleButtonOffset.X); 362Canvas.SetTop(_popupToggleButton, currentYPosition + popupToggleButtonOffset.Y);