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)
26public 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)
31public 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)
53public 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 611Control control = new Control
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
3153DefaultConstructor = delegate () { return new System.Windows.Controls.Control(); },
System\Windows\Markup\KnownTypes.cs (1)
1181case 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); 650double endOfParaGlyphWidth = ((Control)_host).FontSize * CaretElement.c_endOfParaMagicMultiplier; 1178((Control)_host).Unloaded -= OnHostUnloaded; 1356((Control)_host).Unloaded += OnHostUnloaded; 1377TextProperties defaultTextProperties = new TextProperties((Control)_host, _host.IsTypographyDefaultValue); 1381return new LineProperties((Control)_host, (Control)_host, defaultTextProperties, null, this.CalculatedTextAlignment); 1517Control hostControl = (Control)_host; 1695Control hostControl = (Control)_host; 1831double endOfParaGlyphWidth = ((Control)_host).FontSize * CaretElement.c_endOfParaMagicMultiplier; 1836&& ((bool)((Control)_host).GetValue(TextBoxBase.IsInactiveSelectionHighlightEnabledProperty) 1837|| (bool)((Control)_host).GetValue(TextBoxBase.IsSelectionActiveProperty)); 2209if ((ScrollBarVisibility)((Control)_host).GetValue(ScrollViewer.VerticalScrollBarVisibilityProperty) == ScrollBarVisibility.Auto) 3005switch (((Control)_host).VerticalContentAlignment) 3041Control host = (Control)_host; 3129Control hostControl = (Control)owner.Host;
System\Windows\Controls\ComboBox.cs (1)
1039Separator.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)
189VisualStateManager.GoToState(this, Content is Control ? VisualStates.StateNormal : VisualStates.StateDisabled, useTransitions);
System\Windows\Controls\Page.cs (1)
491Control.TemplateProperty.AddOwner(
System\Windows\Controls\PasswordBox.cs (5)
53Control.PaddingProperty.OverrideMetadata(typeof(PasswordBox), 482e.Property == Control.HorizontalContentAlignmentProperty || e.Property == Control.VerticalContentAlignmentProperty) 1089object padding = passwordBox.GetValue(Control.PaddingProperty); 1096passwordBox.ScrollViewer.ClearValue(Control.PaddingProperty);
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (4)
744private Control CreateColumnHeaderDragIndicator() 777private Control CreateColumnHeaderDropIndicator() 1066private Control _columnHeaderDropLocationIndicator; 1067private Control _columnHeaderDragIndicator;
System\Windows\Controls\Primitives\DatePickerTextBox.cs (2)
175Control 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; 2589Control templatedParentControl = scrollViewer != null ? scrollViewer.TemplatedParent as Control : null; 2918Control.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)
102Control.IsTabStopProperty.OverrideMetadata(owner, new FrameworkPropertyMetadata(false));
System\Windows\Controls\TextBox.cs (2)
1029e.Property == Control.HorizontalContentAlignmentProperty || e.Property == Control.VerticalContentAlignmentProperty)
System\Windows\Controls\Validation.cs (4)
138Control control = d as Control; 141Control.OnVisualStatePropertyChanged(control, e); 589ControlTemplate defaultTemplate = new ControlTemplate(typeof(Control));
System\Windows\Controls\VisualStates.cs (1)
414public static void GoToState(Control control, bool useTransitions, params ReadOnlySpan<string> stateNames)
System\Windows\ControlTemplate.cs (2)
135if (!typeof(Control).IsAssignableFrom(targetType) && 188internal static readonly Type DefaultTargetType = typeof(Control);
System\Windows\FrameworkContentElement.cs (1)
40[StyleTypedProperty(Property = "FocusVisualStyle", StyleTargetType = typeof(Control))]
System\Windows\FrameworkElement.cs (4)
91[StyleTypedProperty(Property = "FocusVisualStyle", StyleTargetType = typeof(Control))] 881if (!(fe is Control)) 2081if (dp != StyleProperty && dp != Control.TemplateProperty && dp != DefaultStyleKeyProperty) 6307_controlDType = DependencyObjectType.FromSystemTypeInternal(typeof(Control));
System\Windows\Input\KeyboardNavigation.cs (4)
498Control control = new Control 594Control control = (Control)_canvasChildren[i]; 611Control control = new Control
System\Windows\Interop\ActiveXHost.cs (2)
70Control.IsTabStopProperty.OverrideMetadata(typeof(ActiveXHost), new FrameworkPropertyMetadata(true)); 738= 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)
2139Type type = typeof(System.Windows.Controls.Control); 2140DependencyProperty dp = System.Windows.Controls.Control.BackgroundProperty; 2142this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2158Type type = typeof(System.Windows.Controls.Control); 2159DependencyProperty dp = System.Windows.Controls.Control.BorderBrushProperty; 2161this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2177Type type = typeof(System.Windows.Controls.Control); 2178DependencyProperty dp = System.Windows.Controls.Control.BorderThicknessProperty; 2180this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2196Type type = typeof(System.Windows.Controls.Control); 2197DependencyProperty dp = System.Windows.Controls.Control.FontFamilyProperty; 2199this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2215Type type = typeof(System.Windows.Controls.Control); 2216DependencyProperty dp = System.Windows.Controls.Control.FontSizeProperty; 2218this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2234Type type = typeof(System.Windows.Controls.Control); 2235DependencyProperty dp = System.Windows.Controls.Control.FontStretchProperty; 2237this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2253Type type = typeof(System.Windows.Controls.Control); 2254DependencyProperty dp = System.Windows.Controls.Control.FontStyleProperty; 2256this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2272Type type = typeof(System.Windows.Controls.Control); 2273DependencyProperty dp = System.Windows.Controls.Control.FontWeightProperty; 2275this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2291Type type = typeof(System.Windows.Controls.Control); 2292DependencyProperty dp = System.Windows.Controls.Control.ForegroundProperty; 2294this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2310Type type = typeof(System.Windows.Controls.Control); 2311DependencyProperty dp = System.Windows.Controls.Control.HorizontalContentAlignmentProperty; 2313this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2329Type type = typeof(System.Windows.Controls.Control); 2330DependencyProperty dp = System.Windows.Controls.Control.IsTabStopProperty; 2332this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2348Type type = typeof(System.Windows.Controls.Control); 2349DependencyProperty dp = System.Windows.Controls.Control.PaddingProperty; 2351this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2367Type type = typeof(System.Windows.Controls.Control); 2368DependencyProperty dp = System.Windows.Controls.Control.TabIndexProperty; 2370this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2386Type type = typeof(System.Windows.Controls.Control); 2387DependencyProperty dp = System.Windows.Controls.Control.TemplateProperty; 2389this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2402Type type = typeof(System.Windows.Controls.Control); 2403DependencyProperty dp = System.Windows.Controls.Control.VerticalContentAlignmentProperty; 2405this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
3150typeof(System.Windows.Controls.Control),
System\Windows\Markup\KnownTypes.cs (16)
1722return System.Windows.Controls.Control.BackgroundProperty; 1724return System.Windows.Controls.Control.BorderBrushProperty; 1726return System.Windows.Controls.Control.BorderThicknessProperty; 1728return System.Windows.Controls.Control.FontFamilyProperty; 1730return System.Windows.Controls.Control.FontSizeProperty; 1732return System.Windows.Controls.Control.FontStretchProperty; 1734return System.Windows.Controls.Control.FontStyleProperty; 1736return System.Windows.Controls.Control.FontWeightProperty; 1738return System.Windows.Controls.Control.ForegroundProperty; 1740return System.Windows.Controls.Control.HorizontalContentAlignmentProperty; 1742return System.Windows.Controls.Control.IsTabStopProperty; 1744return System.Windows.Controls.Control.PaddingProperty; 1746return System.Windows.Controls.Control.TabIndexProperty; 1748return System.Windows.Controls.Control.TemplateProperty; 1750return System.Windows.Controls.Control.VerticalContentAlignmentProperty; 5655case KnownElements.Control: t = typeof(System.Windows.Controls.Control); break;
System\Windows\StyleHelper.cs (3)
432if (StyleHelper.IsSetOnContainer(Control.TemplateProperty, ref containerDependents, true) || 435throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, Control.TemplateProperty.Name)); 3121dp != Control.TemplateProperty &&
System\Windows\Window.cs (3)
2170internal virtual void SetResizeGripControl(Control ctrl) 2175internal virtual void ClearResizeGripControl(Control oldCtrl) 7310private 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)
124_keyTipControl.ClearValue(Control.BackgroundProperty); 125_keyTipControl.ClearValue(Control.BorderBrushProperty); 126_keyTipControl.ClearValue(Control.ForegroundProperty);
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (4)
2065Control extraControl, 2067Func<T, int, bool> trySetFocusAtItemIndex) where T : Control 2156Control extraControl, 2158Func<T, int> getFocusedItemIndex) where T : Control
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (10)
1635new PropertyAndTransferMode () { Property = Control.BackgroundProperty, Mode = TransferMode.AlwaysTransfer }, 1636new PropertyAndTransferMode () { Property = Control.BorderBrushProperty, Mode = TransferMode.AlwaysTransfer }, 1637new PropertyAndTransferMode () { Property = Control.BorderThicknessProperty, Mode = TransferMode.AlwaysTransfer }, 1638new PropertyAndTransferMode () { Property = Control.ForegroundProperty, Mode = TransferMode.AlwaysTransfer }, 1639new PropertyAndTransferMode () { Property = Control.FontFamilyProperty, Mode = TransferMode.AlwaysTransfer }, 1640new PropertyAndTransferMode () { Property = Control.FontSizeProperty, Mode = TransferMode.AlwaysTransfer }, 1641new PropertyAndTransferMode () { Property = Control.FontStretchProperty, Mode = TransferMode.AlwaysTransfer}, 1642new PropertyAndTransferMode () { Property = Control.FontStyleProperty, Mode = TransferMode.AlwaysTransfer}, 1643new PropertyAndTransferMode () { Property = Control.FontWeightProperty, Mode = TransferMode.AlwaysTransfer}, 2028if (original is Control)
WindowsFormsIntegration (15)
System\Windows\Integration\ElementHostPropertyMap.cs (4)
134adapter.SetValue(SWC.Control.FontSizeProperty, Convert.SystemDrawingFontToSystemWindowsFontSize(wfFont)); 135adapter.SetValue(SWC.Control.FontFamilyProperty, Convert.ToSystemWindowsFontFamily(wfFont.FontFamily)); 136adapter.SetValue(SWC.Control.FontWeightProperty, Convert.ToSystemWindowsFontWeight(wfFont)); 137adapter.SetValue(SWC.Control.FontStyleProperty, Convert.ToSystemWindowsFontStyle(wfFont));
System\Windows\Integration\WindowsFormsHost.cs (10)
48SWC.Control.IsTabStopProperty.OverrideMetadata(typeof(WindowsFormsHost), new FrameworkPropertyMetadata(true)); 389backgroundBrush = (Brush)dependencyObject.GetValue(SWC.Control.BackgroundProperty); 566SWC.Control.PaddingProperty.AddOwner(typeof(WindowsFormsHost)); 582SWC.Control.TabIndexProperty.AddOwner(typeof(WindowsFormsHost)); 598SWC.Control.FontFamilyProperty.AddOwner(typeof(WindowsFormsHost)); 613SWC.Control.FontSizeProperty.AddOwner(typeof(WindowsFormsHost)); 628SWC.Control.FontStyleProperty.AddOwner(typeof(WindowsFormsHost)); 643SWC.Control.FontWeightProperty.AddOwner(typeof(WindowsFormsHost)); 658SWC.Control.ForegroundProperty.AddOwner(typeof(WindowsFormsHost)); 674SWC.Control.BackgroundProperty.AddOwner(typeof(WindowsFormsHost));
System\Windows\Integration\WindowsFormsHostPropertyMap.cs (1)
67brush = (Brush)parent.GetValue(SWC.Control.BackgroundProperty);