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
- ObjectDataSourceStatusEventArgs.cs
- UIElementHelper.cs
- RuntimeArgumentHandle.cs
- FlowDocumentPaginator.cs
- errorpatternmatcher.cs
- SQLGuidStorage.cs
- ActivatedMessageQueue.cs
- PrintPreviewControl.cs
- ObjectAnimationUsingKeyFrames.cs
- SerializationInfo.cs
- AggregateNode.cs
- DataGridGeneralPage.cs
- TableCellCollection.cs
- DropTarget.cs
- XmlSchemaProviderAttribute.cs
- EncryptedType.cs
- LinkDescriptor.cs
- ServiceBehaviorAttribute.cs
- COM2EnumConverter.cs
- IndependentlyAnimatedPropertyMetadata.cs
- LabelLiteral.cs
- CodeTypeConstructor.cs
- BaseDataBoundControlDesigner.cs
- XmlSchemaAttributeGroup.cs
- ApplicationInterop.cs
- ConfigurationErrorsException.cs
- EventlogProvider.cs
- PropertyExpression.cs
- SourceItem.cs
- RoleManagerSection.cs
- EtwTrackingBehavior.cs
- ModelItemCollectionImpl.cs
- SatelliteContractVersionAttribute.cs
- ContentDefinition.cs
- Helpers.cs
- MonitorWrapper.cs
- PeerContact.cs
- CodeCatchClause.cs
- ChannelHandler.cs
- ReturnValue.cs
- ListView.cs
- ScrollChrome.cs
- HttpHeaderCollection.cs
- WebBrowserProgressChangedEventHandler.cs
- ConfigPathUtility.cs
- XmlQueryRuntime.cs
- HostingPreferredMapPath.cs
- DecoderReplacementFallback.cs
- JoinCqlBlock.cs
- DiscoveryEndpoint.cs
- SqlDataSourceView.cs
- XmlChildEnumerator.cs
- ProfileProvider.cs
- EntityModelBuildProvider.cs
- HwndKeyboardInputProvider.cs
- URIFormatException.cs
- DataSourceSelectArguments.cs
- SendKeys.cs
- CompilerHelpers.cs
- RegisteredDisposeScript.cs
- Model3DGroup.cs
- CharStorage.cs
- URLString.cs
- LiteralTextContainerControlBuilder.cs
- InputBinder.cs
- SelectedCellsCollection.cs
- RadioButtonRenderer.cs
- FillErrorEventArgs.cs
- XamlStream.cs
- PagesSection.cs
- CopyNamespacesAction.cs
- EventLogPermissionEntryCollection.cs
- RpcCryptoContext.cs
- CqlParser.cs
- PostBackTrigger.cs
- DesignSurfaceCollection.cs
- HtmlTable.cs
- Vector3DAnimationUsingKeyFrames.cs
- PageAsyncTask.cs
- DataServiceHostFactory.cs
- FilterUserControlBase.cs
- NativeMethods.cs
- LockedActivityGlyph.cs
- TemplatedMailWebEventProvider.cs
- MembershipUser.cs
- ActiveXSite.cs
- SystemIPInterfaceStatistics.cs
- UriExt.cs
- HMACSHA512.cs
- DateTimeUtil.cs
- EditorZoneBase.cs
- LeaseManager.cs
- DataGridViewControlCollection.cs
- UnsafeNativeMethods.cs
- WebPartDescription.cs
- TemplateKeyConverter.cs
- SmtpNtlmAuthenticationModule.cs
- AnnotationHighlightLayer.cs
- RepeatButton.cs
- XsltContext.cs