2 types derived from Canvas
PresentationFramework (2)
src\Framework\MS\Internal\Annotations\Component\HighlightComponent.cs (1)
38internal class HighlightComponent : Canvas, IAnnotationComponent, IHighlightRange
src\Framework\MS\Internal\Annotations\Component\MArkedHighlightComponent.cs (1)
47internal sealed class MarkedHighlightComponent : Canvas, IAnnotationComponent
3 instantiations of Canvas
PresentationFramework (3)
src\Framework\System\Windows\Input\KeyboardNavigation.cs (1)
578Canvas canvas = new Canvas();
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
2439bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.Canvas(); };
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
1160case KnownElements.Canvas: o = new System.Windows.Controls.Canvas(); break;
76 references to Canvas
PresentationFramework (70)
src\Framework\System\Windows\Controls\Canvas.cs (14)
85/// <seealso cref="Canvas.LeftProperty" /> 99/// <seealso cref="Canvas.LeftProperty" /> 111/// <seealso cref="Canvas.TopProperty" /> 125/// <seealso cref="Canvas.TopProperty" /> 137/// <seealso cref="Canvas.RightProperty" /> 151/// <seealso cref="Canvas.RightProperty" /> 163/// <seealso cref="Canvas.BottomProperty" /> 177/// <seealso cref="Canvas.BottomProperty" /> 205Canvas p = VisualTreeHelper.GetParent(uie) as Canvas; 219= DependencyProperty.RegisterAttached("Left", typeof(double), typeof(Canvas), 230= DependencyProperty.RegisterAttached("Top", typeof(double), typeof(Canvas), 242= DependencyProperty.RegisterAttached("Right", typeof(double), typeof(Canvas), 253= DependencyProperty.RegisterAttached("Bottom", typeof(double), typeof(Canvas),
src\Framework\System\Windows\Controls\DataGridColumnFloatingHeader.cs (3)
19[TemplatePart(Name = "PART_VisualBrushCanvas", Type = typeof(Canvas))] 104_visualBrushCanvas = GetTemplateChild(VisualBrushCanvasTemplateName) as Canvas; 197private Canvas _visualBrushCanvas;
src\Framework\System\Windows\Controls\GridViewColumnHeader.cs (3)
51[TemplatePart(Name = "PART_FloatingHeaderCanvas", Type = typeof(Canvas))] 107_floatingHeaderCanvas = GetTemplateChild(FloatingHeaderCanvasTemplateName) as Canvas; 1043private Canvas _floatingHeaderCanvas;
src\Framework\System\Windows\Controls\Slider.cs (4)
1029Canvas.SetLeft(rangeElement, (thumbSize.Width * 0.5) + Math.Max(Maximum - SelectionEnd, 0) * valueToSize); 1033Canvas.SetLeft(rangeElement, (thumbSize.Width * 0.5) + Math.Max(SelectionStart - Minimum, 0) * valueToSize); 1051Canvas.SetTop(rangeElement, (thumbSize.Height * 0.5) + Math.Max(SelectionStart - Minimum, 0) * valueToSize); 1055Canvas.SetTop(rangeElement, (thumbSize.Height * 0.5) + Math.Max(Maximum - SelectionEnd,0) * valueToSize);
src\Framework\System\Windows\Documents\FixedDSBuilder.cs (1)
253if (fen.uiElement is Canvas)
src\Framework\System\Windows\Documents\FixedPage.cs (13)
227/// <seealso cref="Canvas.LeftProperty" /> 242/// <seealso cref="Canvas.LeftProperty" /> 255/// <seealso cref="Canvas.TopProperty" /> 270/// <seealso cref="Canvas.TopProperty" /> 283/// <seealso cref="Canvas.RightProperty" /> 298/// <seealso cref="Canvas.RightProperty" /> 311/// <seealso cref="Canvas.BottomProperty" /> 326/// <seealso cref="Canvas.BottomProperty" /> 926if (element is Canvas) 930Debug.Assert(currentLevelIndex >= 0 && currentLevelIndex <= ((Canvas)element).Children.Count); 931element = ((Canvas)element).Children[currentLevelIndex]; 1054else if (parent is Canvas) 1056childIndex = ((Canvas)parent).Children.IndexOf((UIElement)e);
src\Framework\System\Windows\Documents\FixedTextBuilder.cs (6)
997else if (elements.Current is Canvas) 1004Canvas canvas = elements.Current as Canvas; 1430Debug.Assert(elem is FixedPage || elem is Canvas); 1435Canvas canvas = child as Canvas;
src\Framework\System\Windows\Documents\Hyperlink.cs (1)
949if (fe != null && ((fe is Path) || (fe is Canvas) || (fe is Glyphs) || (fe is FixedPage)))
src\Framework\System\Windows\Input\KeyboardNavigation.cs (5)
578Canvas canvas = new Canvas(); 653Canvas.SetLeft(control, rect.X); 654Canvas.SetTop(control, rect.Y); 671Canvas.SetLeft(control, rect.X); 672Canvas.SetTop(control, rect.Y);
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
158case 66: t = () => typeof(Canvas); break;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (15)
4207Type type = typeof(System.Windows.Controls.Canvas); 4209this.GetXamlType(typeof(System.Windows.Controls.Canvas)), // DeclaringType 4215bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.Canvas)target).Children; }; 8281Type type = typeof(System.Windows.Controls.Canvas); 8282DependencyProperty dp = System.Windows.Controls.Canvas.TopProperty; 8284this.GetXamlType(typeof(System.Windows.Controls.Canvas)), // DeclaringType 8298Type type = typeof(System.Windows.Controls.Canvas); 8299DependencyProperty dp = System.Windows.Controls.Canvas.LeftProperty; 8301this.GetXamlType(typeof(System.Windows.Controls.Canvas)), // DeclaringType 8315Type type = typeof(System.Windows.Controls.Canvas); 8316DependencyProperty dp = System.Windows.Controls.Canvas.BottomProperty; 8318this.GetXamlType(typeof(System.Windows.Controls.Canvas)), // DeclaringType 8332Type type = typeof(System.Windows.Controls.Canvas); 8333DependencyProperty dp = System.Windows.Controls.Canvas.RightProperty; 8335this.GetXamlType(typeof(System.Windows.Controls.Canvas)), // DeclaringType
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
2437typeof(System.Windows.Controls.Canvas),
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
5610case KnownElements.Canvas: t = typeof(System.Windows.Controls.Canvas); break;
src\Framework\System\Windows\Window.cs (2)
991Canvas.TopProperty.AddOwner(typeof(Window), 1042Canvas.LeftProperty.AddOwner(typeof(Window),
System.Activities.Presentation (6)
System.Activities.Presentation\System\Activities\Presentation\MiniMap\MiniMapControl.xaml.cs (6)
116get { return Canvas.GetLeft(this.lookupWindowRectangle); } 124Canvas.SetLeft(this.lookupWindowRectangle, left); 130get { return Canvas.GetTop(this.lookupWindowRectangle); } 138Canvas.SetTop(this.lookupWindowRectangle, top); 241Canvas lookupCanvas; 246public MiniMapViewController(Canvas lookupCanvas, Rectangle lookupWindowRectangle, Grid contentGrid)