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
- ProgressBarHighlightConverter.cs
- GridView.cs
- DrawingContextWalker.cs
- BulletedListDesigner.cs
- BitmapEffectCollection.cs
- CancellationTokenRegistration.cs
- SoapAttributeAttribute.cs
- Size.cs
- RecordManager.cs
- HeaderedContentControl.cs
- ContentPresenter.cs
- HtmlTableRow.cs
- ResXResourceWriter.cs
- BuildResultCache.cs
- StrokeNode.cs
- Compiler.cs
- AppLevelCompilationSectionCache.cs
- DtrList.cs
- LabelLiteral.cs
- ConnectionManagementSection.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- Single.cs
- ZoomingMessageFilter.cs
- FixedSchema.cs
- ContentType.cs
- _HTTPDateParse.cs
- FastPropertyAccessor.cs
- MessageSecurityTokenVersion.cs
- XmlConvert.cs
- RelationshipNavigation.cs
- DBParameter.cs
- backend.cs
- Int64AnimationUsingKeyFrames.cs
- ToggleButton.cs
- WinFormsSpinner.cs
- PopOutPanel.cs
- EnumBuilder.cs
- GeometryModel3D.cs
- ControlCachePolicy.cs
- LogicalExpr.cs
- SwitchLevelAttribute.cs
- EventManager.cs
- _DynamicWinsockMethods.cs
- TableRowGroupCollection.cs
- SocketElement.cs
- BitmapEffectInput.cs
- MessageFormatterConverter.cs
- HttpSessionStateWrapper.cs
- TypographyProperties.cs
- DependencyPropertyConverter.cs
- NullableLongMinMaxAggregationOperator.cs
- HtmlGenericControl.cs
- QilUnary.cs
- CollectionMarkupSerializer.cs
- TouchPoint.cs
- ApplicationFileParser.cs
- RepeaterItemEventArgs.cs
- WebPartDisplayModeCollection.cs
- ObjectTag.cs
- FormsAuthenticationEventArgs.cs
- ControlTemplate.cs
- WmlValidationSummaryAdapter.cs
- TimestampInformation.cs
- XmlDeclaration.cs
- DataServiceEntityAttribute.cs
- WindowsAuthenticationModule.cs
- MethodBody.cs
- DataGridViewCheckBoxColumn.cs
- ElapsedEventArgs.cs
- GorillaCodec.cs
- BCLDebug.cs
- CheckBoxBaseAdapter.cs
- TypeExtensionConverter.cs
- QuaternionConverter.cs
- ResourceDefaultValueAttribute.cs
- EntityDataSourceEntitySetNameItem.cs
- StylusPointDescription.cs
- FixedSOMSemanticBox.cs
- WriteFileContext.cs
- BatchWriter.cs
- Base64Decoder.cs
- DescendentsWalkerBase.cs
- SafeBitVector32.cs
- SqlAliasesReferenced.cs
- XamlStream.cs
- _AutoWebProxyScriptEngine.cs
- MsmqIntegrationElement.cs
- PlainXmlWriter.cs
- SigningProgress.cs
- CategoryNameCollection.cs
- ProgressBarBrushConverter.cs
- StackBuilderSink.cs
- ContentPresenter.cs
- SetterBase.cs
- KnownColorTable.cs
- CalculatedColumn.cs
- SoapDocumentServiceAttribute.cs
- WebBrowserPermission.cs
- ConstantProjectedSlot.cs
- NamedElement.cs