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
- SocketException.cs
- TabletDeviceInfo.cs
- EFColumnProvider.cs
- UICuesEvent.cs
- CompletedAsyncResult.cs
- ConstantSlot.cs
- SqlLiftWhereClauses.cs
- LinqToSqlWrapper.cs
- updateconfighost.cs
- DnsEndpointIdentity.cs
- CSharpCodeProvider.cs
- SystemColorTracker.cs
- SafeNativeMethods.cs
- ClientType.cs
- AppDomainFactory.cs
- FixedSOMPageElement.cs
- ComPlusInstanceContextInitializer.cs
- Object.cs
- LambdaCompiler.Generated.cs
- TraceInternal.cs
- EmbeddedMailObjectsCollection.cs
- regiisutil.cs
- CollectionEditorDialog.cs
- SystemFonts.cs
- RegisteredHiddenField.cs
- CountAggregationOperator.cs
- XamlHostingConfiguration.cs
- FontNamesConverter.cs
- HashHelper.cs
- BindingCollection.cs
- ModelService.cs
- ValueSerializerAttribute.cs
- ApplicationFileCodeDomTreeGenerator.cs
- DBCommand.cs
- MemoryStream.cs
- CacheChildrenQuery.cs
- RegistryKey.cs
- SerializationUtilities.cs
- TransformedBitmap.cs
- PersonalizationProviderHelper.cs
- RotateTransform.cs
- CodeRemoveEventStatement.cs
- UserInitiatedNavigationPermission.cs
- RangeContentEnumerator.cs
- AssemblyNameProxy.cs
- ImageField.cs
- LeafCellTreeNode.cs
- DataGridViewButtonColumn.cs
- CanExecuteRoutedEventArgs.cs
- CompoundFileDeflateTransform.cs
- DateBoldEvent.cs
- cookiecollection.cs
- CodeMethodInvokeExpression.cs
- FlatButtonAppearance.cs
- Baml2006SchemaContext.cs
- StoragePropertyMapping.cs
- _UriTypeConverter.cs
- StaticExtension.cs
- StatusBarItemAutomationPeer.cs
- FieldToken.cs
- Size3DValueSerializer.cs
- PriorityItem.cs
- MetadataItemCollectionFactory.cs
- JsonFormatGeneratorStatics.cs
- XmlSchemaAttributeGroupRef.cs
- IPHostEntry.cs
- DNS.cs
- Ipv6Element.cs
- NavigationWindow.cs
- DataObject.cs
- CompilerScope.Storage.cs
- XmlAttributeCollection.cs
- OperationParameterInfo.cs
- XmlDataSourceNodeDescriptor.cs
- SurrogateChar.cs
- ChtmlTextWriter.cs
- TargetParameterCountException.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- FixedSOMContainer.cs
- PaperSource.cs
- WindowsUpDown.cs
- LiteralDesigner.cs
- counter.cs
- AuthorizationSection.cs
- SymbolType.cs
- WmlTextBoxAdapter.cs
- DataObjectAttribute.cs
- XPathSingletonIterator.cs
- ObjectReaderCompiler.cs
- DebuggerAttributes.cs
- PostBackOptions.cs
- CommandLibraryHelper.cs
- PointLightBase.cs
- WindowsGraphics.cs
- OracleCommandBuilder.cs
- MsmqInputMessage.cs
- HttpApplicationFactory.cs
- MemberInitExpression.cs
- LinqDataSource.cs
- SettingsSection.cs