Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / FocusWithinProperty.cs / 1305600 / 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
- ObjectAnimationUsingKeyFrames.cs
- ToolStripItemImageRenderEventArgs.cs
- PropertyNames.cs
- WindowsScrollBar.cs
- designeractionbehavior.cs
- InvalidAsynchronousStateException.cs
- WebPartManagerInternals.cs
- SrgsElementFactory.cs
- TracingConnection.cs
- ZoneButton.cs
- OdbcEnvironmentHandle.cs
- ClassHandlersStore.cs
- EntityPropertyMappingAttribute.cs
- ControlIdConverter.cs
- SHA256.cs
- SecurityElement.cs
- ProbeMatchesCD1.cs
- CookieProtection.cs
- AsymmetricCryptoHandle.cs
- GacUtil.cs
- InstancePersistenceCommand.cs
- SessionIDManager.cs
- RijndaelCryptoServiceProvider.cs
- FileUtil.cs
- MediaPlayerState.cs
- BrowserTree.cs
- PrintPreviewDialog.cs
- TextTreeDeleteContentUndoUnit.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- CopyNamespacesAction.cs
- NullableDoubleSumAggregationOperator.cs
- DataGridCellClipboardEventArgs.cs
- HwndSource.cs
- SettingsAttributes.cs
- GeneralTransform3D.cs
- Int64Converter.cs
- DesignTimeTemplateParser.cs
- WebPartVerb.cs
- ConfigUtil.cs
- OdbcFactory.cs
- ControlAdapter.cs
- ObsoleteAttribute.cs
- X509Certificate.cs
- SqlConnection.cs
- SingleStorage.cs
- XmlException.cs
- EventDescriptorCollection.cs
- RsaSecurityToken.cs
- DataSourceExpression.cs
- GroupBoxAutomationPeer.cs
- Polygon.cs
- NegationPusher.cs
- AuthenticationConfig.cs
- XmlSiteMapProvider.cs
- PackagePartCollection.cs
- WebPartCollection.cs
- EdmFunctions.cs
- WindowsListViewSubItem.cs
- CurrencyManager.cs
- NamespaceList.cs
- ConstraintStruct.cs
- _UriSyntax.cs
- SecurityUtils.cs
- Type.cs
- TypeBinaryExpression.cs
- AllMembershipCondition.cs
- TableRow.cs
- hwndwrapper.cs
- StringResourceManager.cs
- ContentFilePart.cs
- IdentityNotMappedException.cs
- DoubleLinkListEnumerator.cs
- HttpProtocolReflector.cs
- Util.cs
- KeyValueSerializer.cs
- RotateTransform.cs
- SQLBoolean.cs
- StringUtil.cs
- CommonObjectSecurity.cs
- UInt32.cs
- CompensationExtension.cs
- IntegrationExceptionEventArgs.cs
- WorkflowRuntimeSection.cs
- BinHexEncoder.cs
- DecoderNLS.cs
- StaticSiteMapProvider.cs
- DesignerCategoryAttribute.cs
- RequestCachePolicyConverter.cs
- SafeProcessHandle.cs
- CodeFieldReferenceExpression.cs
- WebControlsSection.cs
- WebPartCatalogAddVerb.cs
- InkCollectionBehavior.cs
- AssociationTypeEmitter.cs
- XmlEnumAttribute.cs
- TextClipboardData.cs
- TrackBar.cs
- ResizeGrip.cs
- RequestContext.cs
- SystemThemeKey.cs