Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / TemplateBindingExpression.cs / 1305600 / TemplateBindingExpression.cs
/****************************************************************************\ * * File: TemplateBindingExpression.cs * * Expression to represent a TemplateBindingExtension during editing of a * template. * * Copyright (C) 2005 by Microsoft Corporation. All rights reserved. * \***************************************************************************/ using System; using System.ComponentModel; using System.Windows; using System.Windows.Data; using System.Windows.Markup; namespace System.Windows { ////// A TemplateBinding is used in templates (e.g. ControlTemplate). When the content of /// a template is instantiated for inspection, the template bindings are represented with /// a TemplateBindingExpression. (In this case, the expression returns the property's default /// value.) /// [TypeConverter(typeof(TemplateBindingExpressionConverter))] public class TemplateBindingExpression : Expression { private TemplateBindingExtension _templateBindingExtension; internal TemplateBindingExpression( TemplateBindingExtension templateBindingExtension ) { _templateBindingExtension = templateBindingExtension; } ////// Constructor for TemplateBindingExpression /// public TemplateBindingExtension TemplateBindingExtension { get { return _templateBindingExtension; } } ////// Called to evaluate the Expression value /// /// DependencyObject being queried /// Property being queried ///Computed value. Default (of the target) if unavailable. internal override object GetValue(DependencyObject d, DependencyProperty dp) { return dp.GetDefaultValue(d.DependencyObjectType); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WebPartVerbsEventArgs.cs
- XamlWriter.cs
- UseAttributeSetsAction.cs
- IListConverters.cs
- ConsumerConnectionPointCollection.cs
- BooleanStorage.cs
- InvalidPrinterException.cs
- _FixedSizeReader.cs
- Zone.cs
- TdsEnums.cs
- RelationshipDetailsCollection.cs
- InputProcessorProfiles.cs
- SiblingIterators.cs
- DependencySource.cs
- BinaryReader.cs
- ConfigXmlDocument.cs
- MaskInputRejectedEventArgs.cs
- SurrogateEncoder.cs
- ProfileSettingsCollection.cs
- ContainerParaClient.cs
- ChtmlImageAdapter.cs
- __Filters.cs
- HtmlToClrEventProxy.cs
- ProgressBar.cs
- XamlBrushSerializer.cs
- FontSourceCollection.cs
- ToolboxControl.cs
- ContentType.cs
- x509utils.cs
- PopupEventArgs.cs
- TargetParameterCountException.cs
- ExpressionNode.cs
- PathFigureCollection.cs
- SchemaImporterExtensionElement.cs
- MappingMetadataHelper.cs
- Figure.cs
- ConfigurationManagerInternal.cs
- QuadraticBezierSegment.cs
- SchemaNamespaceManager.cs
- SQLBinary.cs
- FamilyMapCollection.cs
- _ListenerRequestStream.cs
- AssertSection.cs
- InlinedAggregationOperatorEnumerator.cs
- InputMethodStateChangeEventArgs.cs
- StylusLogic.cs
- DataGridViewCellStyle.cs
- StackBuilderSink.cs
- HostAdapter.cs
- SharedUtils.cs
- XamlLoadErrorInfo.cs
- EdgeProfileValidation.cs
- SerialErrors.cs
- DurableInstance.cs
- CheckBoxAutomationPeer.cs
- COMException.cs
- CheckBox.cs
- SystemIcons.cs
- SizeChangedInfo.cs
- ResolvedKeyFrameEntry.cs
- DataGridCell.cs
- InlineObject.cs
- Int32AnimationBase.cs
- CriticalExceptions.cs
- TextServicesContext.cs
- ImplicitInputBrush.cs
- ScalarConstant.cs
- XamlDesignerSerializationManager.cs
- ValueSerializer.cs
- CommandEventArgs.cs
- StylusDownEventArgs.cs
- LineInfo.cs
- ConnectionStringsExpressionEditor.cs
- RawStylusInput.cs
- ToolBarButton.cs
- Resources.Designer.cs
- ChangePassword.cs
- HostedAspNetEnvironment.cs
- DataBoundControlAdapter.cs
- ConsoleCancelEventArgs.cs
- RenderingBiasValidation.cs
- WebBrowserPermission.cs
- TransactedReceiveScope.cs
- DelegateBodyWriter.cs
- Registry.cs
- DbModificationClause.cs
- AttachmentCollection.cs
- Automation.cs
- BaseInfoTable.cs
- PnrpPermission.cs
- TemplateXamlParser.cs
- TextEditorSelection.cs
- Command.cs
- SQlBooleanStorage.cs
- TextDecorationCollection.cs
- ParameterToken.cs
- mda.cs
- DataGridViewRowConverter.cs
- XmlWriter.cs
- _NetRes.cs