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
- DragDeltaEventArgs.cs
- MenuEventArgs.cs
- FormViewModeEventArgs.cs
- PropertyChangingEventArgs.cs
- JsonFormatWriterGenerator.cs
- EntityCommandCompilationException.cs
- MouseDevice.cs
- DataBoundControlHelper.cs
- PermissionRequestEvidence.cs
- PeerEndPoint.cs
- DeobfuscatingStream.cs
- OSEnvironmentHelper.cs
- EditorPartCollection.cs
- DataGridItem.cs
- TableLayoutPanelCodeDomSerializer.cs
- Stackframe.cs
- CachedRequestParams.cs
- AnonymousIdentificationSection.cs
- AnimationLayer.cs
- UnsafeNativeMethods.cs
- ToolboxItemImageConverter.cs
- PropertyStore.cs
- XmlBinaryReader.cs
- ArraySegment.cs
- PackageStore.cs
- AssemblyFilter.cs
- BindingsCollection.cs
- sqlinternaltransaction.cs
- CharKeyFrameCollection.cs
- CodeTypeDeclarationCollection.cs
- FlowDocumentPaginator.cs
- BindingCompleteEventArgs.cs
- Graphics.cs
- XmlSchemaComplexType.cs
- SessionStateModule.cs
- SoapFault.cs
- ForwardPositionQuery.cs
- UIAgentMonitor.cs
- DataGridViewCellCancelEventArgs.cs
- DataGridViewTopLeftHeaderCell.cs
- ToolStripKeyboardHandlingService.cs
- XmlNavigatorStack.cs
- TemplateBamlTreeBuilder.cs
- JournalEntryStack.cs
- LineInfo.cs
- _NestedSingleAsyncResult.cs
- RuleInfoComparer.cs
- FontConverter.cs
- Repeater.cs
- AnnouncementEndpointElement.cs
- SchemaImporter.cs
- AuthenticateEventArgs.cs
- CheckBoxRenderer.cs
- Substitution.cs
- ExpressionConverter.cs
- TypeInitializationException.cs
- BrowserTree.cs
- Int64Converter.cs
- WorkflowView.cs
- WindowPatternIdentifiers.cs
- CharacterBufferReference.cs
- UpdatePanelTriggerCollection.cs
- Activator.cs
- StructuralCache.cs
- WebBrowserNavigatedEventHandler.cs
- AutomationProperties.cs
- DataViewManager.cs
- OperationAbortedException.cs
- CellTreeNode.cs
- ByteStack.cs
- TimeSpanMinutesConverter.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- SqlHelper.cs
- NullExtension.cs
- ConstructorArgumentAttribute.cs
- SerialStream.cs
- WinHttpWebProxyFinder.cs
- CompositeTypefaceMetrics.cs
- MultiTrigger.cs
- PropertyMetadata.cs
- UserNamePasswordValidator.cs
- ResourceManagerWrapper.cs
- DataGridViewRowHeaderCell.cs
- AssemblyAttributesGoHere.cs
- ConvertEvent.cs
- WorkflowMessageEventHandler.cs
- ReadOnlyPropertyMetadata.cs
- ContainerFilterService.cs
- AssociationSetEnd.cs
- XmlCompatibilityReader.cs
- TraceSection.cs
- ListChangedEventArgs.cs
- OleDbSchemaGuid.cs
- MatrixValueSerializer.cs
- WebServiceErrorEvent.cs
- GenericArgumentsUpdater.cs
- ProgressBar.cs
- FilterQuery.cs
- ExplicitDiscriminatorMap.cs
- FunctionDefinition.cs