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