Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- MarkupExtensionSerializer.cs
- TypefaceMetricsCache.cs
- TableCellAutomationPeer.cs
- SecureUICommand.cs
- PersonalizationStateInfoCollection.cs
- EnterpriseServicesHelper.cs
- Font.cs
- HitTestWithGeometryDrawingContextWalker.cs
- NameScope.cs
- InitializationEventAttribute.cs
- IIS7WorkerRequest.cs
- ClientOperation.cs
- Variable.cs
- TableRowCollection.cs
- NamedPipeChannelFactory.cs
- QueryStringParameter.cs
- ProfileServiceManager.cs
- WebServiceResponse.cs
- xmlglyphRunInfo.cs
- EmptyQuery.cs
- TypeLoadException.cs
- PenThread.cs
- HttpServerVarsCollection.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- ScrollPattern.cs
- DecoderFallback.cs
- CacheMemory.cs
- AccessibleObject.cs
- ShaderEffect.cs
- XmlSchemas.cs
- LogReservationCollection.cs
- CheckableControlBaseAdapter.cs
- RadioButtonStandardAdapter.cs
- DataGridViewRowCancelEventArgs.cs
- CheckBoxField.cs
- RecordsAffectedEventArgs.cs
- DateTimeConstantAttribute.cs
- RootProjectionNode.cs
- EventDescriptorCollection.cs
- CommandManager.cs
- AsyncCodeActivityContext.cs
- RawKeyboardInputReport.cs
- BuildResultCache.cs
- XmlQueryRuntime.cs
- ObjectHelper.cs
- ParallelTimeline.cs
- BoolLiteral.cs
- CompressedStack.cs
- OciLobLocator.cs
- HGlobalSafeHandle.cs
- RuleProcessor.cs
- StackBuilderSink.cs
- FormatException.cs
- HistoryEventArgs.cs
- DataBoundControlAdapter.cs
- RelationshipNavigation.cs
- WsatEtwTraceListener.cs
- Vertex.cs
- LinkArea.cs
- WSFederationHttpSecurityElement.cs
- DesignTimeParseData.cs
- LinqToSqlWrapper.cs
- DBCSCodePageEncoding.cs
- DrawingContextWalker.cs
- GAC.cs
- Stopwatch.cs
- SettingsAttributes.cs
- BitArray.cs
- PeerCustomResolverElement.cs
- IndexOutOfRangeException.cs
- EmptyEnumerator.cs
- BatchServiceHost.cs
- Misc.cs
- AutomationPropertyInfo.cs
- KnownIds.cs
- TriggerCollection.cs
- PixelFormats.cs
- StoreItemCollection.Loader.cs
- DataError.cs
- FacetDescriptionElement.cs
- SignatureToken.cs
- MembershipUser.cs
- RenderData.cs
- TreeViewEvent.cs
- SqlCommandBuilder.cs
- RequestValidator.cs
- ReverseInheritProperty.cs
- StringConverter.cs
- DataGridViewColumn.cs
- ActivationServices.cs
- TextSelection.cs
- ButtonBaseAutomationPeer.cs
- AppDomainManager.cs
- WebPartPersonalization.cs
- BasicExpandProvider.cs
- DBNull.cs
- UnsafeNativeMethods.cs
- PersonalizationProviderHelper.cs
- DataSetSchema.cs
- ValueTypeFieldReference.cs