Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / MS / Internal / Data / BindingExpressionUncommonField.cs / 1305600 / BindingExpressionUncommonField.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // Description: Defines an UncommonField of type BindingExpression. // //--------------------------------------------------------------------------- using System; using System.Windows; using System.Windows.Data; namespace MS.Internal.Data { ////// An UncommonField whose type is BindingExpression. /// internal class BindingExpressionUncommonField : UncommonField{ internal new void SetValue(DependencyObject instance, BindingExpression bindingExpr) { base.SetValue(instance, bindingExpr); bindingExpr.Attach(instance); } internal new void ClearValue(DependencyObject instance) { BindingExpression bindingExpr = GetValue(instance); if (bindingExpr != null) { bindingExpr.Detach(); } base.ClearValue(instance); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // // // Copyright (C) Microsoft Corporation. All rights reserved. // // // Description: Defines an UncommonField of type BindingExpression. // //--------------------------------------------------------------------------- using System; using System.Windows; using System.Windows.Data; namespace MS.Internal.Data { ////// An UncommonField whose type is BindingExpression. /// internal class BindingExpressionUncommonField : UncommonField{ internal new void SetValue(DependencyObject instance, BindingExpression bindingExpr) { base.SetValue(instance, bindingExpr); bindingExpr.Attach(instance); } internal new void ClearValue(DependencyObject instance) { BindingExpression bindingExpr = GetValue(instance); if (bindingExpr != null) { bindingExpr.Detach(); } base.ClearValue(instance); } } } // 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
- SafeSerializationManager.cs
- XPathNodeInfoAtom.cs
- ListComponentEditorPage.cs
- CodeStatementCollection.cs
- PointConverter.cs
- Rules.cs
- OutOfProcStateClientManager.cs
- PrefixQName.cs
- AnnotationAuthorChangedEventArgs.cs
- PointCollection.cs
- SudsWriter.cs
- Internal.cs
- GeneralTransform3DGroup.cs
- DbDataRecord.cs
- XmlQueryCardinality.cs
- SAPIEngineTypes.cs
- TreeWalkHelper.cs
- SelectingProviderEventArgs.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- WindowsImpersonationContext.cs
- TreeSet.cs
- HtmlDocument.cs
- DataSourceConverter.cs
- StopRoutingHandler.cs
- BaseResourcesBuildProvider.cs
- FrameworkPropertyMetadata.cs
- UnauthorizedAccessException.cs
- SmtpReplyReader.cs
- ItemContainerProviderWrapper.cs
- Int64Converter.cs
- BooleanFunctions.cs
- OdbcHandle.cs
- ScriptingSectionGroup.cs
- EdmSchemaAttribute.cs
- Vector3DCollectionValueSerializer.cs
- TableItemStyle.cs
- StrokeDescriptor.cs
- FormViewDeletedEventArgs.cs
- TypeUnloadedException.cs
- DragDeltaEventArgs.cs
- HttpListenerResponse.cs
- OleDbConnectionInternal.cs
- ControlParameter.cs
- MatrixAnimationBase.cs
- RegisterResponseInfo.cs
- EnumerableCollectionView.cs
- DataBinding.cs
- DataGridView.cs
- AbstractSvcMapFileLoader.cs
- WriteFileContext.cs
- MessageHeader.cs
- RawStylusActions.cs
- DataGridViewColumn.cs
- wgx_sdk_version.cs
- DetailsViewDesigner.cs
- DependencyProperty.cs
- BaseTransportHeaders.cs
- OperationAbortedException.cs
- OperatorExpressions.cs
- ToolStripDesignerAvailabilityAttribute.cs
- Rfc2898DeriveBytes.cs
- SiteMapNodeCollection.cs
- Transform.cs
- ActivityValidator.cs
- XMLSyntaxException.cs
- StringFunctions.cs
- ComponentRenameEvent.cs
- SHA256.cs
- ConstructorNeedsTagAttribute.cs
- ScriptResourceInfo.cs
- MergeFailedEvent.cs
- JsonFormatReaderGenerator.cs
- ToolboxItemFilterAttribute.cs
- SystemIPInterfaceProperties.cs
- DrawingGroup.cs
- Size3D.cs
- SecurityRuntime.cs
- CookielessHelper.cs
- DataGridViewMethods.cs
- InputDevice.cs
- InstanceHandleReference.cs
- XmlWrappingReader.cs
- GeometryCombineModeValidation.cs
- XMLDiffLoader.cs
- BinaryConverter.cs
- QilCloneVisitor.cs
- HandleCollector.cs
- EndPoint.cs
- Line.cs
- HttpProfileGroupBase.cs
- EntityCommandCompilationException.cs
- TimeSpan.cs
- mongolianshape.cs
- NavigationPropertyAccessor.cs
- ControlEvent.cs
- NumericUpDown.cs
- GridViewCommandEventArgs.cs
- SqlExpander.cs
- XmlTextWriter.cs
- ServiceHttpModule.cs