5 instantiations of ControlTemplate
PresentationFramework (5)
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
1165
ControlTemplate template = new
ControlTemplate
(typeof(Separator));
src\Framework\System\Windows\Controls\ScrollViewer.cs (1)
2782
template = new
ControlTemplate
(typeof(ScrollViewer));
src\Framework\System\Windows\Controls\Validation.cs (1)
598
ControlTemplate defaultTemplate = new
ControlTemplate
(typeof(Control));
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
3002
bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.
ControlTemplate
(); };
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
1189
case KnownElements.ControlTemplate: o = new System.Windows.Controls.
ControlTemplate
(); break;
77 references to ControlTemplate
PresentationFramework (64)
src\Framework\MS\Internal\Controls\TemplatedAdorner.cs (1)
52
public TemplatedAdorner(UIElement adornedElement,
ControlTemplate
adornerTemplate) : base(adornedElement)
src\Framework\System\Windows\Controls\Control.cs (11)
60
ControlTemplate
defaultValue = (
ControlTemplate
) metadata.DefaultValue;
409
typeof(
ControlTemplate
),
412
(
ControlTemplate
) null, // default value
420
public
ControlTemplate
Template
436
set { _templateCache = (
ControlTemplate
) value; }
442
OnTemplateChanged((
ControlTemplate
)oldTemplate, (
ControlTemplate
)newTemplate);
461
protected virtual void OnTemplateChanged(
ControlTemplate
oldTemplate,
ControlTemplate
newTemplate)
774
private
ControlTemplate
_templateCache;
src\Framework\System\Windows\Controls\DataGrid.cs (5)
680
protected override void OnTemplateChanged(
ControlTemplate
oldTemplate,
ControlTemplate
newTemplate)
921
public
ControlTemplate
RowValidationErrorTemplate
923
get { return (
ControlTemplate
)GetValue(RowValidationErrorTemplateProperty); }
931
DependencyProperty.Register("RowValidationErrorTemplate", typeof(
ControlTemplate
), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowPropertyChanged)));
src\Framework\System\Windows\Controls\DataGridRow.cs (5)
182
protected override void OnTemplateChanged(
ControlTemplate
oldTemplate,
ControlTemplate
newTemplate)
341
public
ControlTemplate
ValidationErrorTemplate
343
get { return (
ControlTemplate
)GetValue(ValidationErrorTemplateProperty); }
351
DependencyProperty.Register("ValidationErrorTemplate", typeof(
ControlTemplate
), typeof(DataGridRow), new FrameworkPropertyMetadata(null, OnNotifyRowPropertyChanged, OnCoerceValidationErrorTemplate));
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
1165
ControlTemplate
template = new ControlTemplate(typeof(Separator));
src\Framework\System\Windows\Controls\Page.cs (10)
79
ControlTemplate
defaultValue = (
ControlTemplate
) metadata.DefaultValue;
522
(
ControlTemplate
) null, // default value
530
public
ControlTemplate
Template
546
set { _templateCache = (
ControlTemplate
)value; }
552
OnTemplateChanged((
ControlTemplate
)oldTemplate, (
ControlTemplate
)newTemplate);
572
ControlTemplate
oldTemplate,
ControlTemplate
newTemplate)
963
private
ControlTemplate
_templateCache;
src\Framework\System\Windows\Controls\PasswordBox.cs (2)
486
protected override void OnTemplateChanged(
ControlTemplate
oldTemplate,
ControlTemplate
newTemplate)
src\Framework\System\Windows\Controls\Primitives\TextBoxBase.cs (2)
1053
protected override void OnTemplateChanged(
ControlTemplate
oldTemplate,
ControlTemplate
newTemplate)
src\Framework\System\Windows\Controls\ScrollViewer.cs (3)
2700
private static
ControlTemplate
CreateDefaultControlTemplate()
2702
ControlTemplate
template = null;
2961
ControlTemplate
template = CreateDefaultControlTemplate();
src\Framework\System\Windows\Controls\StickyNote.cs (2)
556
protected override void OnTemplateChanged(
ControlTemplate
oldTemplate,
ControlTemplate
newTemplate)
src\Framework\System\Windows\Controls\Validation.cs (7)
190
typeof(
ControlTemplate
), typeof(Validation),
200
public static
ControlTemplate
GetErrorTemplate(DependencyObject element)
205
return element.GetValue(ErrorTemplateProperty) as
ControlTemplate
;
210
public static void SetErrorTemplate(DependencyObject element,
ControlTemplate
value)
456
ControlTemplate
validationTemplate = GetErrorTemplate(siteUIElement);
596
private static
ControlTemplate
CreateDefaultErrorTemplate()
598
ControlTemplate
defaultTemplate = new ControlTemplate(typeof(Control));
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
200
case 108: t = () => typeof(
ControlTemplate
); break;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (11)
4328
Type type = typeof(System.Windows.Controls.
ControlTemplate
);
4330
this.GetXamlType(typeof(System.Windows.Controls.
ControlTemplate
)), // DeclaringType
4336
bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Controls.
ControlTemplate
)target).VisualTree = (System.Windows.FrameworkElementFactory)value; };
4337
bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.
ControlTemplate
)target).VisualTree; };
6245
Type type = typeof(System.Windows.Controls.
ControlTemplate
);
6247
this.GetXamlType(typeof(System.Windows.Controls.
ControlTemplate
)), // DeclaringType
6253
bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.
ControlTemplate
)target).Triggers; };
6298
Type type = typeof(System.Windows.Controls.
ControlTemplate
);
6300
this.GetXamlType(typeof(System.Windows.Controls.
ControlTemplate
)), // DeclaringType
6309
bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Controls.
ControlTemplate
)target).TargetType = (System.Type)value; };
6310
bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.
ControlTemplate
)target).TargetType; };
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
3000
typeof(System.Windows.Controls.
ControlTemplate
),
src\Framework\System\Windows\Markup\DependencyPropertyConverter.cs (1)
204
XamlType controlTemplateXType = schemaContext.GetXamlType(typeof(
ControlTemplate
));
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
5652
case KnownElements.ControlTemplate: t = typeof(System.Windows.Controls.
ControlTemplate
); break;
System.Activities.Presentation (13)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\ValueEditors\ChoiceEditor.cs (2)
924
protected override void OnTemplateChanged(
ControlTemplate
oldTemplate,
ControlTemplate
newTemplate)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\PropertyContainer.cs (10)
278
typeof(
ControlTemplate
),
291
public
ControlTemplate
InlineRowTemplate
293
get { return (
ControlTemplate
)this.GetValue(PropertyContainer.InlineRowTemplateProperty); }
335
typeof(
ControlTemplate
),
349
public
ControlTemplate
ExtendedPopupRowTemplate
351
get { return (
ControlTemplate
)this.GetValue(PropertyContainer.ExtendedPopupRowTemplateProperty); }
367
typeof(
ControlTemplate
),
381
public
ControlTemplate
ExtendedPinnedRowTemplate
383
get { return (
ControlTemplate
)this.GetValue(PropertyContainer.ExtendedPinnedRowTemplateProperty); }
744
ControlTemplate
newTemplate = null;
System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (1)
349
ControlTemplate
DefaultRowControlTemplate