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
- LinearKeyFrames.cs
- HostedHttpTransportManager.cs
- RawAppCommandInputReport.cs
- ExpressionTable.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- DbConnectionPoolCounters.cs
- XmlDocumentType.cs
- ObjectKeyFrameCollection.cs
- BeginEvent.cs
- HttpNamespaceReservationInstallComponent.cs
- TextServicesCompartmentEventSink.cs
- ConfigurationPermission.cs
- SmtpReplyReaderFactory.cs
- SuppressedPackageProperties.cs
- ActivityBuilderHelper.cs
- QilReference.cs
- ipaddressinformationcollection.cs
- SmtpCommands.cs
- ProviderCommandInfoUtils.cs
- EntityDataSourceUtil.cs
- EntityDataSourceContainerNameConverter.cs
- DesignTimeVisibleAttribute.cs
- SecurityException.cs
- CheckBoxAutomationPeer.cs
- SchemaEntity.cs
- EntityDataSourceWrapper.cs
- UpdateCompiler.cs
- ProfilePropertyNameValidator.cs
- WebBrowserContainer.cs
- SettingsProperty.cs
- OrderedDictionary.cs
- DefaultTextStore.cs
- EdmRelationshipRoleAttribute.cs
- FileChangesMonitor.cs
- RegexCapture.cs
- HttpProfileGroupBase.cs
- ReadOnlyDataSource.cs
- XPathArrayIterator.cs
- FlowDocumentView.cs
- IApplicationTrustManager.cs
- CursorConverter.cs
- InvariantComparer.cs
- RoleService.cs
- XamlPathDataSerializer.cs
- NetworkInformationException.cs
- SoapCodeExporter.cs
- FixedTextBuilder.cs
- RadioButtonList.cs
- SystemColors.cs
- EventEntry.cs
- SizeChangedEventArgs.cs
- GridView.cs
- LineServicesRun.cs
- ElementMarkupObject.cs
- VisualTransition.cs
- InvalidAsynchronousStateException.cs
- CountdownEvent.cs
- TraceProvider.cs
- ProgressBarHighlightConverter.cs
- QueryStringParameter.cs
- OutputCacheSettings.cs
- CircleHotSpot.cs
- Thread.cs
- HotCommands.cs
- StreamWithDictionary.cs
- EncoderExceptionFallback.cs
- GraphicsPathIterator.cs
- HttpVersion.cs
- VisualProxy.cs
- UITypeEditor.cs
- NameObjectCollectionBase.cs
- QilXmlReader.cs
- WebPartExportVerb.cs
- DataViewSetting.cs
- ExpandCollapseProviderWrapper.cs
- ProviderConnectionPoint.cs
- ParameterModifier.cs
- UnaryNode.cs
- ProxySimple.cs
- RegionData.cs
- Scripts.cs
- ReflectionUtil.cs
- TypeConverterValueSerializer.cs
- CodeEntryPointMethod.cs
- SystemIPv4InterfaceProperties.cs
- FreeFormDragDropManager.cs
- XmlIlTypeHelper.cs
- InternalEnumValidatorAttribute.cs
- FragmentQueryKB.cs
- SqlConnectionManager.cs
- MatrixKeyFrameCollection.cs
- WizardStepBase.cs
- DataService.cs
- SwitchLevelAttribute.cs
- SpeechEvent.cs
- XmlParserContext.cs
- NetworkStream.cs
- EventLogger.cs
- Context.cs
- ClipboardProcessor.cs