2 types derived from Canvas
PresentationFramework (2)
MS\Internal\Annotations\Component\HighlightComponent.cs (1)
26internal class HighlightComponent : Canvas, IAnnotationComponent, IHighlightRange
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (1)
37internal 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)
520Canvas canvas = new Canvas();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
2441bamlType.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)
2420Canvas 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)
70/// <seealso cref="Canvas.LeftProperty" /> 84/// <seealso cref="Canvas.LeftProperty" /> 96/// <seealso cref="Canvas.TopProperty" /> 110/// <seealso cref="Canvas.TopProperty" /> 122/// <seealso cref="Canvas.RightProperty" /> 136/// <seealso cref="Canvas.RightProperty" /> 148/// <seealso cref="Canvas.BottomProperty" /> 162/// <seealso cref="Canvas.BottomProperty" /> 190Canvas p = VisualTreeHelper.GetParent(uie) as Canvas; 204= DependencyProperty.RegisterAttached("Left", typeof(double), typeof(Canvas), 215= DependencyProperty.RegisterAttached("Top", typeof(double), typeof(Canvas), 227= DependencyProperty.RegisterAttached("Right", typeof(double), typeof(Canvas), 238= DependencyProperty.RegisterAttached("Bottom", typeof(double), typeof(Canvas),
System\Windows\Controls\DataGridColumnFloatingHeader.cs (3)
14[TemplatePart(Name = "PART_VisualBrushCanvas", Type = typeof(Canvas))] 99_visualBrushCanvas = GetTemplateChild(VisualBrushCanvasTemplateName) as Canvas; 192private Canvas _visualBrushCanvas;
System\Windows\Controls\GridViewColumnHeader.cs (3)
44[TemplatePart(Name = "PART_FloatingHeaderCanvas", Type = typeof(Canvas))] 100_floatingHeaderCanvas = GetTemplateChild(FloatingHeaderCanvasTemplateName) as Canvas; 1006private Canvas _floatingHeaderCanvas;
System\Windows\Controls\Slider.cs (8)
1013Canvas.SetLeft(rangeElement, (thumbSize.Width * 0.5) + Math.Max(Maximum - SelectionEnd, 0) * valueToSize); 1017Canvas.SetLeft(rangeElement, (thumbSize.Width * 0.5) + Math.Max(SelectionStart - Minimum, 0) * valueToSize); 1035Canvas.SetTop(rangeElement, (thumbSize.Height * 0.5) + Math.Max(SelectionStart - Minimum, 0) * valueToSize); 1039Canvas.SetTop(rangeElement, (thumbSize.Height * 0.5) + Math.Max(Maximum - SelectionEnd,0) * valueToSize); 1080Canvas.SetRight(rangeElement, (thumbSize.Width * 0.5)); 1084Canvas.SetLeft(rangeElement, (thumbSize.Width * 0.5)); 1103Canvas.SetTop(rangeElement, (thumbSize.Height * 0.5)); 1107Canvas.SetBottom(rangeElement, (thumbSize.Height * 0.5));
System\Windows\Documents\FixedDSBuilder.cs (1)
238if (fen.uiElement is Canvas)
System\Windows\Documents\FixedPage.cs (12)
212/// <seealso cref="Canvas.LeftProperty" /> 227/// <seealso cref="Canvas.LeftProperty" /> 240/// <seealso cref="Canvas.TopProperty" /> 255/// <seealso cref="Canvas.TopProperty" /> 268/// <seealso cref="Canvas.RightProperty" /> 283/// <seealso cref="Canvas.RightProperty" /> 296/// <seealso cref="Canvas.BottomProperty" /> 311/// <seealso cref="Canvas.BottomProperty" /> 887if (element is Canvas) 891Debug.Assert(currentLevelIndex >= 0 && currentLevelIndex <= ((Canvas)element).Children.Count); 892element = ((Canvas)element).Children[currentLevelIndex]; 1015else if (parent is Canvas parentC)
System\Windows\Documents\FixedTextBuilder.cs (6)
967else if (elements.Current is Canvas) 974Canvas canvas = elements.Current as Canvas; 1396Debug.Assert(elem is FixedPage || elem is Canvas); 1401Canvas canvas = child as Canvas;
System\Windows\Documents\Hyperlink.cs (1)
890if (fe != null && ((fe is Path) || (fe is Canvas) || (fe is Glyphs) || (fe is FixedPage)))
System\Windows\Input\KeyboardNavigation.cs (5)
520Canvas canvas = new Canvas(); 595Canvas.SetLeft(control, rect.X); 596Canvas.SetTop(control, rect.Y); 613Canvas.SetLeft(control, rect.X); 614Canvas.SetTop(control, rect.Y);
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
160case 66: t = () => typeof(Canvas); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (15)
4230Type type = typeof(System.Windows.Controls.Canvas); 4232this.GetXamlType(typeof(System.Windows.Controls.Canvas)), // DeclaringType 4238bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.Canvas)target).Children; }; 8321Type type = typeof(System.Windows.Controls.Canvas); 8322DependencyProperty dp = System.Windows.Controls.Canvas.TopProperty; 8324this.GetXamlType(typeof(System.Windows.Controls.Canvas)), // DeclaringType 8338Type type = typeof(System.Windows.Controls.Canvas); 8339DependencyProperty dp = System.Windows.Controls.Canvas.LeftProperty; 8341this.GetXamlType(typeof(System.Windows.Controls.Canvas)), // DeclaringType 8355Type type = typeof(System.Windows.Controls.Canvas); 8356DependencyProperty dp = System.Windows.Controls.Canvas.BottomProperty; 8358this.GetXamlType(typeof(System.Windows.Controls.Canvas)), // DeclaringType 8372Type type = typeof(System.Windows.Controls.Canvas); 8373DependencyProperty dp = System.Windows.Controls.Canvas.RightProperty; 8375this.GetXamlType(typeof(System.Windows.Controls.Canvas)), // DeclaringType
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
2439typeof(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)
960Canvas.TopProperty.AddOwner(typeof(Window), 1011Canvas.LeftProperty.AddOwner(typeof(Window),
PresentationUI (1)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (1)
2420Canvas canvas = new Canvas();
System.Windows.Controls.Ribbon (4)
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenu.cs (4)
345double currentXPosition = Canvas.GetLeft(_popupToggleButton); 351double currentYPosition = Canvas.GetTop(_popupToggleButton); 359Canvas.SetLeft(_popupToggleButton, currentXPosition + popupToggleButtonOffset.X); 360Canvas.SetTop(_popupToggleButton, currentYPosition + popupToggleButtonOffset.Y);