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
- ServiceProviders.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- PathSegment.cs
- Rectangle.cs
- DoubleSumAggregationOperator.cs
- SafeArrayRankMismatchException.cs
- ImageSourceValueSerializer.cs
- TreeNodeClickEventArgs.cs
- Parameter.cs
- XmlNodeComparer.cs
- DataGridViewRowConverter.cs
- PointAnimationUsingPath.cs
- XPathParser.cs
- WebPartUtil.cs
- AttributedMetaModel.cs
- ValidatorCompatibilityHelper.cs
- ProfilePropertyNameValidator.cs
- Command.cs
- SqlStream.cs
- Unit.cs
- CancelRequestedQuery.cs
- ProcessHostConfigUtils.cs
- SqlDataSourceEnumerator.cs
- ColumnResizeAdorner.cs
- AsymmetricSignatureDeformatter.cs
- SafeThemeHandle.cs
- DragDropManager.cs
- XmlAnyAttributeAttribute.cs
- ConfigurationElementCollection.cs
- SchemaNames.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- ApplicationManager.cs
- CardSpacePolicyElement.cs
- Literal.cs
- CreateCardRequest.cs
- TextDecoration.cs
- ProfilePropertySettings.cs
- ValidatedControlConverter.cs
- ACL.cs
- CSharpCodeProvider.cs
- WebBrowserDocumentCompletedEventHandler.cs
- ScopedKnownTypes.cs
- EntityStoreSchemaGenerator.cs
- ResourcesChangeInfo.cs
- FakeModelItemImpl.cs
- RowsCopiedEventArgs.cs
- X509Extension.cs
- SrgsElementList.cs
- Span.cs
- TextRangeAdaptor.cs
- NamedObject.cs
- Variant.cs
- TextDecorationCollection.cs
- XmlCharType.cs
- AssemblyBuilder.cs
- Pkcs7Recipient.cs
- LayoutManager.cs
- SpStreamWrapper.cs
- InvalidCardException.cs
- MultiSelectRootGridEntry.cs
- ColumnClickEvent.cs
- ContractCodeDomInfo.cs
- PerSessionInstanceContextProvider.cs
- Condition.cs
- Tile.cs
- GenerateHelper.cs
- Pen.cs
- XmlConvert.cs
- DataControlLinkButton.cs
- OAVariantLib.cs
- XmlBinaryWriterSession.cs
- DefaultValidator.cs
- SQLInt64.cs
- EncodingTable.cs
- Comparer.cs
- SqlCacheDependency.cs
- DocumentSequence.cs
- ClientSponsor.cs
- DelegateBodyWriter.cs
- DecimalAnimationBase.cs
- ExpressionConverter.cs
- AdornerDecorator.cs
- Double.cs
- User.cs
- DocumentPageViewAutomationPeer.cs
- ILGenerator.cs
- ReaderWriterLockWrapper.cs
- Source.cs
- TcpDuplicateContext.cs
- PrePrepareMethodAttribute.cs
- XmlHierarchyData.cs
- CLSCompliantAttribute.cs
- ControlAdapter.cs
- NTAccount.cs
- StylusButtonEventArgs.cs
- Select.cs
- ProxyFragment.cs
- EventSchemaTraceListener.cs
- AvtEvent.cs
- UnsafeMethods.cs