Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Core / CSharp / System / Windows / FocusWithinProperty.cs / 1 / FocusWithinProperty.cs
using System; using System.Windows.Input; using MS.Internal.KnownBoxes; namespace System.Windows { ///////////////////////////////////////////////////////////////////////// internal class FocusWithinProperty : ReverseInheritProperty { ///////////////////////////////////////////////////////////////////// internal FocusWithinProperty() : base( UIElement.IsKeyboardFocusWithinPropertyKey, CoreFlags.IsKeyboardFocusWithinCache, CoreFlags.IsKeyboardFocusWithinChanged) { } ///////////////////////////////////////////////////////////////////// internal override void FireNotifications(UIElement uie, ContentElement ce, UIElement3D uie3D, bool oldValue) { DependencyPropertyChangedEventArgs args = new DependencyPropertyChangedEventArgs( UIElement.IsKeyboardFocusWithinProperty, BooleanBoxes.Box(oldValue), BooleanBoxes.Box(!oldValue)); if (uie != null) { uie.RaiseIsKeyboardFocusWithinChanged(args); } else if (ce != null) { ce.RaiseIsKeyboardFocusWithinChanged(args); } else if (uie3D != null) { uie3D.RaiseIsKeyboardFocusWithinChanged(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 FocusWithinProperty : ReverseInheritProperty { ///////////////////////////////////////////////////////////////////// internal FocusWithinProperty() : base( UIElement.IsKeyboardFocusWithinPropertyKey, CoreFlags.IsKeyboardFocusWithinCache, CoreFlags.IsKeyboardFocusWithinChanged) { } ///////////////////////////////////////////////////////////////////// internal override void FireNotifications(UIElement uie, ContentElement ce, UIElement3D uie3D, bool oldValue) { DependencyPropertyChangedEventArgs args = new DependencyPropertyChangedEventArgs( UIElement.IsKeyboardFocusWithinProperty, BooleanBoxes.Box(oldValue), BooleanBoxes.Box(!oldValue)); if (uie != null) { uie.RaiseIsKeyboardFocusWithinChanged(args); } else if (ce != null) { ce.RaiseIsKeyboardFocusWithinChanged(args); } else if (uie3D != null) { uie3D.RaiseIsKeyboardFocusWithinChanged(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
- SafeEventLogWriteHandle.cs
- DocumentPageViewAutomationPeer.cs
- FusionWrap.cs
- BookmarkList.cs
- HTTPNotFoundHandler.cs
- PagePropertiesChangingEventArgs.cs
- ExpressionPrefixAttribute.cs
- SymLanguageType.cs
- Enlistment.cs
- FrameSecurityDescriptor.cs
- ProviderCollection.cs
- EdgeProfileValidation.cs
- CodeCompiler.cs
- EditorPart.cs
- PackagingUtilities.cs
- DecimalConstantAttribute.cs
- TextModifier.cs
- PeerTransportElement.cs
- NTAccount.cs
- ObfuscationAttribute.cs
- AppSecurityManager.cs
- HttpDebugHandler.cs
- TextRangeBase.cs
- XmlSerializableWriter.cs
- EnumType.cs
- PageOrientation.cs
- SqlDataAdapter.cs
- Model3DCollection.cs
- SecurityVerifiedMessage.cs
- Walker.cs
- SelectionUIService.cs
- _SSPIWrapper.cs
- HttpApplication.cs
- ByteKeyFrameCollection.cs
- DynamicDiscoSearcher.cs
- CellTreeNode.cs
- XamlInt32CollectionSerializer.cs
- CreatingCookieEventArgs.cs
- MouseEventArgs.cs
- GeneralTransform3D.cs
- TrimSurroundingWhitespaceAttribute.cs
- TableLayoutSettingsTypeConverter.cs
- RuleRef.cs
- NamespaceCollection.cs
- GridViewRowEventArgs.cs
- TimeZone.cs
- ResXResourceWriter.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- HttpNamespaceReservationInstallComponent.cs
- ScriptControl.cs
- ScrollableControl.cs
- CompositeFontParser.cs
- WebControlToolBoxItem.cs
- DocumentApplicationJournalEntry.cs
- CircleHotSpot.cs
- DefaultMemberAttribute.cs
- XmlReflectionImporter.cs
- PeerPresenceInfo.cs
- CodeEntryPointMethod.cs
- PersistChildrenAttribute.cs
- NameValueSectionHandler.cs
- DefaultValueMapping.cs
- DefaultConfirmation.cs
- ActiveDocumentEvent.cs
- CryptoConfig.cs
- TextAnchor.cs
- MdiWindowListStrip.cs
- ExceptionHandlerDesigner.cs
- FunctionMappingTranslator.cs
- DoubleCollection.cs
- DefaultHttpHandler.cs
- ClosableStream.cs
- documentsequencetextview.cs
- ProvidePropertyAttribute.cs
- RoutedPropertyChangedEventArgs.cs
- URLAttribute.cs
- CodeIdentifiers.cs
- GcSettings.cs
- CompileXomlTask.cs
- CompleteWizardStep.cs
- AnimationLayer.cs
- DBParameter.cs
- BooleanProjectedSlot.cs
- AtomServiceDocumentSerializer.cs
- NamespaceCollection.cs
- ConnectionProviderAttribute.cs
- WebService.cs
- VersionPair.cs
- ComContractElementCollection.cs
- RequestCachePolicyConverter.cs
- HatchBrush.cs
- TextBlock.cs
- SoapAttributes.cs
- Baml2006ReaderContext.cs
- Win32Native.cs
- ListViewItem.cs
- Type.cs
- ConfigXmlComment.cs
- FontSizeConverter.cs
- SubMenuStyleCollection.cs