Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / System / Windows / TemplateBindingExpression.cs / 1 / 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
- ToolStripScrollButton.cs
- ExpressionLexer.cs
- RestHandler.cs
- XmlWellformedWriterHelpers.cs
- ContentWrapperAttribute.cs
- XmlSchemaExporter.cs
- SharedStatics.cs
- PageScaling.cs
- AssemblyBuilder.cs
- FacetDescriptionElement.cs
- TargetFrameworkAttribute.cs
- ResourceDisplayNameAttribute.cs
- MemberPath.cs
- ViewManagerAttribute.cs
- ConfigurationFileMap.cs
- SecurityPermission.cs
- ResourceReferenceExpression.cs
- Model3D.cs
- WebBrowserHelper.cs
- SqlTransaction.cs
- TextView.cs
- DbModificationCommandTree.cs
- FontStretches.cs
- DocumentApplication.cs
- LogicalTreeHelper.cs
- XmlToDatasetMap.cs
- TableAdapterManagerNameHandler.cs
- HttpRequestCacheValidator.cs
- TextServicesLoader.cs
- DebugView.cs
- SoapAttributeAttribute.cs
- InternalDuplexBindingElement.cs
- MethodSignatureGenerator.cs
- HttpResponse.cs
- Decimal.cs
- objectquery_tresulttype.cs
- ManagementNamedValueCollection.cs
- HtmlTableRowCollection.cs
- Calendar.cs
- TextAdaptor.cs
- VisualTarget.cs
- HtmlTableCellCollection.cs
- SEHException.cs
- MSAANativeProvider.cs
- StorageBasedPackageProperties.cs
- DockAndAnchorLayout.cs
- EditingCoordinator.cs
- ClientEventManager.cs
- NameTable.cs
- DeviceSpecificDesigner.cs
- StreamReader.cs
- IsolatedStorageException.cs
- METAHEADER.cs
- GridViewEditEventArgs.cs
- ActiveXContainer.cs
- EmptyCollection.cs
- Empty.cs
- HostSecurityManager.cs
- COMException.cs
- TextRangeEdit.cs
- CheckBoxStandardAdapter.cs
- BitmapDecoder.cs
- HttpResponseHeader.cs
- ColumnResult.cs
- CryptoApi.cs
- StateFinalizationActivity.cs
- ColumnResult.cs
- GeneralTransform.cs
- RightNameExpirationInfoPair.cs
- TextElementCollectionHelper.cs
- Int32Storage.cs
- TabPage.cs
- TextBoxAutomationPeer.cs
- XmlWriter.cs
- DataSysAttribute.cs
- WebProxyScriptElement.cs
- X509ServiceCertificateAuthentication.cs
- CompareInfo.cs
- ProtocolsConfiguration.cs
- SingleTagSectionHandler.cs
- Types.cs
- DiscoveryOperationContextExtension.cs
- WebBrowsableAttribute.cs
- RealProxy.cs
- DataGridLinkButton.cs
- FileUtil.cs
- Mutex.cs
- SiteMapSection.cs
- UnsafeNativeMethods.cs
- AutomationEventArgs.cs
- CodeSnippetCompileUnit.cs
- CFStream.cs
- baseaxisquery.cs
- PageRanges.cs
- InternalConfigRoot.cs
- EventDescriptor.cs
- AudienceUriMode.cs
- NullReferenceException.cs
- Win32SafeHandles.cs
- WinInetCache.cs