6 instantiations of ControlTemplate
Microsoft.AspNetCore.Components.WebView.Wpf (1)
BlazorWebView.cs (1)
116
Template = new
ControlTemplate
PresentationFramework (5)
System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
1130
ControlTemplate template = new
ControlTemplate
(typeof(Separator))
System\Windows\Controls\ScrollViewer.cs (1)
2730
template = new
ControlTemplate
(typeof(ScrollViewer))
System\Windows\Controls\Validation.cs (1)
588
ControlTemplate defaultTemplate = new
ControlTemplate
(typeof(Control));
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
3170
DefaultConstructor = delegate () { return new System.Windows.Controls.
ControlTemplate
(); },
System\Windows\Markup\KnownTypes.cs (1)
1181
case KnownElements.ControlTemplate: o = new System.Windows.Controls.
ControlTemplate
(); break;
70 references to ControlTemplate
PresentationFramework (64)
MS\Internal\Controls\TemplatedAdorner.cs (1)
38
public TemplatedAdorner(UIElement adornedElement,
ControlTemplate
adornerTemplate) : base(adornedElement)
System\Windows\Controls\Control.cs (11)
49
ControlTemplate
defaultValue = (
ControlTemplate
) metadata.DefaultValue;
398
typeof(
ControlTemplate
),
401
(
ControlTemplate
) null, // default value
409
public
ControlTemplate
Template
425
set { _templateCache = (
ControlTemplate
) value; }
431
OnTemplateChanged((
ControlTemplate
)oldTemplate, (
ControlTemplate
)newTemplate);
450
protected virtual void OnTemplateChanged(
ControlTemplate
oldTemplate,
ControlTemplate
newTemplate)
757
private
ControlTemplate
_templateCache;
System\Windows\Controls\DataGrid.cs (5)
672
protected override void OnTemplateChanged(
ControlTemplate
oldTemplate,
ControlTemplate
newTemplate)
913
public
ControlTemplate
RowValidationErrorTemplate
915
get { return (
ControlTemplate
)GetValue(RowValidationErrorTemplateProperty); }
923
DependencyProperty.Register("RowValidationErrorTemplate", typeof(
ControlTemplate
), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowPropertyChanged)));
System\Windows\Controls\DataGridRow.cs (5)
173
protected override void OnTemplateChanged(
ControlTemplate
oldTemplate,
ControlTemplate
newTemplate)
332
public
ControlTemplate
ValidationErrorTemplate
334
get { return (
ControlTemplate
)GetValue(ValidationErrorTemplateProperty); }
342
DependencyProperty.Register("ValidationErrorTemplate", typeof(
ControlTemplate
), typeof(DataGridRow), new FrameworkPropertyMetadata(null, OnNotifyRowPropertyChanged, OnCoerceValidationErrorTemplate));
System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
1130
ControlTemplate
template = new ControlTemplate(typeof(Separator))
System\Windows\Controls\Page.cs (10)
58
ControlTemplate
defaultValue = (
ControlTemplate
) metadata.DefaultValue;
493
(
ControlTemplate
) null, // default value
501
public
ControlTemplate
Template
517
set { _templateCache = (
ControlTemplate
)value; }
523
OnTemplateChanged((
ControlTemplate
)oldTemplate, (
ControlTemplate
)newTemplate);
543
ControlTemplate
oldTemplate,
ControlTemplate
newTemplate)
927
private
ControlTemplate
_templateCache;
System\Windows\Controls\PasswordBox.cs (2)
454
protected override void OnTemplateChanged(
ControlTemplate
oldTemplate,
ControlTemplate
newTemplate)
System\Windows\Controls\Primitives\TextBoxBase.cs (2)
1022
protected override void OnTemplateChanged(
ControlTemplate
oldTemplate,
ControlTemplate
newTemplate)
System\Windows\Controls\ScrollViewer.cs (3)
2644
private static
ControlTemplate
CreateDefaultControlTemplate()
2646
ControlTemplate
template = null;
2911
ControlTemplate
template = CreateDefaultControlTemplate();
System\Windows\Controls\StickyNote.cs (2)
512
protected override void OnTemplateChanged(
ControlTemplate
oldTemplate,
ControlTemplate
newTemplate)
System\Windows\Controls\Validation.cs (7)
171
typeof(
ControlTemplate
), typeof(Validation),
181
public static
ControlTemplate
GetErrorTemplate(DependencyObject element)
185
return element.GetValue(ErrorTemplateProperty) as
ControlTemplate
;
190
public static void SetErrorTemplate(DependencyObject element,
ControlTemplate
value)
451
ControlTemplate
validationTemplate = GetErrorTemplate(siteUIElement);
586
private static
ControlTemplate
CreateDefaultErrorTemplate()
588
ControlTemplate
defaultTemplate = new ControlTemplate(typeof(Control));
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
201
case 108: t = () => typeof(
ControlTemplate
); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (11)
4594
Type type = typeof(System.Windows.Controls.
ControlTemplate
);
4596
this.GetXamlType(typeof(System.Windows.Controls.
ControlTemplate
)), // DeclaringType
4603
SetDelegate = delegate (object target, object value) { ((System.Windows.Controls.
ControlTemplate
)target).VisualTree = (System.Windows.FrameworkElementFactory)value; },
4604
GetDelegate = delegate (object target) { return ((System.Windows.Controls.
ControlTemplate
)target).VisualTree; }
6742
Type type = typeof(System.Windows.Controls.
ControlTemplate
);
6744
this.GetXamlType(typeof(System.Windows.Controls.
ControlTemplate
)), // DeclaringType
6751
GetDelegate = delegate (object target) { return ((System.Windows.Controls.
ControlTemplate
)target).Triggers; },
6801
Type type = typeof(System.Windows.Controls.
ControlTemplate
);
6803
this.GetXamlType(typeof(System.Windows.Controls.
ControlTemplate
)), // DeclaringType
6813
SetDelegate = delegate (object target, object value) { ((System.Windows.Controls.
ControlTemplate
)target).TargetType = (System.Type)value; },
6814
GetDelegate = delegate (object target) { return ((System.Windows.Controls.
ControlTemplate
)target).TargetType; }
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
3167
typeof(System.Windows.Controls.
ControlTemplate
),
System\Windows\Markup\DependencyPropertyConverter.cs (1)
186
XamlType controlTemplateXType = schemaContext.GetXamlType(typeof(
ControlTemplate
));
System\Windows\Markup\KnownTypes.cs (1)
5655
case KnownElements.ControlTemplate: t = typeof(System.Windows.Controls.
ControlTemplate
); break;
System.Windows.Controls.Ribbon (6)
Microsoft\Windows\Controls\Ribbon\RibbonControl.cs (2)
128
protected override void OnTemplateChanged(
ControlTemplate
oldTemplate,
ControlTemplate
newTemplate)
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (2)
715
protected override void OnTemplateChanged(
ControlTemplate
oldTemplate,
ControlTemplate
newTemplate)
Microsoft\Windows\Controls\Ribbon\RibbonTextBox.cs (2)
72
protected override void OnTemplateChanged(
ControlTemplate
oldTemplate,
ControlTemplate
newTemplate)