Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Core / CSharp / System / Windows / MouseCaptureWithinProperty.cs / 1 / MouseCaptureWithinProperty.cs
using System; using System.Windows.Input; using MS.Internal.KnownBoxes; namespace System.Windows { ///////////////////////////////////////////////////////////////////////// internal class MouseCaptureWithinProperty : ReverseInheritProperty { ///////////////////////////////////////////////////////////////////// internal MouseCaptureWithinProperty() : base( UIElement.IsMouseCaptureWithinPropertyKey, CoreFlags.IsMouseCaptureWithinCache, CoreFlags.IsMouseCaptureWithinChanged) { } ///////////////////////////////////////////////////////////////////// internal override void FireNotifications(UIElement uie, ContentElement ce, UIElement3D uie3D, bool oldValue) { DependencyPropertyChangedEventArgs args = new DependencyPropertyChangedEventArgs( UIElement.IsMouseCaptureWithinProperty, BooleanBoxes.Box(oldValue), BooleanBoxes.Box(!oldValue)); if (uie != null) { uie.RaiseIsMouseCaptureWithinChanged(args); } else if (ce != null) { ce.RaiseIsMouseCaptureWithinChanged(args); } else if (uie3D != null) { uie3D.RaiseIsMouseCaptureWithinChanged(args); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. using System; using System.Windows.Input; using MS.Internal.KnownBoxes; namespace System.Windows { ///////////////////////////////////////////////////////////////////////// internal class MouseCaptureWithinProperty : ReverseInheritProperty { ///////////////////////////////////////////////////////////////////// internal MouseCaptureWithinProperty() : base( UIElement.IsMouseCaptureWithinPropertyKey, CoreFlags.IsMouseCaptureWithinCache, CoreFlags.IsMouseCaptureWithinChanged) { } ///////////////////////////////////////////////////////////////////// internal override void FireNotifications(UIElement uie, ContentElement ce, UIElement3D uie3D, bool oldValue) { DependencyPropertyChangedEventArgs args = new DependencyPropertyChangedEventArgs( UIElement.IsMouseCaptureWithinProperty, BooleanBoxes.Box(oldValue), BooleanBoxes.Box(!oldValue)); if (uie != null) { uie.RaiseIsMouseCaptureWithinChanged(args); } else if (ce != null) { ce.RaiseIsMouseCaptureWithinChanged(args); } else if (uie3D != null) { uie3D.RaiseIsMouseCaptureWithinChanged(args); } } } } // 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
- PrintingPermissionAttribute.cs
- OrderingExpression.cs
- DataGridViewTextBoxEditingControl.cs
- DesignerSerializationManager.cs
- DataGridViewLinkCell.cs
- TextReturnReader.cs
- DefinitionUpdate.cs
- ListViewCommandEventArgs.cs
- BaseProcessor.cs
- PopupRootAutomationPeer.cs
- ImageInfo.cs
- unsafenativemethodsother.cs
- WebPartPersonalization.cs
- Journaling.cs
- CfgSemanticTag.cs
- XmlDataDocument.cs
- NamespaceListProperty.cs
- OleDbParameter.cs
- CodeArrayIndexerExpression.cs
- CodeNamespaceImportCollection.cs
- CodeNamespaceCollection.cs
- MeshGeometry3D.cs
- Propagator.ExtentPlaceholderCreator.cs
- PerformanceCountersElement.cs
- Page.cs
- PersonalizationStateInfo.cs
- Parser.cs
- SchemaAttDef.cs
- NameValueConfigurationElement.cs
- CookieParameter.cs
- bidPrivateBase.cs
- InputMethodStateTypeInfo.cs
- InstancePersistenceException.cs
- FileStream.cs
- PointHitTestResult.cs
- FixedPageAutomationPeer.cs
- RefreshEventArgs.cs
- TypeUsage.cs
- SqlStream.cs
- PassportPrincipal.cs
- util.cs
- SecondaryIndexList.cs
- XmlSchemaSet.cs
- TrackingProfileCache.cs
- ConfigurationCollectionAttribute.cs
- ReferencedType.cs
- FixedSOMPageConstructor.cs
- serverconfig.cs
- Shape.cs
- Geometry.cs
- HeaderCollection.cs
- EncodingTable.cs
- DecimalConverter.cs
- UIElement3D.cs
- SafeLibraryHandle.cs
- InkPresenter.cs
- NullRuntimeConfig.cs
- DataBinding.cs
- AlternateViewCollection.cs
- SoapRpcMethodAttribute.cs
- FixedSOMElement.cs
- StrokeCollection.cs
- HttpPostedFile.cs
- RSAPKCS1SignatureDeformatter.cs
- MetabaseSettingsIis7.cs
- XmlMtomReader.cs
- ScriptHandlerFactory.cs
- sqlcontext.cs
- ListViewInsertionMark.cs
- XmlSchemaAttributeGroup.cs
- ParameterSubsegment.cs
- LinkButton.cs
- ResizeGrip.cs
- FieldBuilder.cs
- ContactManager.cs
- HashAlgorithm.cs
- EmptyReadOnlyDictionaryInternal.cs
- SecurityUniqueId.cs
- newitemfactory.cs
- FastEncoder.cs
- CellTreeNodeVisitors.cs
- DBDataPermissionAttribute.cs
- XmlObjectSerializer.cs
- SqlDataSourceCommandParser.cs
- Properties.cs
- HelpOperationInvoker.cs
- ErrorsHelper.cs
- HtmlFormWrapper.cs
- ProfileInfo.cs
- unitconverter.cs
- Visual3D.cs
- CredentialCache.cs
- SeparatorAutomationPeer.cs
- BypassElement.cs
- EntityTypeEmitter.cs
- MsdtcWrapper.cs
- FixedSOMLineCollection.cs
- OleDbEnumerator.cs
- FastPropertyAccessor.cs
- ListenerSessionConnection.cs