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
- StickyNoteAnnotations.cs
- SchemaMerger.cs
- ExecutedRoutedEventArgs.cs
- PolyBezierSegment.cs
- SetterBaseCollection.cs
- ConfigXmlDocument.cs
- LongValidator.cs
- SiteMapNodeItemEventArgs.cs
- SymbolType.cs
- UserPrincipalNameElement.cs
- _HeaderInfo.cs
- __ComObject.cs
- EraserBehavior.cs
- WebControlAdapter.cs
- XsdSchemaFileEditor.cs
- XmlFormatExtensionPointAttribute.cs
- StrokeNodeOperations2.cs
- DesignerCategoryAttribute.cs
- NativeActivityMetadata.cs
- TextServicesDisplayAttribute.cs
- TableStyle.cs
- BulletedListEventArgs.cs
- ViewManager.cs
- AuthorizationSection.cs
- DataGridViewCellStyleConverter.cs
- SByteStorage.cs
- AsyncStreamReader.cs
- WebUtil.cs
- EntityCommand.cs
- Gdiplus.cs
- AspNetSynchronizationContext.cs
- ImageUrlEditor.cs
- HttpRequest.cs
- X509ChainElement.cs
- WindowsTitleBar.cs
- ActivationServices.cs
- TemplateComponentConnector.cs
- UnmanagedBitmapWrapper.cs
- DataServiceQuery.cs
- SizeAnimationBase.cs
- BufferModesCollection.cs
- SqlBinder.cs
- EdmType.cs
- SpellerHighlightLayer.cs
- SQLInt32.cs
- SequentialOutput.cs
- ContextMenuStrip.cs
- CachedPathData.cs
- FixedBufferAttribute.cs
- WmlLabelAdapter.cs
- Context.cs
- XsltContext.cs
- X509ClientCertificateAuthenticationElement.cs
- CatalogZoneBase.cs
- MimeReturn.cs
- MarshalDirectiveException.cs
- CompiledIdentityConstraint.cs
- NetNamedPipeBinding.cs
- CombinedTcpChannel.cs
- FixedTextSelectionProcessor.cs
- ArrayElementGridEntry.cs
- XmlWhitespace.cs
- SoapHeaders.cs
- SplayTreeNode.cs
- ModelPropertyCollectionImpl.cs
- CdpEqualityComparer.cs
- SqlWriter.cs
- SystemColorTracker.cs
- SspiWrapper.cs
- ImagingCache.cs
- ToolStripSplitStackLayout.cs
- CheckableControlBaseAdapter.cs
- CallSite.cs
- COM2ExtendedUITypeEditor.cs
- CallContext.cs
- ListViewHitTestInfo.cs
- TypeForwardedToAttribute.cs
- TiffBitmapDecoder.cs
- ContainerParagraph.cs
- MetadataPropertyvalue.cs
- CollectionBuilder.cs
- XsltArgumentList.cs
- OpCellTreeNode.cs
- Vector.cs
- CommandField.cs
- DefaultPrintController.cs
- SqlCommandBuilder.cs
- BaseCodeDomTreeGenerator.cs
- GeneralTransform2DTo3D.cs
- ConstraintConverter.cs
- ReceiveActivityValidator.cs
- FontStyleConverter.cs
- FtpWebRequest.cs
- MaskedTextBox.cs
- DbParameterCollectionHelper.cs
- RadioButton.cs
- SurrogateEncoder.cs
- EasingQuaternionKeyFrame.cs
- Exceptions.cs
- ValidatedControlConverter.cs