28 types derived from Control
PresentationFramework (17)
src\Framework\System\Windows\Controls\Calendar.cs (1)
23public class Calendar : Control
src\Framework\System\Windows\Controls\ContentControl.cs (1)
31public class ContentControl : Control, IAddChild
src\Framework\System\Windows\Controls\DataGridColumnFloatingHeader.cs (1)
20internal class DataGridColumnFloatingHeader : Control
src\Framework\System\Windows\Controls\DataGridRow.cs (1)
31public class DataGridRow : Control
src\Framework\System\Windows\Controls\DatePicker.cs (1)
31public class DatePicker : Control
src\Framework\System\Windows\Controls\FlowDocumentReader.cs (1)
37public class FlowDocumentReader : Control, IAddChild, IJournalState
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
42public class FlowDocumentScrollViewer : Control, IAddChild, IServiceProvider, IJournalState
src\Framework\System\Windows\Controls\ItemsControl.cs (1)
45public class ItemsControl : Control, IAddChild, IGeneratorHost, IContainItemStorage
src\Framework\System\Windows\Controls\PasswordBox.cs (1)
43public sealed class PasswordBox : Control, ITextBoxViewHost
src\Framework\System\Windows\Controls\Primitives\CalendarItem.cs (1)
26public sealed partial class CalendarItem : Control
src\Framework\System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
50public abstract class DocumentViewerBase : Control, IAddChild, IServiceProvider
src\Framework\System\Windows\Controls\Primitives\RangeBase.cs (1)
33public abstract class RangeBase : Control
src\Framework\System\Windows\Controls\Primitives\ResizeGrip.cs (1)
39public class ResizeGrip : Control
src\Framework\System\Windows\Controls\Primitives\TextBoxBase.cs (1)
47public abstract class TextBoxBase : Control
src\Framework\System\Windows\Controls\Primitives\Thumb.cs (1)
33public class Thumb : Control
src\Framework\System\Windows\Controls\Separator.cs (1)
18public class Separator : Control
src\Framework\System\Windows\Controls\StickyNote.cs (1)
90public sealed partial class StickyNoteControl : Control,
System.Activities.Core.Presentation (2)
System\Activities\Core\Presentation\FlowchartResizeGrip.cs (1)
17class FlowchartResizeGrip : Control
System\Activities\Core\Presentation\StateContainerResizeGrip.cs (1)
20class StateContainerResizeGrip : Control
System.Activities.Presentation (9)
System.Activities.Presentation\System\Activities\Presentation\ActivityDelegatePresenter.cs (1)
22internal class ActivityDelegatePresenter : Control
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\SubPropertyEditor.cs (1)
35internal class SubPropertyEditor : Control, INotifyPropertyChanged, ISelectionStop
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\ValueEditors\ChoiceEditor.cs (1)
39internal class ChoiceEditor : Control, INotifyPropertyChanged, IIconProvider
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyToolBar.cs (1)
22internal sealed class PropertyToolBar : Control, INotifyPropertyChanged
System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\PropertyContainer.cs (1)
30class PropertyContainer : Control, INotifyPropertyChanged
System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\PropertyMarker.cs (1)
12class PropertyMarker : Control {
System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolboxControl.cs (1)
26sealed public partial class ToolboxControl : Control
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionWindowHeader.cs (1)
18class ExtensionWindowHeader : Control
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionWindowResizeGrip.cs (1)
17class ExtensionWindowResizeGrip : Control
6 instantiations of Control
PresentationFramework (6)
src\Framework\MS\Internal\Controls\TemplatedAdorner.cs (1)
57Control control = new Control();
src\Framework\System\Windows\Controls\GridSplitter.cs (1)
400Control previewControl = new Control();
src\Framework\System\Windows\Input\KeyboardNavigation.cs (2)
556Control control = new Control(); 667Control control = new Control();
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
2986bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.Control(); };
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
1188case KnownElements.Control: o = new System.Windows.Controls.Control(); break;
227 references to Control
PresentationFramework (175)
src\Framework\MS\Internal\AppModel\RootBrowserWindow.cs (2)
603internal override void ClearResizeGripControl(Control oldCtrl) 609internal override void SetResizeGripControl(Control ctrl)
src\Framework\MS\Internal\Controls\TemplatedAdorner.cs (2)
41private Control _child; 57Control control = new Control();
src\Framework\MS\Internal\Documents\DocumentViewerHelper.cs (2)
64findToolBar.SetResourceReference(Control.StyleProperty, FindToolBarStyleKey); 385internal static void OnContextMenuOpening(FlowDocument document, Control viewer, ContextMenuEventArgs e)
src\Framework\MS\Internal\Documents\TextBoxLine.cs (1)
131culture = DynamicPropertyReader.GetCultureInfo((Control)_owner.Host);
src\Framework\MS\Internal\Documents\TextBoxView.cs (18)
47Invariant.Assert(host is Control); 698double endOfParaGlyphWidth = ((Control)_host).FontSize * CaretElement.c_endOfParaMagicMultiplier; 1419TextProperties defaultTextProperties = new TextProperties((Control)_host, _host.IsTypographyDefaultValue); 1423return new LineProperties((Control)_host, (Control)_host, defaultTextProperties, null, this.CalculatedTextAlignment); 1560Control 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)); 2247if ((ScrollBarVisibility)((Control)_host).GetValue(ScrollViewer.VerticalScrollBarVisibilityProperty) == ScrollBarVisibility.Auto) 3024switch (((Control)_host).VerticalContentAlignment) 3060Control host = (Control)_host; 3148Control hostControl = (Control)owner.Host;
src\Framework\System\Windows\Controls\ComboBox.cs (1)
1055Separator.PrepareContainer(element as Control);
src\Framework\System\Windows\Controls\Control.cs (29)
37FocusableProperty.OverrideMetadata(typeof(Control), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox)); 39EventManager.RegisterClassHandler(typeof(Control), UIElement.PreviewMouseLeftButtonDownEvent, new MouseButtonEventHandler(HandleDoubleClick), true); 40EventManager.RegisterClassHandler(typeof(Control), UIElement.MouseLeftButtonDownEvent, new MouseButtonEventHandler(HandleDoubleClick), true); 41EventManager.RegisterClassHandler(typeof(Control), UIElement.PreviewMouseRightButtonDownEvent, new MouseButtonEventHandler(HandleDoubleClick), true); 42EventManager.RegisterClassHandler(typeof(Control), UIElement.MouseRightButtonDownEvent, new MouseButtonEventHandler(HandleDoubleClick), true); 45IsKeyboardFocusedPropertyKey.OverrideMetadata(typeof(Control), new PropertyMetadata(new PropertyChangedCallback(OnVisualStatePropertyChanged))); 76= Border.BorderBrushProperty.AddOwner(typeof(Control), 98= Border.BorderThicknessProperty.AddOwner(typeof(Control), 120Panel.BackgroundProperty.AddOwner(typeof(Control), 146typeof(Control), 170typeof(Control), 195typeof(Control), 220= TextElement.FontStretchProperty.AddOwner(typeof(Control), 244typeof(Control), 268typeof(Control), 294typeof(Control), 320typeof(Control), 341= KeyboardNavigation.TabIndexProperty.AddOwner(typeof(Control)); 359= KeyboardNavigation.IsTabStopProperty.AddOwner(typeof(Control)); 378typeof(Thickness), typeof(Control), 410typeof(Control), 448Control c = (Control) d; 523public static readonly RoutedEvent PreviewMouseDoubleClickEvent = EventManager.RegisterRoutedEvent("PreviewMouseDoubleClick", RoutingStrategy.Direct, typeof(MouseButtonEventHandler), typeof(Control)); 546public static readonly RoutedEvent MouseDoubleClickEvent = EventManager.RegisterRoutedEvent("MouseDoubleClick", RoutingStrategy.Direct, typeof(MouseButtonEventHandler), typeof(Control)); 570Control ctrl = (Control)sender; 686var control = d as Control;
src\Framework\System\Windows\Controls\DataGridColumnReorderingEventArgs.cs (4)
51public Control DropLocationIndicator 67public Control DragIndicator 85private Control _dropLocationIndicator; 86private Control _dragIndicator;
src\Framework\System\Windows\Controls\GridSplitter.cs (2)
84[StyleTypedProperty(Property = "PreviewStyle", StyleTargetType = typeof(Control))] 400Control previewControl = new Control();
src\Framework\System\Windows\Controls\ListBox.cs (1)
247Separator.PrepareContainer(element as Control);
src\Framework\System\Windows\Controls\ListBoxItem.cs (1)
199VisualStateManager.GoToState(this, Content is Control ? VisualStates.StateNormal : VisualStates.StateDisabled, useTransitions);
src\Framework\System\Windows\Controls\Page.cs (1)
519Control.TemplateProperty.AddOwner(
src\Framework\System\Windows\Controls\PasswordBox.cs (5)
70Control.PaddingProperty.OverrideMetadata(typeof(PasswordBox), 513e.Property == Control.HorizontalContentAlignmentProperty || e.Property == Control.VerticalContentAlignmentProperty) 1135object padding = passwordBox.GetValue(Control.PaddingProperty); 1142passwordBox.ScrollViewer.ClearValue(Control.PaddingProperty);
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (4)
755private Control CreateColumnHeaderDragIndicator() 786private Control CreateColumnHeaderDropIndicator() 1076private Control _columnHeaderDropLocationIndicator; 1077private Control _columnHeaderDragIndicator;
src\Framework\System\Windows\Controls\Primitives\DatePickerTextBox.cs (2)
178Control watermarkControl = this.Watermark as Control;
src\Framework\System\Windows\Controls\Primitives\ScrollBar.cs (1)
43/// <seealso cref="Control" />
src\Framework\System\Windows\Controls\Primitives\TextBoxBase.cs (1)
66Control.PaddingProperty.OverrideMetadata(typeof(TextBoxBase),
src\Framework\System\Windows\Controls\Primitives\Track.cs (2)
121private void UpdateComponent(Control oldValue, Control newValue)
src\Framework\System\Windows\Controls\ScrollViewer.cs (5)
955Control templatedParentControl = TemplatedParent as Control; 2639Control templatedParentControl = scrollViewer != null ? scrollViewer.TemplatedParent as Control : null; 2962Control.TemplateProperty.OverrideMetadata(typeof(ScrollViewer), new FrameworkPropertyMetadata(template));
src\Framework\System\Windows\Controls\Separator.cs (1)
30internal static void PrepareContainer(Control container)
src\Framework\System\Windows\Controls\StickyNote.cs (1)
139Control.IsTabStopProperty.OverrideMetadata(owner, new FrameworkPropertyMetadata(false));
src\Framework\System\Windows\Controls\TextBox.cs (2)
1025e.Property == Control.HorizontalContentAlignmentProperty || e.Property == Control.VerticalContentAlignmentProperty)
src\Framework\System\Windows\Controls\Validation.cs (4)
155Control control = d as Control; 158Control.OnVisualStatePropertyChanged(control, e); 598ControlTemplate defaultTemplate = new ControlTemplate(typeof(Control));
src\Framework\System\Windows\Controls\VisualStates.cs (1)
424public static void GoToState(Control control, bool useTransitions, params string[] stateNames)
src\Framework\System\Windows\ControlTemplate.cs (2)
141if (!typeof(Control).IsAssignableFrom(targetType) && 194internal static readonly Type DefaultTargetType = typeof(Control);
src\Framework\System\Windows\FrameworkContentElement.cs (1)
58[StyleTypedProperty(Property = "FocusVisualStyle", StyleTargetType = typeof(Control))]
src\Framework\System\Windows\FrameworkElement.cs (4)
106[StyleTypedProperty(Property = "FocusVisualStyle", StyleTargetType = typeof(Control))] 901if (!(fe is Control)) 2099if (dp != StyleProperty && dp != Control.TemplateProperty && dp != DefaultStyleKeyProperty) 6331_controlDType = DependencyObjectType.FromSystemTypeInternal(typeof(Control));
src\Framework\System\Windows\Input\KeyboardNavigation.cs (4)
556Control control = new Control(); 650Control control = (Control)_canvasChildren[i]; 667Control control = new Control();
src\Framework\System\Windows\Interop\ActiveXHost.cs (2)
91Control.IsTabStopProperty.OverrideMetadata(typeof(ActiveXHost), new FrameworkPropertyMetadata(true)); 867= Control.TabIndexProperty.AddOwner(typeof(ActiveXHost));
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
199case 107: t = () => typeof(Control); break;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (45)
2101Type type = typeof(System.Windows.Controls.Control); 2102DependencyProperty dp = System.Windows.Controls.Control.BackgroundProperty; 2104this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2118Type type = typeof(System.Windows.Controls.Control); 2119DependencyProperty dp = System.Windows.Controls.Control.BorderBrushProperty; 2121this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2135Type type = typeof(System.Windows.Controls.Control); 2136DependencyProperty dp = System.Windows.Controls.Control.BorderThicknessProperty; 2138this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2152Type type = typeof(System.Windows.Controls.Control); 2153DependencyProperty dp = System.Windows.Controls.Control.FontFamilyProperty; 2155this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2169Type type = typeof(System.Windows.Controls.Control); 2170DependencyProperty dp = System.Windows.Controls.Control.FontSizeProperty; 2172this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2186Type type = typeof(System.Windows.Controls.Control); 2187DependencyProperty dp = System.Windows.Controls.Control.FontStretchProperty; 2189this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2203Type type = typeof(System.Windows.Controls.Control); 2204DependencyProperty dp = System.Windows.Controls.Control.FontStyleProperty; 2206this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2220Type type = typeof(System.Windows.Controls.Control); 2221DependencyProperty dp = System.Windows.Controls.Control.FontWeightProperty; 2223this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2237Type type = typeof(System.Windows.Controls.Control); 2238DependencyProperty dp = System.Windows.Controls.Control.ForegroundProperty; 2240this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2254Type type = typeof(System.Windows.Controls.Control); 2255DependencyProperty dp = System.Windows.Controls.Control.HorizontalContentAlignmentProperty; 2257this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2271Type type = typeof(System.Windows.Controls.Control); 2272DependencyProperty dp = System.Windows.Controls.Control.IsTabStopProperty; 2274this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2288Type type = typeof(System.Windows.Controls.Control); 2289DependencyProperty dp = System.Windows.Controls.Control.PaddingProperty; 2291this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2305Type type = typeof(System.Windows.Controls.Control); 2306DependencyProperty dp = System.Windows.Controls.Control.TabIndexProperty; 2308this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2322Type type = typeof(System.Windows.Controls.Control); 2323DependencyProperty dp = System.Windows.Controls.Control.TemplateProperty; 2325this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType 2338Type type = typeof(System.Windows.Controls.Control); 2339DependencyProperty dp = System.Windows.Controls.Control.VerticalContentAlignmentProperty; 2341this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
2984typeof(System.Windows.Controls.Control),
src\Framework\System\Windows\Markup\KnownTypes.cs (16)
1729return System.Windows.Controls.Control.BackgroundProperty; 1731return System.Windows.Controls.Control.BorderBrushProperty; 1733return System.Windows.Controls.Control.BorderThicknessProperty; 1735return System.Windows.Controls.Control.FontFamilyProperty; 1737return System.Windows.Controls.Control.FontSizeProperty; 1739return System.Windows.Controls.Control.FontStretchProperty; 1741return System.Windows.Controls.Control.FontStyleProperty; 1743return System.Windows.Controls.Control.FontWeightProperty; 1745return System.Windows.Controls.Control.ForegroundProperty; 1747return System.Windows.Controls.Control.HorizontalContentAlignmentProperty; 1749return System.Windows.Controls.Control.IsTabStopProperty; 1751return System.Windows.Controls.Control.PaddingProperty; 1753return System.Windows.Controls.Control.TabIndexProperty; 1755return System.Windows.Controls.Control.TemplateProperty; 1757return System.Windows.Controls.Control.VerticalContentAlignmentProperty; 5651case KnownElements.Control: t = typeof(System.Windows.Controls.Control); break;
src\Framework\System\Windows\StyleHelper.cs (3)
450if (StyleHelper.IsSetOnContainer(Control.TemplateProperty, ref containerDependents, true) || 453throw new InvalidOperationException(SR.Get(SRID.CannotHavePropertyInTemplate, Control.TemplateProperty.Name)); 3134dp != Control.TemplateProperty &&
src\Framework\System\Windows\Window.cs (3)
2224internal virtual void SetResizeGripControl(Control ctrl) 2229internal virtual void ClearResizeGripControl(Control oldCtrl) 7715private Control _resizeGripControl;
PresentationFramework.Aero (3)
Microsoft\Windows\Themes\BulletChrome.cs (1)
62Control.BackgroundProperty.AddOwner(
Microsoft\Windows\Themes\ButtonChrome.cs (1)
60Control.BackgroundProperty.AddOwner(
Microsoft\Windows\Themes\ListBoxChrome.cs (1)
57Control.BackgroundProperty.AddOwner(
PresentationFramework.Luna (2)
Microsoft\Windows\Themes\ScrollChrome.cs (1)
145public static readonly DependencyProperty PaddingProperty = Control.PaddingProperty.AddOwner(typeof(ScrollChrome));
parent\Shared\Microsoft\Windows\Themes\BulletChrome.cs (1)
48Control.BackgroundProperty.AddOwner(
PresentationFramework.Royale (2)
Microsoft\Windows\Themes\ScrollChrome.cs (1)
127public static readonly DependencyProperty PaddingProperty = Control.PaddingProperty.AddOwner(typeof(ScrollChrome));
parent\Shared\Microsoft\Windows\Themes\BulletChrome.cs (1)
48Control.BackgroundProperty.AddOwner(
System.Activities.Core.Presentation (3)
System\Activities\Core\Presentation\CaseKeyBox.xaml.cs (3)
51Control visibleBox; 308Control control = sender as Control;
System.Activities.Presentation (42)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Metadata\PropertyInspectorMetadata.cs (2)
53MakeBasic(builder, typeof(Control), Control.NameProperty);
System.Activities.Presentation\System\Activities\Presentation\ContextMenuUtilities.cs (1)
147public static void OnAnnotationMenuLoaded(EditingContext editingContext, Control control, RoutedEventArgs e)
System.Activities.Presentation\System\Activities\Presentation\View\ArgumentDesigner.xaml.cs (4)
644ContextMenuUtilities.OnAnnotationMenuLoaded(this.Context, (Control)sender, e); 649ContextMenuUtilities.OnAnnotationMenuLoaded(this.Context, (Control)sender, e); 686ContextMenuUtilities.OnAnnotationMenuLoaded(this.Context, (Control)sender, e); 724ContextMenuUtilities.OnAnnotationMenuLoaded(this.Context, (Control)sender, e);
System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (21)
82public DataGridHelper(DataGrid instance, Control owner) 261public Action<Control, DataGridCell, bool> NotifyBeginCellEditCallback 268public Action<Control, DataGridCell> NotifyEndCellEditCallback 540void NotifyEditingControlLoaded(Control control, DataGridCell cell, bool isNewRowLoaded) 566void NotifyEditingControlUnloaded(Control control, DataGridCell cell) 632Control ctrl = (Control)sender; 656Control ctrl = (Control)sender; 1195public abstract bool HandleControlLoaded(Control control, DataGridCell cell, bool newRowLoaded); 1196public abstract bool ControlUnloaded(Control control, DataGridCell cell); 1216public override bool HandleControlLoaded(Control control, DataGridCell cell, bool newRowLoaded) 1223public override bool ControlUnloaded(Control control, DataGridCell cell) 1236public override bool HandleControlLoaded(Control control, DataGridCell cell, bool newRowLoaded) 1257public override bool ControlUnloaded(Control control, DataGridCell cell) 1270public override bool HandleControlLoaded(Control control, DataGridCell cell, bool newRowLoaded) 1313public override bool ControlUnloaded(Control control, DataGridCell cell) 1339public override bool HandleControlLoaded(Control control, DataGridCell cell, bool newRowLoaded) 1356public override bool ControlUnloaded(Control control, DataGridCell cell) 1405public override bool HandleControlLoaded(Control control, DataGridCell cell, bool newRowLoaded) 1432public override bool ControlUnloaded(Control control, DataGridCell cell)
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (6)
453foreach (var entry in this.ContextMenu.Items.OfType<Control>().Reverse()) 465var items = this.contextMenuTarget.ContextMenu.Items.OfType<Control>().Reverse(); 468foreach (var item in items) 495var items = contextMenuToUnload.Items.OfType<Control>() 499foreach (Control item in items)
System.Activities.Presentation\System\Activities\Presentation\View\IExpressionEditorInstance.cs (1)
12Control HostControl { get; } // Returns a Control to be used to display in the ExpressionTextBox
System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (4)
654ContextMenuUtilities.OnAnnotationMenuLoaded(this.Context, (Control)sender, e); 659ContextMenuUtilities.OnAnnotationMenuLoaded(this.Context, (Control)sender, e); 696ContextMenuUtilities.OnAnnotationMenuLoaded(this.Context, (Control)sender, e); 734ContextMenuUtilities.OnAnnotationMenuLoaded(this.Context, (Control)sender, e);
System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (1)
95Control hostControl;
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemsPresenter.cs (2)
462Control spacerControl = spacer as Control;