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
- HashCryptoHandle.cs
- EntitySet.cs
- EventLogPermissionEntryCollection.cs
- WebPartChrome.cs
- XmlAnyAttributeAttribute.cs
- Section.cs
- CodeLinePragma.cs
- DrawingCollection.cs
- SelectedGridItemChangedEvent.cs
- DataKey.cs
- Win32.cs
- GB18030Encoding.cs
- ModelTypeConverter.cs
- PeekCompletedEventArgs.cs
- XPathParser.cs
- TypeBinaryExpression.cs
- FreeFormDesigner.cs
- SqlBinder.cs
- RelOps.cs
- SearchForVirtualItemEventArgs.cs
- uribuilder.cs
- ConsoleEntryPoint.cs
- FrameworkElement.cs
- CounterCreationDataCollection.cs
- KeyedHashAlgorithm.cs
- BitmapFrameEncode.cs
- InternalConfigSettingsFactory.cs
- RolePrincipal.cs
- infer.cs
- ShaderEffect.cs
- BindableAttribute.cs
- RootCodeDomSerializer.cs
- RetriableClipboard.cs
- AddInPipelineAttributes.cs
- ADMembershipProvider.cs
- SQLConvert.cs
- GeneralTransform.cs
- CharStorage.cs
- EventLogTraceListener.cs
- XmlBinaryReader.cs
- DecryptRequest.cs
- EncodingDataItem.cs
- ContextMarshalException.cs
- InstancePersistenceEvent.cs
- ObjectAnimationUsingKeyFrames.cs
- Panel.cs
- WebPartUserCapability.cs
- IdnElement.cs
- CodeComment.cs
- ExpressionLink.cs
- SID.cs
- EnvelopedSignatureTransform.cs
- VirtualPathProvider.cs
- IndexerNameAttribute.cs
- DataGridState.cs
- JpegBitmapDecoder.cs
- WindowsToolbarAsMenu.cs
- JsonUriDataContract.cs
- RC2CryptoServiceProvider.cs
- CodeDomSerializer.cs
- SqlCacheDependencyDatabase.cs
- listviewsubitemcollectioneditor.cs
- PrtCap_Reader.cs
- DefaultTextStoreTextComposition.cs
- BitmapScalingModeValidation.cs
- FixedTextSelectionProcessor.cs
- CubicEase.cs
- LockedBorderGlyph.cs
- RemoteWebConfigurationHostStream.cs
- BroadcastEventHelper.cs
- ButtonBaseAutomationPeer.cs
- ExpandCollapseProviderWrapper.cs
- InlineCollection.cs
- BitConverter.cs
- ColorDialog.cs
- CompilerCollection.cs
- DataBinding.cs
- BasicExpandProvider.cs
- NavigatorInput.cs
- mda.cs
- Vector3DCollectionValueSerializer.cs
- TableLayoutPanelDesigner.cs
- SectionInput.cs
- SingleResultAttribute.cs
- CmsUtils.cs
- Config.cs
- MinimizableAttributeTypeConverter.cs
- CultureInfoConverter.cs
- EntityStoreSchemaFilterEntry.cs
- PrintControllerWithStatusDialog.cs
- CustomGrammar.cs
- OuterGlowBitmapEffect.cs
- LinqDataSourceStatusEventArgs.cs
- PagesSection.cs
- DataGridViewColumn.cs
- SqlBulkCopy.cs
- TabItem.cs
- PartialArray.cs
- BitmapEffectInput.cs
- HtmlInputRadioButton.cs