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
- RelationshipEnd.cs
- SoapObjectWriter.cs
- XmlTextWriter.cs
- SortableBindingList.cs
- MenuItemCollection.cs
- RemoveStoryboard.cs
- MatrixTransform.cs
- UnsafeNativeMethods.cs
- RoutedEventArgs.cs
- ConfigXmlWhitespace.cs
- SmiEventSink_DeferedProcessing.cs
- GB18030Encoding.cs
- PerformanceCounterPermission.cs
- SQLInt32.cs
- InternalConfigRoot.cs
- XmlQueryOutput.cs
- WebBrowserDocumentCompletedEventHandler.cs
- PropertyPathWorker.cs
- ResourcesGenerator.cs
- UIElement3D.cs
- dsa.cs
- _NegotiateClient.cs
- RTLAwareMessageBox.cs
- VerificationAttribute.cs
- LayoutTableCell.cs
- AssemblyNameEqualityComparer.cs
- RightsManagementUser.cs
- TreeView.cs
- EntityDesignerUtils.cs
- COM2FontConverter.cs
- BindingCollection.cs
- SmiMetaDataProperty.cs
- AppDomainEvidenceFactory.cs
- ProfileService.cs
- ClockController.cs
- Propagator.cs
- SystemWebSectionGroup.cs
- ActivityDesigner.cs
- OracleColumn.cs
- UdpContractFilterBehavior.cs
- DocumentGrid.cs
- ButtonFlatAdapter.cs
- XPathExpr.cs
- AppearanceEditorPart.cs
- RolePrincipal.cs
- Logging.cs
- ApplicationActivator.cs
- DrawingDrawingContext.cs
- HttpFileCollection.cs
- GraphicsPath.cs
- HeaderCollection.cs
- ArrangedElement.cs
- StatusBar.cs
- XamlClipboardData.cs
- CategoryGridEntry.cs
- OutArgumentConverter.cs
- AutomationProperties.cs
- X509Extension.cs
- sqlstateclientmanager.cs
- CellTreeNodeVisitors.cs
- PhysicalAddress.cs
- JsonSerializer.cs
- EncryptedPackageFilter.cs
- HttpProcessUtility.cs
- SymbolMethod.cs
- BaseTemplateCodeDomTreeGenerator.cs
- XmlBindingWorker.cs
- FlowDecision.cs
- DataGridViewButtonColumn.cs
- XamlTreeBuilder.cs
- GridViewRowEventArgs.cs
- EnvelopedSignatureTransform.cs
- DataGridViewCellMouseEventArgs.cs
- DatatypeImplementation.cs
- XmlSchemaSequence.cs
- VirtualDirectoryMappingCollection.cs
- SectionVisual.cs
- DBCSCodePageEncoding.cs
- MexTcpBindingElement.cs
- HtmlInputHidden.cs
- PropertyConverter.cs
- DataGridViewComboBoxEditingControl.cs
- ObjectQuery_EntitySqlExtensions.cs
- CodeSnippetTypeMember.cs
- Int32KeyFrameCollection.cs
- ClientCultureInfo.cs
- ZipPackagePart.cs
- Rfc2898DeriveBytes.cs
- SQLInt16Storage.cs
- EventLogRecord.cs
- XsdCachingReader.cs
- XmlILAnnotation.cs
- ClientRolePrincipal.cs
- dbdatarecord.cs
- ClientUtils.cs
- InternalConfigRoot.cs
- SizeF.cs
- FrameworkTemplate.cs
- CompModSwitches.cs
- FrameworkRichTextComposition.cs