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)
17public class Calendar : Control
System\Windows\Controls\ContentControl.cs (1)
25public class ContentControl : Control, IAddChild
System\Windows\Controls\DataGridColumnFloatingHeader.cs (1)
14internal class DataGridColumnFloatingHeader : Control
System\Windows\Controls\DataGridRow.cs (1)
25public class DataGridRow : Control
System\Windows\Controls\DatePicker.cs (1)
25public class DatePicker : Control
System\Windows\Controls\FlowDocumentReader.cs (1)
30public class FlowDocumentReader : Control, IAddChild, IJournalState
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
37public class FlowDocumentScrollViewer : Control, IAddChild, IServiceProvider, IJournalState
System\Windows\Controls\ItemsControl.cs (1)
34public class ItemsControl : Control, IAddChild, IGeneratorHost, IContainItemStorage
System\Windows\Controls\PasswordBox.cs (1)
25public sealed class PasswordBox : Control, ITextBoxViewHost
System\Windows\Controls\Primitives\CalendarItem.cs (1)
19public sealed partial class CalendarItem : Control
System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
30public abstract class DocumentViewerBase : Control, IAddChild, IServiceProvider
System\Windows\Controls\Primitives\RangeBase.cs (1)
19public abstract class RangeBase : Control
System\Windows\Controls\Primitives\ResizeGrip.cs (1)
24public class ResizeGrip : Control
System\Windows\Controls\Primitives\TextBoxBase.cs (1)
34public abstract class TextBoxBase : Control
System\Windows\Controls\Primitives\Thumb.cs (1)
21public class Thumb : Control
System\Windows\Controls\Separator.cs (1)
16public class Separator : Control
System\Windows\Controls\StickyNote.cs (1)
52public sealed partial class StickyNoteControl : Control,
System.Windows.Controls.Ribbon (3)
Microsoft\Windows\Controls\KeyTipControl.cs (1)
14public class KeyTipControl : Control
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroup.cs (1)
32public class RibbonContextualTabGroup : Control
Microsoft\Windows\Controls\Ribbon\RibbonTwoLineText.cs (1)
34public class RibbonTwoLineText : Control
6 instantiations of Control
PresentationFramework (6)
MS\Internal\Controls\TemplatedAdorner.cs (1)
43Control control = new Control
System\Windows\Controls\GridSplitter.cs (1)
391Control previewControl = new Control
System\Windows\Input\KeyboardNavigation.cs (2)
497Control control = new Control 610Control control = new Control
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
3152DefaultConstructor = delegate () { return new System.Windows.Controls.Control(); },
System\Windows\Markup\KnownTypes.cs (1)
1180case KnownElements.Control: o = new System.Windows.Controls.Control(); break;
224 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 (1)
SemanticSearch\ISemanticSearchCopilotUIProvider.cs (1)
16Control Control { get; }
Microsoft.VisualStudio.LanguageServices.CSharp (2)
SemanticSearch\SemanticSearchToolWindowImpl.cs (2)
143toolbarGrid.SetResourceReference(Control.BackgroundProperty, EnvironmentColors.CommandBarGradientBrushKey); 618public required FrameworkElement Control { get; init; }
PresentationFramework (175)
MS\Internal\Controls\TemplatedAdorner.cs (2)
27private Control _child; 43Control control = new Control
MS\Internal\Documents\DocumentViewerHelper.cs (2)
51findToolBar.SetResourceReference(Control.StyleProperty, FindToolBarStyleKey); 362internal static void OnContextMenuOpening(FlowDocument document, Control viewer, ContextMenuEventArgs e)
MS\Internal\Documents\TextBoxLine.cs (1)
121culture = DynamicPropertyReader.GetCultureInfo((Control)_owner.Host);
MS\Internal\Documents\TextBoxView.cs (20)
42Invariant.Assert(host is Control); 649double endOfParaGlyphWidth = ((Control)_host).FontSize * CaretElement.c_endOfParaMagicMultiplier; 1177((Control)_host).Unloaded -= OnHostUnloaded; 1355((Control)_host).Unloaded += OnHostUnloaded; 1376TextProperties defaultTextProperties = new TextProperties((Control)_host, _host.IsTypographyDefaultValue); 1380return new LineProperties((Control)_host, (Control)_host, defaultTextProperties, null, this.CalculatedTextAlignment); 1516Control hostControl = (Control)_host; 1694Control hostControl = (Control)_host; 1830double endOfParaGlyphWidth = ((Control)_host).FontSize * CaretElement.c_endOfParaMagicMultiplier; 1835&& ((bool)((Control)_host).GetValue(TextBoxBase.IsInactiveSelectionHighlightEnabledProperty) 1836|| (bool)((Control)_host).GetValue(TextBoxBase.IsSelectionActiveProperty)); 2208if ((ScrollBarVisibility)((Control)_host).GetValue(ScrollViewer.VerticalScrollBarVisibilityProperty) == ScrollBarVisibility.Auto) 3004switch (((Control)_host).VerticalContentAlignment) 3040Control host = (Control)_host; 3128Control hostControl = (Control)owner.Host;
System\Windows\Controls\ComboBox.cs (1)
1038Separator.PrepareContainer(element as Control);
System\Windows\Controls\Control.cs (29)
26FocusableProperty.OverrideMetadata(typeof(Control), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox)); 28EventManager.RegisterClassHandler(typeof(Control), UIElement.PreviewMouseLeftButtonDownEvent, new MouseButtonEventHandler(HandleDoubleClick), true); 29EventManager.RegisterClassHandler(typeof(Control), UIElement.MouseLeftButtonDownEvent, new MouseButtonEventHandler(HandleDoubleClick), true); 30EventManager.RegisterClassHandler(typeof(Control), UIElement.PreviewMouseRightButtonDownEvent, new MouseButtonEventHandler(HandleDoubleClick), true); 31EventManager.RegisterClassHandler(typeof(Control), UIElement.MouseRightButtonDownEvent, new MouseButtonEventHandler(HandleDoubleClick), true); 34IsKeyboardFocusedPropertyKey.OverrideMetadata(typeof(Control), new PropertyMetadata(new PropertyChangedCallback(OnVisualStatePropertyChanged))); 65= Border.BorderBrushProperty.AddOwner(typeof(Control), 87= Border.BorderThicknessProperty.AddOwner(typeof(Control), 109Panel.BackgroundProperty.AddOwner(typeof(Control), 135typeof(Control), 159typeof(Control), 184typeof(Control), 209= TextElement.FontStretchProperty.AddOwner(typeof(Control), 233typeof(Control), 257typeof(Control), 283typeof(Control), 309typeof(Control), 330= KeyboardNavigation.TabIndexProperty.AddOwner(typeof(Control)); 348= KeyboardNavigation.IsTabStopProperty.AddOwner(typeof(Control)); 367typeof(Thickness), typeof(Control), 399typeof(Control), 437Control c = (Control) d; 512public static readonly RoutedEvent PreviewMouseDoubleClickEvent = EventManager.RegisterRoutedEvent("PreviewMouseDoubleClick", RoutingStrategy.Direct, typeof(MouseButtonEventHandler), typeof(Control)); 535public static readonly RoutedEvent MouseDoubleClickEvent = EventManager.RegisterRoutedEvent("MouseDoubleClick", RoutingStrategy.Direct, typeof(MouseButtonEventHandler), typeof(Control)); 559Control ctrl = (Control)sender; 675var control = d as Control;
System\Windows\Controls\DataGridColumnReorderingEventArgs.cs (4)
45public Control DropLocationIndicator 61public Control DragIndicator 79private Control _dropLocationIndicator; 80private Control _dragIndicator;
System\Windows\Controls\GridSplitter.cs (2)
76[StyleTypedProperty(Property = "PreviewStyle", StyleTargetType = typeof(Control))] 391Control previewControl = new Control
System\Windows\Controls\ListBox.cs (1)
242Separator.PrepareContainer(element as Control);
System\Windows\Controls\ListBoxItem.cs (1)
188VisualStateManager.GoToState(this, Content is Control ? VisualStates.StateNormal : VisualStates.StateDisabled, useTransitions);
System\Windows\Controls\Page.cs (1)
490Control.TemplateProperty.AddOwner(
System\Windows\Controls\PasswordBox.cs (5)
52Control.PaddingProperty.OverrideMetadata(typeof(PasswordBox), 481e.Property == Control.HorizontalContentAlignmentProperty || e.Property == Control.VerticalContentAlignmentProperty) 1088object padding = passwordBox.GetValue(Control.PaddingProperty); 1095passwordBox.ScrollViewer.ClearValue(Control.PaddingProperty);
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (4)
743private Control CreateColumnHeaderDragIndicator() 776private Control CreateColumnHeaderDropIndicator() 1065private Control _columnHeaderDropLocationIndicator; 1066private Control _columnHeaderDragIndicator;
System\Windows\Controls\Primitives\DatePickerTextBox.cs (2)
174Control watermarkControl = this.Watermark as Control;
System\Windows\Controls\Primitives\ScrollBar.cs (1)
24/// <seealso cref="Control" />
System\Windows\Controls\Primitives\TextBoxBase.cs (1)
53Control.PaddingProperty.OverrideMetadata(typeof(TextBoxBase),
System\Windows\Controls\Primitives\Track.cs (2)
107private void UpdateComponent(Control oldValue, Control newValue)
System\Windows\Controls\ScrollViewer.cs (5)
919Control templatedParentControl = TemplatedParent as Control; 2588Control templatedParentControl = scrollViewer != null ? scrollViewer.TemplatedParent as Control : null; 2917Control.TemplateProperty.OverrideMetadata(typeof(ScrollViewer), new FrameworkPropertyMetadata(template));
System\Windows\Controls\Separator.cs (1)
28internal static void PrepareContainer(Control container)
System\Windows\Controls\StickyNote.cs (1)
101Control.IsTabStopProperty.OverrideMetadata(owner, new FrameworkPropertyMetadata(false));
System\Windows\Controls\TextBox.cs (2)
1028e.Property == Control.HorizontalContentAlignmentProperty || e.Property == Control.VerticalContentAlignmentProperty)
System\Windows\Controls\Validation.cs (4)
137Control control = d as Control; 140Control.OnVisualStatePropertyChanged(control, e); 588ControlTemplate defaultTemplate = new ControlTemplate(typeof(Control));
System\Windows\Controls\VisualStates.cs (1)
413public static void GoToState(Control control, bool useTransitions, params ReadOnlySpan<string> stateNames)
System\Windows\ControlTemplate.cs (2)
134if (!typeof(Control).IsAssignableFrom(targetType) && 187internal static readonly Type DefaultTargetType = typeof(Control);
System\Windows\FrameworkContentElement.cs (1)
39[StyleTypedProperty(Property = "FocusVisualStyle", StyleTargetType = typeof(Control))]
System\Windows\FrameworkElement.cs (4)
90[StyleTypedProperty(Property = "FocusVisualStyle", StyleTargetType = typeof(Control))] 880if (!(fe is Control)) 2080if (dp != StyleProperty && dp != Control.TemplateProperty && dp != DefaultStyleKeyProperty) 6306_controlDType = DependencyObjectType.FromSystemTypeInternal(typeof(Control));
System\Windows\Input\KeyboardNavigation.cs (4)
497Control control = new Control 593Control control = (Control)_canvasChildren[i]; 610Control control = new Control
System\Windows\Interop\ActiveXHost.cs (2)
69Control.IsTabStopProperty.OverrideMetadata(typeof(ActiveXHost), new FrameworkPropertyMetadata(true)); 737= Control.TabIndexProperty.AddOwner(typeof(ActiveXHost));
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
200case 107: t = () => typeof(Control); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (45)
2138Type type = typeof(System.Windows.Controls.Control); 2139DependencyProperty dp = System.Windows.Controls.Control.BackgroundProperty; 2141this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2157Type type = typeof(System.Windows.Controls.Control); 2158DependencyProperty dp = System.Windows.Controls.Control.BorderBrushProperty; 2160this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2176Type type = typeof(System.Windows.Controls.Control); 2177DependencyProperty dp = System.Windows.Controls.Control.BorderThicknessProperty; 2179this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2195Type type = typeof(System.Windows.Controls.Control); 2196DependencyProperty dp = System.Windows.Controls.Control.FontFamilyProperty; 2198this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2214Type type = typeof(System.Windows.Controls.Control); 2215DependencyProperty dp = System.Windows.Controls.Control.FontSizeProperty; 2217this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2233Type type = typeof(System.Windows.Controls.Control); 2234DependencyProperty dp = System.Windows.Controls.Control.FontStretchProperty; 2236this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2252Type type = typeof(System.Windows.Controls.Control); 2253DependencyProperty dp = System.Windows.Controls.Control.FontStyleProperty; 2255this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2271Type type = typeof(System.Windows.Controls.Control); 2272DependencyProperty dp = System.Windows.Controls.Control.FontWeightProperty; 2274this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2290Type type = typeof(System.Windows.Controls.Control); 2291DependencyProperty dp = System.Windows.Controls.Control.ForegroundProperty; 2293this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2309Type type = typeof(System.Windows.Controls.Control); 2310DependencyProperty dp = System.Windows.Controls.Control.HorizontalContentAlignmentProperty; 2312this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2328Type type = typeof(System.Windows.Controls.Control); 2329DependencyProperty dp = System.Windows.Controls.Control.IsTabStopProperty; 2331this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2347Type type = typeof(System.Windows.Controls.Control); 2348DependencyProperty dp = System.Windows.Controls.Control.PaddingProperty; 2350this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2366Type type = typeof(System.Windows.Controls.Control); 2367DependencyProperty dp = System.Windows.Controls.Control.TabIndexProperty; 2369this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2385Type type = typeof(System.Windows.Controls.Control); 2386DependencyProperty dp = System.Windows.Controls.Control.TemplateProperty; 2388this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2401Type type = typeof(System.Windows.Controls.Control); 2402DependencyProperty dp = System.Windows.Controls.Control.VerticalContentAlignmentProperty; 2404this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
3149typeof(System.Windows.Controls.Control),
System\Windows\Markup\KnownTypes.cs (16)
1721return System.Windows.Controls.Control.BackgroundProperty; 1723return System.Windows.Controls.Control.BorderBrushProperty; 1725return System.Windows.Controls.Control.BorderThicknessProperty; 1727return System.Windows.Controls.Control.FontFamilyProperty; 1729return System.Windows.Controls.Control.FontSizeProperty; 1731return System.Windows.Controls.Control.FontStretchProperty; 1733return System.Windows.Controls.Control.FontStyleProperty; 1735return System.Windows.Controls.Control.FontWeightProperty; 1737return System.Windows.Controls.Control.ForegroundProperty; 1739return System.Windows.Controls.Control.HorizontalContentAlignmentProperty; 1741return System.Windows.Controls.Control.IsTabStopProperty; 1743return System.Windows.Controls.Control.PaddingProperty; 1745return System.Windows.Controls.Control.TabIndexProperty; 1747return System.Windows.Controls.Control.TemplateProperty; 1749return System.Windows.Controls.Control.VerticalContentAlignmentProperty; 5654case KnownElements.Control: t = typeof(System.Windows.Controls.Control); break;
System\Windows\StyleHelper.cs (3)
431if (StyleHelper.IsSetOnContainer(Control.TemplateProperty, ref containerDependents, true) || 434throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, Control.TemplateProperty.Name)); 3120dp != Control.TemplateProperty &&
System\Windows\Window.cs (3)
2169internal virtual void SetResizeGripControl(Control ctrl) 2174internal virtual void ClearResizeGripControl(Control oldCtrl) 7309private Control _resizeGripControl;
PresentationFramework.Aero (3)
Microsoft\Windows\Themes\BulletChrome.cs (1)
49Control.BackgroundProperty.AddOwner(
Microsoft\Windows\Themes\ButtonChrome.cs (1)
44Control.BackgroundProperty.AddOwner(
Microsoft\Windows\Themes\ListBoxChrome.cs (1)
44Control.BackgroundProperty.AddOwner(
PresentationFramework.Aero2 (3)
Microsoft\Windows\Themes\BulletChrome.cs (1)
49Control.BackgroundProperty.AddOwner(
Microsoft\Windows\Themes\ButtonChrome.cs (1)
44Control.BackgroundProperty.AddOwner(
Microsoft\Windows\Themes\ListBoxChrome.cs (1)
44Control.BackgroundProperty.AddOwner(
PresentationFramework.Luna (2)
Microsoft\Windows\Themes\ScrollChrome.cs (1)
134public static readonly DependencyProperty PaddingProperty = Control.PaddingProperty.AddOwner(typeof(ScrollChrome));
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\BulletChrome.cs (1)
36Control.BackgroundProperty.AddOwner(
PresentationFramework.Royale (2)
Microsoft\Windows\Themes\ScrollChrome.cs (1)
116public static readonly DependencyProperty PaddingProperty = Control.PaddingProperty.AddOwner(typeof(ScrollChrome));
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\BulletChrome.cs (1)
36Control.BackgroundProperty.AddOwner(
PresentationUI (2)
MS\Internal\Documents\Application\StatusInfoItem.cs (2)
41public StatusInfoItem(StatusInfoItemType type, Button infoBarButton, Control toolBarControl) 200private Control _toolBarControl;
System.Windows.Controls.Ribbon (17)
Microsoft\Windows\Controls\KeyTipAdorner.cs (3)
123_keyTipControl.ClearValue(Control.BackgroundProperty); 124_keyTipControl.ClearValue(Control.BorderBrushProperty); 125_keyTipControl.ClearValue(Control.ForegroundProperty);
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (4)
2064Control extraControl, 2066Func<T, int, bool> trySetFocusAtItemIndex) where T : Control 2155Control extraControl, 2157Func<T, int> getFocusedItemIndex) where T : Control
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (10)
1634new PropertyAndTransferMode () { Property = Control.BackgroundProperty, Mode = TransferMode.AlwaysTransfer }, 1635new PropertyAndTransferMode () { Property = Control.BorderBrushProperty, Mode = TransferMode.AlwaysTransfer }, 1636new PropertyAndTransferMode () { Property = Control.BorderThicknessProperty, Mode = TransferMode.AlwaysTransfer }, 1637new PropertyAndTransferMode () { Property = Control.ForegroundProperty, Mode = TransferMode.AlwaysTransfer }, 1638new PropertyAndTransferMode () { Property = Control.FontFamilyProperty, Mode = TransferMode.AlwaysTransfer }, 1639new PropertyAndTransferMode () { Property = Control.FontSizeProperty, Mode = TransferMode.AlwaysTransfer }, 1640new PropertyAndTransferMode () { Property = Control.FontStretchProperty, Mode = TransferMode.AlwaysTransfer}, 1641new PropertyAndTransferMode () { Property = Control.FontStyleProperty, Mode = TransferMode.AlwaysTransfer}, 1642new PropertyAndTransferMode () { Property = Control.FontWeightProperty, Mode = TransferMode.AlwaysTransfer}, 2027if (original is Control)
WindowsFormsIntegration (15)
System\Windows\Integration\ElementHostPropertyMap.cs (4)
133adapter.SetValue(SWC.Control.FontSizeProperty, Convert.SystemDrawingFontToSystemWindowsFontSize(wfFont)); 134adapter.SetValue(SWC.Control.FontFamilyProperty, Convert.ToSystemWindowsFontFamily(wfFont.FontFamily)); 135adapter.SetValue(SWC.Control.FontWeightProperty, Convert.ToSystemWindowsFontWeight(wfFont)); 136adapter.SetValue(SWC.Control.FontStyleProperty, Convert.ToSystemWindowsFontStyle(wfFont));
System\Windows\Integration\WindowsFormsHost.cs (10)
47SWC.Control.IsTabStopProperty.OverrideMetadata(typeof(WindowsFormsHost), new FrameworkPropertyMetadata(true)); 388backgroundBrush = (Brush)dependencyObject.GetValue(SWC.Control.BackgroundProperty); 565SWC.Control.PaddingProperty.AddOwner(typeof(WindowsFormsHost)); 581SWC.Control.TabIndexProperty.AddOwner(typeof(WindowsFormsHost)); 597SWC.Control.FontFamilyProperty.AddOwner(typeof(WindowsFormsHost)); 612SWC.Control.FontSizeProperty.AddOwner(typeof(WindowsFormsHost)); 627SWC.Control.FontStyleProperty.AddOwner(typeof(WindowsFormsHost)); 642SWC.Control.FontWeightProperty.AddOwner(typeof(WindowsFormsHost)); 657SWC.Control.ForegroundProperty.AddOwner(typeof(WindowsFormsHost)); 673SWC.Control.BackgroundProperty.AddOwner(typeof(WindowsFormsHost));
System\Windows\Integration\WindowsFormsHostPropertyMap.cs (1)
66brush = (Brush)parent.GetValue(SWC.Control.BackgroundProperty);