20 types derived from Control
PresentationFramework (17)
System\Windows\Controls\Calendar.cs (1)
22public class Calendar : Control
System\Windows\Controls\ContentControl.cs (1)
35public class ContentControl : Control, IAddChild
System\Windows\Controls\DataGridColumnFloatingHeader.cs (1)
19internal class DataGridColumnFloatingHeader : Control
System\Windows\Controls\DataGridRow.cs (1)
30public class DataGridRow : Control
System\Windows\Controls\DatePicker.cs (1)
30public class DatePicker : Control
System\Windows\Controls\FlowDocumentReader.cs (1)
36public class FlowDocumentReader : Control, IAddChild, IJournalState
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
41public class FlowDocumentScrollViewer : Control, IAddChild, IServiceProvider, IJournalState
System\Windows\Controls\ItemsControl.cs (1)
44public class ItemsControl : Control, IAddChild, IGeneratorHost, IContainItemStorage
System\Windows\Controls\PasswordBox.cs (1)
40public sealed class PasswordBox : Control, ITextBoxViewHost
System\Windows\Controls\Primitives\CalendarItem.cs (1)
25public sealed partial class CalendarItem : Control
System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
47public abstract class DocumentViewerBase : Control, IAddChild, IServiceProvider
System\Windows\Controls\Primitives\RangeBase.cs (1)
32public abstract class RangeBase : Control
System\Windows\Controls\Primitives\ResizeGrip.cs (1)
32public class ResizeGrip : Control
System\Windows\Controls\Primitives\TextBoxBase.cs (1)
44public abstract class TextBoxBase : Control
System\Windows\Controls\Primitives\Thumb.cs (1)
36public class Thumb : Control
System\Windows\Controls\Separator.cs (1)
17public class Separator : Control
System\Windows\Controls\StickyNote.cs (1)
80public sealed partial class StickyNoteControl : Control,
System.Windows.Controls.Ribbon (3)
Microsoft\Windows\Controls\KeyTipControl.cs (1)
19public class KeyTipControl : Control
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroup.cs (1)
35public class RibbonContextualTabGroup : Control
Microsoft\Windows\Controls\Ribbon\RibbonTwoLineText.cs (1)
38public class RibbonTwoLineText : Control
6 instantiations of Control
PresentationFramework (6)
MS\Internal\Controls\TemplatedAdorner.cs (1)
51Control control = new Control();
System\Windows\Controls\GridSplitter.cs (1)
398Control previewControl = new Control();
System\Windows\Input\KeyboardNavigation.cs (2)
508Control control = new Control(); 619Control control = new Control();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
2990bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.Control(); };
System\Windows\Markup\KnownTypes.cs (1)
1187case KnownElements.Control: o = new System.Windows.Controls.Control(); break;
219 references to Control
PresentationFramework (175)
MS\Internal\Controls\TemplatedAdorner.cs (2)
35private Control _child; 51Control control = new Control();
MS\Internal\Documents\DocumentViewerHelper.cs (2)
54findToolBar.SetResourceReference(Control.StyleProperty, FindToolBarStyleKey); 365internal static void OnContextMenuOpening(FlowDocument document, Control viewer, ContextMenuEventArgs e)
MS\Internal\Documents\TextBoxLine.cs (1)
129culture = DynamicPropertyReader.GetCultureInfo((Control)_owner.Host);
MS\Internal\Documents\TextBoxView.cs (20)
45Invariant.Assert(host is Control); 694double endOfParaGlyphWidth = ((Control)_host).FontSize * CaretElement.c_endOfParaMagicMultiplier; 1220((Control)_host).Unloaded -= OnHostUnloaded; 1398((Control)_host).Unloaded += OnHostUnloaded; 1419TextProperties defaultTextProperties = new TextProperties((Control)_host, _host.IsTypographyDefaultValue); 1423return new LineProperties((Control)_host, (Control)_host, defaultTextProperties, null, this.CalculatedTextAlignment); 1559Control hostControl = (Control)_host; 1737Control hostControl = (Control)_host; 1873double endOfParaGlyphWidth = ((Control)_host).FontSize * CaretElement.c_endOfParaMagicMultiplier; 1878&& ((bool)((Control)_host).GetValue(TextBoxBase.IsInactiveSelectionHighlightEnabledProperty) 1879|| (bool)((Control)_host).GetValue(TextBoxBase.IsSelectionActiveProperty)); 2251if ((ScrollBarVisibility)((Control)_host).GetValue(ScrollViewer.VerticalScrollBarVisibilityProperty) == ScrollBarVisibility.Auto) 3047switch (((Control)_host).VerticalContentAlignment) 3083Control host = (Control)_host; 3171Control hostControl = (Control)owner.Host;
System\Windows\Controls\ComboBox.cs (1)
1053Separator.PrepareContainer(element as Control);
System\Windows\Controls\Control.cs (29)
36FocusableProperty.OverrideMetadata(typeof(Control), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox)); 38EventManager.RegisterClassHandler(typeof(Control), UIElement.PreviewMouseLeftButtonDownEvent, new MouseButtonEventHandler(HandleDoubleClick), true); 39EventManager.RegisterClassHandler(typeof(Control), UIElement.MouseLeftButtonDownEvent, new MouseButtonEventHandler(HandleDoubleClick), true); 40EventManager.RegisterClassHandler(typeof(Control), UIElement.PreviewMouseRightButtonDownEvent, new MouseButtonEventHandler(HandleDoubleClick), true); 41EventManager.RegisterClassHandler(typeof(Control), UIElement.MouseRightButtonDownEvent, new MouseButtonEventHandler(HandleDoubleClick), true); 44IsKeyboardFocusedPropertyKey.OverrideMetadata(typeof(Control), new PropertyMetadata(new PropertyChangedCallback(OnVisualStatePropertyChanged))); 75= Border.BorderBrushProperty.AddOwner(typeof(Control), 97= Border.BorderThicknessProperty.AddOwner(typeof(Control), 119Panel.BackgroundProperty.AddOwner(typeof(Control), 145typeof(Control), 169typeof(Control), 194typeof(Control), 219= TextElement.FontStretchProperty.AddOwner(typeof(Control), 243typeof(Control), 267typeof(Control), 293typeof(Control), 319typeof(Control), 340= KeyboardNavigation.TabIndexProperty.AddOwner(typeof(Control)); 358= KeyboardNavigation.IsTabStopProperty.AddOwner(typeof(Control)); 377typeof(Thickness), typeof(Control), 409typeof(Control), 447Control c = (Control) d; 522public static readonly RoutedEvent PreviewMouseDoubleClickEvent = EventManager.RegisterRoutedEvent("PreviewMouseDoubleClick", RoutingStrategy.Direct, typeof(MouseButtonEventHandler), typeof(Control)); 545public static readonly RoutedEvent MouseDoubleClickEvent = EventManager.RegisterRoutedEvent("MouseDoubleClick", RoutingStrategy.Direct, typeof(MouseButtonEventHandler), typeof(Control)); 569Control ctrl = (Control)sender; 685var control = d as Control;
System\Windows\Controls\DataGridColumnReorderingEventArgs.cs (4)
50public Control DropLocationIndicator 66public Control DragIndicator 84private Control _dropLocationIndicator; 85private Control _dragIndicator;
System\Windows\Controls\GridSplitter.cs (2)
83[StyleTypedProperty(Property = "PreviewStyle", StyleTargetType = typeof(Control))] 398Control previewControl = new Control();
System\Windows\Controls\ListBox.cs (1)
249Separator.PrepareContainer(element as Control);
System\Windows\Controls\ListBoxItem.cs (1)
199VisualStateManager.GoToState(this, Content is Control ? VisualStates.StateNormal : VisualStates.StateDisabled, useTransitions);
System\Windows\Controls\Page.cs (1)
511Control.TemplateProperty.AddOwner(
System\Windows\Controls\PasswordBox.cs (5)
67Control.PaddingProperty.OverrideMetadata(typeof(PasswordBox), 497e.Property == Control.HorizontalContentAlignmentProperty || e.Property == Control.VerticalContentAlignmentProperty) 1112object padding = passwordBox.GetValue(Control.PaddingProperty); 1119passwordBox.ScrollViewer.ClearValue(Control.PaddingProperty);
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (4)
755private Control CreateColumnHeaderDragIndicator() 786private Control CreateColumnHeaderDropIndicator() 1076private Control _columnHeaderDropLocationIndicator; 1077private Control _columnHeaderDragIndicator;
System\Windows\Controls\Primitives\DatePickerTextBox.cs (2)
178Control watermarkControl = this.Watermark as Control;
System\Windows\Controls\Primitives\ScrollBar.cs (1)
41/// <seealso cref="Control" />
System\Windows\Controls\Primitives\TextBoxBase.cs (1)
63Control.PaddingProperty.OverrideMetadata(typeof(TextBoxBase),
System\Windows\Controls\Primitives\Track.cs (2)
119private void UpdateComponent(Control oldValue, Control newValue)
System\Windows\Controls\ScrollViewer.cs (5)
928Control templatedParentControl = TemplatedParent as Control; 2599Control templatedParentControl = scrollViewer != null ? scrollViewer.TemplatedParent as Control : null; 2922Control.TemplateProperty.OverrideMetadata(typeof(ScrollViewer), new FrameworkPropertyMetadata(template));
System\Windows\Controls\Separator.cs (1)
29internal static void PrepareContainer(Control container)
System\Windows\Controls\StickyNote.cs (1)
129Control.IsTabStopProperty.OverrideMetadata(owner, new FrameworkPropertyMetadata(false));
System\Windows\Controls\TextBox.cs (2)
1034e.Property == Control.HorizontalContentAlignmentProperty || e.Property == Control.VerticalContentAlignmentProperty)
System\Windows\Controls\Validation.cs (4)
146Control control = d as Control; 149Control.OnVisualStatePropertyChanged(control, e); 603ControlTemplate defaultTemplate = new ControlTemplate(typeof(Control));
System\Windows\Controls\VisualStates.cs (1)
425public static void GoToState(Control control, bool useTransitions, params string[] stateNames)
System\Windows\ControlTemplate.cs (2)
138if (!typeof(Control).IsAssignableFrom(targetType) && 191internal static readonly Type DefaultTargetType = typeof(Control);
System\Windows\FrameworkContentElement.cs (1)
61[StyleTypedProperty(Property = "FocusVisualStyle", StyleTargetType = typeof(Control))]
System\Windows\FrameworkElement.cs (4)
109[StyleTypedProperty(Property = "FocusVisualStyle", StyleTargetType = typeof(Control))] 895if (!(fe is Control)) 2093if (dp != StyleProperty && dp != Control.TemplateProperty && dp != DefaultStyleKeyProperty) 6318_controlDType = DependencyObjectType.FromSystemTypeInternal(typeof(Control));
System\Windows\Input\KeyboardNavigation.cs (4)
508Control control = new Control(); 602Control control = (Control)_canvasChildren[i]; 619Control control = new Control();
System\Windows\Interop\ActiveXHost.cs (2)
84Control.IsTabStopProperty.OverrideMetadata(typeof(ActiveXHost), new FrameworkPropertyMetadata(true)); 752= Control.TabIndexProperty.AddOwner(typeof(ActiveXHost));
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
203case 107: t = () => typeof(Control); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (45)
2109Type type = typeof(System.Windows.Controls.Control); 2110DependencyProperty dp = System.Windows.Controls.Control.BackgroundProperty; 2112this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2126Type type = typeof(System.Windows.Controls.Control); 2127DependencyProperty dp = System.Windows.Controls.Control.BorderBrushProperty; 2129this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2143Type type = typeof(System.Windows.Controls.Control); 2144DependencyProperty dp = System.Windows.Controls.Control.BorderThicknessProperty; 2146this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2160Type type = typeof(System.Windows.Controls.Control); 2161DependencyProperty dp = System.Windows.Controls.Control.FontFamilyProperty; 2163this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2177Type type = typeof(System.Windows.Controls.Control); 2178DependencyProperty dp = System.Windows.Controls.Control.FontSizeProperty; 2180this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2194Type type = typeof(System.Windows.Controls.Control); 2195DependencyProperty dp = System.Windows.Controls.Control.FontStretchProperty; 2197this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2211Type type = typeof(System.Windows.Controls.Control); 2212DependencyProperty dp = System.Windows.Controls.Control.FontStyleProperty; 2214this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2228Type type = typeof(System.Windows.Controls.Control); 2229DependencyProperty dp = System.Windows.Controls.Control.FontWeightProperty; 2231this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2245Type type = typeof(System.Windows.Controls.Control); 2246DependencyProperty dp = System.Windows.Controls.Control.ForegroundProperty; 2248this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2262Type type = typeof(System.Windows.Controls.Control); 2263DependencyProperty dp = System.Windows.Controls.Control.HorizontalContentAlignmentProperty; 2265this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2279Type type = typeof(System.Windows.Controls.Control); 2280DependencyProperty dp = System.Windows.Controls.Control.IsTabStopProperty; 2282this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2296Type type = typeof(System.Windows.Controls.Control); 2297DependencyProperty dp = System.Windows.Controls.Control.PaddingProperty; 2299this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2313Type type = typeof(System.Windows.Controls.Control); 2314DependencyProperty dp = System.Windows.Controls.Control.TabIndexProperty; 2316this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2330Type type = typeof(System.Windows.Controls.Control); 2331DependencyProperty dp = System.Windows.Controls.Control.TemplateProperty; 2333this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2346Type type = typeof(System.Windows.Controls.Control); 2347DependencyProperty dp = System.Windows.Controls.Control.VerticalContentAlignmentProperty; 2349this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
2988typeof(System.Windows.Controls.Control),
System\Windows\Markup\KnownTypes.cs (16)
1728return System.Windows.Controls.Control.BackgroundProperty; 1730return System.Windows.Controls.Control.BorderBrushProperty; 1732return System.Windows.Controls.Control.BorderThicknessProperty; 1734return System.Windows.Controls.Control.FontFamilyProperty; 1736return System.Windows.Controls.Control.FontSizeProperty; 1738return System.Windows.Controls.Control.FontStretchProperty; 1740return System.Windows.Controls.Control.FontStyleProperty; 1742return System.Windows.Controls.Control.FontWeightProperty; 1744return System.Windows.Controls.Control.ForegroundProperty; 1746return System.Windows.Controls.Control.HorizontalContentAlignmentProperty; 1748return System.Windows.Controls.Control.IsTabStopProperty; 1750return System.Windows.Controls.Control.PaddingProperty; 1752return System.Windows.Controls.Control.TabIndexProperty; 1754return System.Windows.Controls.Control.TemplateProperty; 1756return System.Windows.Controls.Control.VerticalContentAlignmentProperty; 5661case KnownElements.Control: t = typeof(System.Windows.Controls.Control); break;
System\Windows\StyleHelper.cs (3)
450if (StyleHelper.IsSetOnContainer(Control.TemplateProperty, ref containerDependents, true) || 453throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, Control.TemplateProperty.Name)); 3135dp != Control.TemplateProperty &&
System\Windows\Window.cs (3)
2108internal virtual void SetResizeGripControl(Control ctrl) 2113internal virtual void ClearResizeGripControl(Control oldCtrl) 7228private Control _resizeGripControl;
PresentationFramework.Aero (3)
Microsoft\Windows\Themes\BulletChrome.cs (1)
56Control.BackgroundProperty.AddOwner(
Microsoft\Windows\Themes\ButtonChrome.cs (1)
54Control.BackgroundProperty.AddOwner(
Microsoft\Windows\Themes\ListBoxChrome.cs (1)
51Control.BackgroundProperty.AddOwner(
PresentationFramework.Aero2 (3)
Microsoft\Windows\Themes\BulletChrome.cs (1)
56Control.BackgroundProperty.AddOwner(
Microsoft\Windows\Themes\ButtonChrome.cs (1)
54Control.BackgroundProperty.AddOwner(
Microsoft\Windows\Themes\ListBoxChrome.cs (1)
51Control.BackgroundProperty.AddOwner(
PresentationFramework.Luna (2)
Microsoft\Windows\Themes\ScrollChrome.cs (1)
139public static readonly DependencyProperty PaddingProperty = Control.PaddingProperty.AddOwner(typeof(ScrollChrome));
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\BulletChrome.cs (1)
43Control.BackgroundProperty.AddOwner(
PresentationFramework.Royale (2)
Microsoft\Windows\Themes\ScrollChrome.cs (1)
121public static readonly DependencyProperty PaddingProperty = Control.PaddingProperty.AddOwner(typeof(ScrollChrome));
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\BulletChrome.cs (1)
43Control.BackgroundProperty.AddOwner(
PresentationUI (2)
MS\Internal\Documents\Application\StatusInfoItem.cs (2)
45public StatusInfoItem(StatusInfoItemType type, Button infoBarButton, Control toolBarControl) 204private Control _toolBarControl;
System.Windows.Controls.Ribbon (17)
Microsoft\Windows\Controls\KeyTipAdorner.cs (3)
130_keyTipControl.ClearValue(Control.BackgroundProperty); 131_keyTipControl.ClearValue(Control.BorderBrushProperty); 132_keyTipControl.ClearValue(Control.ForegroundProperty);
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (4)
2093Control extraControl, 2095Func<T, int, bool> trySetFocusAtItemIndex) where T : Control 2184Control extraControl, 2186Func<T, int> getFocusedItemIndex) where T : Control
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (10)
1660new PropertyAndTransferMode () { Property = Control.BackgroundProperty, Mode = TransferMode.AlwaysTransfer }, 1661new PropertyAndTransferMode () { Property = Control.BorderBrushProperty, Mode = TransferMode.AlwaysTransfer }, 1662new PropertyAndTransferMode () { Property = Control.BorderThicknessProperty, Mode = TransferMode.AlwaysTransfer }, 1663new PropertyAndTransferMode () { Property = Control.ForegroundProperty, Mode = TransferMode.AlwaysTransfer }, 1664new PropertyAndTransferMode () { Property = Control.FontFamilyProperty, Mode = TransferMode.AlwaysTransfer }, 1665new PropertyAndTransferMode () { Property = Control.FontSizeProperty, Mode = TransferMode.AlwaysTransfer }, 1666new PropertyAndTransferMode () { Property = Control.FontStretchProperty, Mode = TransferMode.AlwaysTransfer}, 1667new PropertyAndTransferMode () { Property = Control.FontStyleProperty, Mode = TransferMode.AlwaysTransfer}, 1668new PropertyAndTransferMode () { Property = Control.FontWeightProperty, Mode = TransferMode.AlwaysTransfer}, 2053if (original is Control)
WindowsFormsIntegration (15)
System\Windows\Integration\ElementHostPropertyMap.cs (4)
138adapter.SetValue(SWC.Control.FontSizeProperty, Convert.SystemDrawingFontToSystemWindowsFontSize(wfFont)); 139adapter.SetValue(SWC.Control.FontFamilyProperty, Convert.ToSystemWindowsFontFamily(wfFont.FontFamily)); 140adapter.SetValue(SWC.Control.FontWeightProperty, Convert.ToSystemWindowsFontWeight(wfFont)); 141adapter.SetValue(SWC.Control.FontStyleProperty, Convert.ToSystemWindowsFontStyle(wfFont));
System\Windows\Integration\WindowsFormsHost.cs (10)
50SWC.Control.IsTabStopProperty.OverrideMetadata(typeof(WindowsFormsHost), new FrameworkPropertyMetadata(true)); 397backgroundBrush = (Brush)dependencyObject.GetValue(SWC.Control.BackgroundProperty); 586SWC.Control.PaddingProperty.AddOwner(typeof(WindowsFormsHost)); 602SWC.Control.TabIndexProperty.AddOwner(typeof(WindowsFormsHost)); 618SWC.Control.FontFamilyProperty.AddOwner(typeof(WindowsFormsHost)); 633SWC.Control.FontSizeProperty.AddOwner(typeof(WindowsFormsHost)); 648SWC.Control.FontStyleProperty.AddOwner(typeof(WindowsFormsHost)); 663SWC.Control.FontWeightProperty.AddOwner(typeof(WindowsFormsHost)); 678SWC.Control.ForegroundProperty.AddOwner(typeof(WindowsFormsHost)); 694SWC.Control.BackgroundProperty.AddOwner(typeof(WindowsFormsHost));
System\Windows\Integration\WindowsFormsHostPropertyMap.cs (1)
68brush = (Brush)parent.GetValue(SWC.Control.BackgroundProperty);