21 types derived from Control
Microsoft.AspNetCore.Components.WebView.Wpf (1)
BlazorWebView.cs (1)
26 public class BlazorWebView : Control, IAsyncDisposable
PresentationFramework (17)
System\Windows\Controls\Calendar.cs (1)
18public class Calendar : Control
System\Windows\Controls\ContentControl.cs (1)
26public class ContentControl : Control, IAddChild
System\Windows\Controls\DataGridColumnFloatingHeader.cs (1)
15internal class DataGridColumnFloatingHeader : Control
System\Windows\Controls\DataGridRow.cs (1)
26public class DataGridRow : Control
System\Windows\Controls\DatePicker.cs (1)
26public class DatePicker : Control
System\Windows\Controls\FlowDocumentReader.cs (1)
31public class FlowDocumentReader : Control, IAddChild, IJournalState
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
38public class FlowDocumentScrollViewer : Control, IAddChild, IServiceProvider, IJournalState
System\Windows\Controls\ItemsControl.cs (1)
35public class ItemsControl : Control, IAddChild, IGeneratorHost, IContainItemStorage
System\Windows\Controls\PasswordBox.cs (1)
32public sealed class PasswordBox : Control, ITextBoxViewHost
System\Windows\Controls\Primitives\CalendarItem.cs (1)
20public sealed partial class CalendarItem : Control
System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
42public abstract class DocumentViewerBase : Control, IAddChild, IServiceProvider
System\Windows\Controls\Primitives\RangeBase.cs (1)
20public abstract class RangeBase : Control
System\Windows\Controls\Primitives\ResizeGrip.cs (1)
25public class ResizeGrip : Control
System\Windows\Controls\Primitives\TextBoxBase.cs (1)
35public abstract class TextBoxBase : Control
System\Windows\Controls\Primitives\Thumb.cs (1)
22public class Thumb : Control
System\Windows\Controls\Separator.cs (1)
17public class Separator : Control
System\Windows\Controls\StickyNote.cs (1)
64public sealed partial class StickyNoteControl : Control,
System.Windows.Controls.Ribbon (3)
Microsoft\Windows\Controls\KeyTipControl.cs (1)
15public class KeyTipControl : Control
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroup.cs (1)
33public class RibbonContextualTabGroup : Control
Microsoft\Windows\Controls\Ribbon\RibbonTwoLineText.cs (1)
35public class RibbonTwoLineText : Control
6 instantiations of Control
PresentationFramework (6)
MS\Internal\Controls\TemplatedAdorner.cs (1)
44Control control = new Control();
System\Windows\Controls\GridSplitter.cs (1)
392Control previewControl = new Control();
System\Windows\Input\KeyboardNavigation.cs (2)
498Control control = new Control(); 609Control control = new Control();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
2988bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.Control(); };
System\Windows\Markup\KnownTypes.cs (1)
1187case KnownElements.Control: o = new System.Windows.Controls.Control(); break;
222 references to Control
Microsoft.CodeAnalysis.EditorFeatures.Wpf (2)
QuickInfo\ContentControlService.cs (2)
63toolTip.SetResourceReference(Control.BackgroundProperty, backgroundResourceKey); 86toolTip.SetResourceReference(Control.BackgroundProperty, backgroundResourceKey);
Microsoft.VisualStudio.LanguageServices.CSharp (1)
SemanticSearch\SemanticSearchToolWindowImpl.cs (1)
120toolbarGrid.SetResourceReference(Control.BackgroundProperty, EnvironmentColors.CommandBarGradientBrushKey);
PresentationFramework (175)
MS\Internal\Controls\TemplatedAdorner.cs (2)
28private Control _child; 44Control control = new Control();
MS\Internal\Documents\DocumentViewerHelper.cs (2)
52findToolBar.SetResourceReference(Control.StyleProperty, FindToolBarStyleKey); 363internal static void OnContextMenuOpening(FlowDocument document, Control viewer, ContextMenuEventArgs e)
MS\Internal\Documents\TextBoxLine.cs (1)
122culture = DynamicPropertyReader.GetCultureInfo((Control)_owner.Host);
MS\Internal\Documents\TextBoxView.cs (20)
43Invariant.Assert(host is Control); 692double endOfParaGlyphWidth = ((Control)_host).FontSize * CaretElement.c_endOfParaMagicMultiplier; 1218((Control)_host).Unloaded -= OnHostUnloaded; 1396((Control)_host).Unloaded += OnHostUnloaded; 1417TextProperties defaultTextProperties = new TextProperties((Control)_host, _host.IsTypographyDefaultValue); 1421return new LineProperties((Control)_host, (Control)_host, defaultTextProperties, null, this.CalculatedTextAlignment); 1557Control hostControl = (Control)_host; 1735Control hostControl = (Control)_host; 1871double endOfParaGlyphWidth = ((Control)_host).FontSize * CaretElement.c_endOfParaMagicMultiplier; 1876&& ((bool)((Control)_host).GetValue(TextBoxBase.IsInactiveSelectionHighlightEnabledProperty) 1877|| (bool)((Control)_host).GetValue(TextBoxBase.IsSelectionActiveProperty)); 2249if ((ScrollBarVisibility)((Control)_host).GetValue(ScrollViewer.VerticalScrollBarVisibilityProperty) == ScrollBarVisibility.Auto) 3045switch (((Control)_host).VerticalContentAlignment) 3081Control host = (Control)_host; 3169Control hostControl = (Control)owner.Host;
System\Windows\Controls\ComboBox.cs (1)
1043Separator.PrepareContainer(element as Control);
System\Windows\Controls\Control.cs (29)
27FocusableProperty.OverrideMetadata(typeof(Control), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox)); 29EventManager.RegisterClassHandler(typeof(Control), UIElement.PreviewMouseLeftButtonDownEvent, new MouseButtonEventHandler(HandleDoubleClick), true); 30EventManager.RegisterClassHandler(typeof(Control), UIElement.MouseLeftButtonDownEvent, new MouseButtonEventHandler(HandleDoubleClick), true); 31EventManager.RegisterClassHandler(typeof(Control), UIElement.PreviewMouseRightButtonDownEvent, new MouseButtonEventHandler(HandleDoubleClick), true); 32EventManager.RegisterClassHandler(typeof(Control), UIElement.MouseRightButtonDownEvent, new MouseButtonEventHandler(HandleDoubleClick), true); 35IsKeyboardFocusedPropertyKey.OverrideMetadata(typeof(Control), new PropertyMetadata(new PropertyChangedCallback(OnVisualStatePropertyChanged))); 66= Border.BorderBrushProperty.AddOwner(typeof(Control), 88= Border.BorderThicknessProperty.AddOwner(typeof(Control), 110Panel.BackgroundProperty.AddOwner(typeof(Control), 136typeof(Control), 160typeof(Control), 185typeof(Control), 210= TextElement.FontStretchProperty.AddOwner(typeof(Control), 234typeof(Control), 258typeof(Control), 284typeof(Control), 310typeof(Control), 331= KeyboardNavigation.TabIndexProperty.AddOwner(typeof(Control)); 349= KeyboardNavigation.IsTabStopProperty.AddOwner(typeof(Control)); 368typeof(Thickness), typeof(Control), 400typeof(Control), 438Control c = (Control) d; 513public static readonly RoutedEvent PreviewMouseDoubleClickEvent = EventManager.RegisterRoutedEvent("PreviewMouseDoubleClick", RoutingStrategy.Direct, typeof(MouseButtonEventHandler), typeof(Control)); 536public static readonly RoutedEvent MouseDoubleClickEvent = EventManager.RegisterRoutedEvent("MouseDoubleClick", RoutingStrategy.Direct, typeof(MouseButtonEventHandler), typeof(Control)); 560Control ctrl = (Control)sender; 676var control = d as Control;
System\Windows\Controls\DataGridColumnReorderingEventArgs.cs (4)
46public Control DropLocationIndicator 62public Control DragIndicator 80private Control _dropLocationIndicator; 81private Control _dragIndicator;
System\Windows\Controls\GridSplitter.cs (2)
77[StyleTypedProperty(Property = "PreviewStyle", StyleTargetType = typeof(Control))] 392Control previewControl = new Control();
System\Windows\Controls\ListBox.cs (1)
243Separator.PrepareContainer(element as Control);
System\Windows\Controls\ListBoxItem.cs (1)
192VisualStateManager.GoToState(this, Content is Control ? VisualStates.StateNormal : VisualStates.StateDisabled, useTransitions);
System\Windows\Controls\Page.cs (1)
504Control.TemplateProperty.AddOwner(
System\Windows\Controls\PasswordBox.cs (5)
59Control.PaddingProperty.OverrideMetadata(typeof(PasswordBox), 489e.Property == Control.HorizontalContentAlignmentProperty || e.Property == Control.VerticalContentAlignmentProperty) 1104object padding = passwordBox.GetValue(Control.PaddingProperty); 1111passwordBox.ScrollViewer.ClearValue(Control.PaddingProperty);
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (4)
750private Control CreateColumnHeaderDragIndicator() 781private Control CreateColumnHeaderDropIndicator() 1071private Control _columnHeaderDropLocationIndicator; 1072private Control _columnHeaderDragIndicator;
System\Windows\Controls\Primitives\DatePickerTextBox.cs (2)
173Control watermarkControl = this.Watermark as Control;
System\Windows\Controls\Primitives\ScrollBar.cs (1)
25/// <seealso cref="Control" />
System\Windows\Controls\Primitives\TextBoxBase.cs (1)
54Control.PaddingProperty.OverrideMetadata(typeof(TextBoxBase),
System\Windows\Controls\Primitives\Track.cs (2)
108private void UpdateComponent(Control oldValue, Control newValue)
System\Windows\Controls\ScrollViewer.cs (5)
920Control templatedParentControl = TemplatedParent as Control; 2591Control templatedParentControl = scrollViewer != null ? scrollViewer.TemplatedParent as Control : null; 2914Control.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)
113Control.IsTabStopProperty.OverrideMetadata(owner, new FrameworkPropertyMetadata(false));
System\Windows\Controls\TextBox.cs (2)
1027e.Property == Control.HorizontalContentAlignmentProperty || e.Property == Control.VerticalContentAlignmentProperty)
System\Windows\Controls\Validation.cs (4)
138Control control = d as Control; 141Control.OnVisualStatePropertyChanged(control, e); 595ControlTemplate defaultTemplate = new ControlTemplate(typeof(Control));
System\Windows\Controls\VisualStates.cs (1)
417public static void GoToState(Control control, bool useTransitions, params string[] stateNames)
System\Windows\ControlTemplate.cs (2)
135if (!typeof(Control).IsAssignableFrom(targetType) && 188internal static readonly Type DefaultTargetType = typeof(Control);
System\Windows\FrameworkContentElement.cs (1)
49[StyleTypedProperty(Property = "FocusVisualStyle", StyleTargetType = typeof(Control))]
System\Windows\FrameworkElement.cs (4)
98[StyleTypedProperty(Property = "FocusVisualStyle", StyleTargetType = typeof(Control))] 891if (!(fe is Control)) 2089if (dp != StyleProperty && dp != Control.TemplateProperty && dp != DefaultStyleKeyProperty) 6314_controlDType = DependencyObjectType.FromSystemTypeInternal(typeof(Control));
System\Windows\Input\KeyboardNavigation.cs (4)
498Control control = new Control(); 592Control control = (Control)_canvasChildren[i]; 609Control control = new Control();
System\Windows\Interop\ActiveXHost.cs (2)
74Control.IsTabStopProperty.OverrideMetadata(typeof(ActiveXHost), new FrameworkPropertyMetadata(true)); 742= Control.TabIndexProperty.AddOwner(typeof(ActiveXHost));
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
201case 107: t = () => typeof(Control); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (45)
2107Type type = typeof(System.Windows.Controls.Control); 2108DependencyProperty dp = System.Windows.Controls.Control.BackgroundProperty; 2110this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2124Type type = typeof(System.Windows.Controls.Control); 2125DependencyProperty dp = System.Windows.Controls.Control.BorderBrushProperty; 2127this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2141Type type = typeof(System.Windows.Controls.Control); 2142DependencyProperty dp = System.Windows.Controls.Control.BorderThicknessProperty; 2144this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2158Type type = typeof(System.Windows.Controls.Control); 2159DependencyProperty dp = System.Windows.Controls.Control.FontFamilyProperty; 2161this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2175Type type = typeof(System.Windows.Controls.Control); 2176DependencyProperty dp = System.Windows.Controls.Control.FontSizeProperty; 2178this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2192Type type = typeof(System.Windows.Controls.Control); 2193DependencyProperty dp = System.Windows.Controls.Control.FontStretchProperty; 2195this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2209Type type = typeof(System.Windows.Controls.Control); 2210DependencyProperty dp = System.Windows.Controls.Control.FontStyleProperty; 2212this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2226Type type = typeof(System.Windows.Controls.Control); 2227DependencyProperty dp = System.Windows.Controls.Control.FontWeightProperty; 2229this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2243Type type = typeof(System.Windows.Controls.Control); 2244DependencyProperty dp = System.Windows.Controls.Control.ForegroundProperty; 2246this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2260Type type = typeof(System.Windows.Controls.Control); 2261DependencyProperty dp = System.Windows.Controls.Control.HorizontalContentAlignmentProperty; 2263this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2277Type type = typeof(System.Windows.Controls.Control); 2278DependencyProperty dp = System.Windows.Controls.Control.IsTabStopProperty; 2280this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2294Type type = typeof(System.Windows.Controls.Control); 2295DependencyProperty dp = System.Windows.Controls.Control.PaddingProperty; 2297this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2311Type type = typeof(System.Windows.Controls.Control); 2312DependencyProperty dp = System.Windows.Controls.Control.TabIndexProperty; 2314this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2328Type type = typeof(System.Windows.Controls.Control); 2329DependencyProperty dp = System.Windows.Controls.Control.TemplateProperty; 2331this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2344Type type = typeof(System.Windows.Controls.Control); 2345DependencyProperty dp = System.Windows.Controls.Control.VerticalContentAlignmentProperty; 2347this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
2986typeof(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)
444if (StyleHelper.IsSetOnContainer(Control.TemplateProperty, ref containerDependents, true) || 447throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, Control.TemplateProperty.Name)); 3129dp != Control.TemplateProperty &&
System\Windows\Window.cs (3)
2183internal virtual void SetResizeGripControl(Control ctrl) 2188internal virtual void ClearResizeGripControl(Control oldCtrl) 7340private Control _resizeGripControl;
PresentationFramework.Aero (3)
Microsoft\Windows\Themes\BulletChrome.cs (1)
50Control.BackgroundProperty.AddOwner(
Microsoft\Windows\Themes\ButtonChrome.cs (1)
45Control.BackgroundProperty.AddOwner(
Microsoft\Windows\Themes\ListBoxChrome.cs (1)
45Control.BackgroundProperty.AddOwner(
PresentationFramework.Aero2 (3)
Microsoft\Windows\Themes\BulletChrome.cs (1)
50Control.BackgroundProperty.AddOwner(
Microsoft\Windows\Themes\ButtonChrome.cs (1)
45Control.BackgroundProperty.AddOwner(
Microsoft\Windows\Themes\ListBoxChrome.cs (1)
45Control.BackgroundProperty.AddOwner(
PresentationFramework.Luna (2)
Microsoft\Windows\Themes\ScrollChrome.cs (1)
135public static readonly DependencyProperty PaddingProperty = Control.PaddingProperty.AddOwner(typeof(ScrollChrome));
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\BulletChrome.cs (1)
39Control.BackgroundProperty.AddOwner(
PresentationFramework.Royale (2)
Microsoft\Windows\Themes\ScrollChrome.cs (1)
117public static readonly DependencyProperty PaddingProperty = Control.PaddingProperty.AddOwner(typeof(ScrollChrome));
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\BulletChrome.cs (1)
39Control.BackgroundProperty.AddOwner(
PresentationUI (2)
MS\Internal\Documents\Application\StatusInfoItem.cs (2)
42public StatusInfoItem(StatusInfoItemType type, Button infoBarButton, Control toolBarControl) 201private Control _toolBarControl;
System.Windows.Controls.Ribbon (17)
Microsoft\Windows\Controls\KeyTipAdorner.cs (3)
127_keyTipControl.ClearValue(Control.BackgroundProperty); 128_keyTipControl.ClearValue(Control.BorderBrushProperty); 129_keyTipControl.ClearValue(Control.ForegroundProperty);
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (4)
2090Control extraControl, 2092Func<T, int, bool> trySetFocusAtItemIndex) where T : Control 2181Control extraControl, 2183Func<T, int> getFocusedItemIndex) where T : Control
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (10)
1655new PropertyAndTransferMode () { Property = Control.BackgroundProperty, Mode = TransferMode.AlwaysTransfer }, 1656new PropertyAndTransferMode () { Property = Control.BorderBrushProperty, Mode = TransferMode.AlwaysTransfer }, 1657new PropertyAndTransferMode () { Property = Control.BorderThicknessProperty, Mode = TransferMode.AlwaysTransfer }, 1658new PropertyAndTransferMode () { Property = Control.ForegroundProperty, Mode = TransferMode.AlwaysTransfer }, 1659new PropertyAndTransferMode () { Property = Control.FontFamilyProperty, Mode = TransferMode.AlwaysTransfer }, 1660new PropertyAndTransferMode () { Property = Control.FontSizeProperty, Mode = TransferMode.AlwaysTransfer }, 1661new PropertyAndTransferMode () { Property = Control.FontStretchProperty, Mode = TransferMode.AlwaysTransfer}, 1662new PropertyAndTransferMode () { Property = Control.FontStyleProperty, Mode = TransferMode.AlwaysTransfer}, 1663new PropertyAndTransferMode () { Property = Control.FontWeightProperty, Mode = TransferMode.AlwaysTransfer}, 2048if (original is Control)
WindowsFormsIntegration (15)
System\Windows\Integration\ElementHostPropertyMap.cs (4)
136adapter.SetValue(SWC.Control.FontSizeProperty, Convert.SystemDrawingFontToSystemWindowsFontSize(wfFont)); 137adapter.SetValue(SWC.Control.FontFamilyProperty, Convert.ToSystemWindowsFontFamily(wfFont.FontFamily)); 138adapter.SetValue(SWC.Control.FontWeightProperty, Convert.ToSystemWindowsFontWeight(wfFont)); 139adapter.SetValue(SWC.Control.FontStyleProperty, Convert.ToSystemWindowsFontStyle(wfFont));
System\Windows\Integration\WindowsFormsHost.cs (10)
48SWC.Control.IsTabStopProperty.OverrideMetadata(typeof(WindowsFormsHost), new FrameworkPropertyMetadata(true)); 395backgroundBrush = (Brush)dependencyObject.GetValue(SWC.Control.BackgroundProperty); 584SWC.Control.PaddingProperty.AddOwner(typeof(WindowsFormsHost)); 600SWC.Control.TabIndexProperty.AddOwner(typeof(WindowsFormsHost)); 616SWC.Control.FontFamilyProperty.AddOwner(typeof(WindowsFormsHost)); 631SWC.Control.FontSizeProperty.AddOwner(typeof(WindowsFormsHost)); 646SWC.Control.FontStyleProperty.AddOwner(typeof(WindowsFormsHost)); 661SWC.Control.FontWeightProperty.AddOwner(typeof(WindowsFormsHost)); 676SWC.Control.ForegroundProperty.AddOwner(typeof(WindowsFormsHost)); 692SWC.Control.BackgroundProperty.AddOwner(typeof(WindowsFormsHost));
System\Windows\Integration\WindowsFormsHostPropertyMap.cs (1)
67brush = (Brush)parent.GetValue(SWC.Control.BackgroundProperty);