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
- JsonFormatGeneratorStatics.cs
- CheckBox.cs
- DataGridViewAutoSizeModeEventArgs.cs
- PolyQuadraticBezierSegment.cs
- Rule.cs
- ConfigurationSectionCollection.cs
- ConsoleKeyInfo.cs
- HtmlInputPassword.cs
- PersonalizationProvider.cs
- DataGridRow.cs
- IisTraceListener.cs
- RowsCopiedEventArgs.cs
- DefaultWorkflowLoaderService.cs
- CodeNamespaceCollection.cs
- DomainUpDown.cs
- UserControl.cs
- designeractionlistschangedeventargs.cs
- ExpressionBindingCollection.cs
- WebPageTraceListener.cs
- TextTreeInsertUndoUnit.cs
- TextServicesContext.cs
- InternalUserCancelledException.cs
- ByteAnimationBase.cs
- Timer.cs
- Parallel.cs
- VectorAnimation.cs
- BitmapScalingModeValidation.cs
- PlaceHolder.cs
- FormViewPagerRow.cs
- NestedContainer.cs
- UnsafeNativeMethods.cs
- IisTraceListener.cs
- FlowDocumentFormatter.cs
- CollectionType.cs
- ServiceOperationDetailViewControl.cs
- EntityDataSourceDesigner.cs
- RectKeyFrameCollection.cs
- BitmapSourceSafeMILHandle.cs
- CollectionChangeEventArgs.cs
- ADMembershipUser.cs
- BinaryFormatterWriter.cs
- SharedPersonalizationStateInfo.cs
- ExceptionHelpers.cs
- WebControlParameterProxy.cs
- CodeNamespace.cs
- ArglessEventHandlerProxy.cs
- WebPartCollection.cs
- BitmapEffectGroup.cs
- StorageRoot.cs
- Rights.cs
- SecurityException.cs
- VarRefManager.cs
- ScriptingSectionGroup.cs
- TemplateInstanceAttribute.cs
- RenderingBiasValidation.cs
- WebGetAttribute.cs
- mongolianshape.cs
- HostedImpersonationContext.cs
- SafeCoTaskMem.cs
- FunctionImportElement.cs
- SatelliteContractVersionAttribute.cs
- FaultDescription.cs
- InputBinder.cs
- ManualWorkflowSchedulerService.cs
- BasicViewGenerator.cs
- FixedPageProcessor.cs
- StringAnimationUsingKeyFrames.cs
- UIElementParagraph.cs
- DatePicker.cs
- DataServices.cs
- DockAndAnchorLayout.cs
- diagnosticsswitches.cs
- ProofTokenCryptoHandle.cs
- RNGCryptoServiceProvider.cs
- MatrixAnimationUsingKeyFrames.cs
- AccessedThroughPropertyAttribute.cs
- DbConnectionPoolOptions.cs
- Environment.cs
- MasterPageBuildProvider.cs
- AdornerHitTestResult.cs
- XmlElementCollection.cs
- Transform3D.cs
- CommandLibraryHelper.cs
- Timer.cs
- WebPartCollection.cs
- Binding.cs
- LogFlushAsyncResult.cs
- TextServicesCompartmentEventSink.cs
- TabControlCancelEvent.cs
- HelpOperationInvoker.cs
- MapPathBasedVirtualPathProvider.cs
- UserControlAutomationPeer.cs
- Single.cs
- CheckBoxBaseAdapter.cs
- NavigationProperty.cs
- BindingBase.cs
- SmtpClient.cs
- XmlUtil.cs
- StorageModelBuildProvider.cs
- BinaryConverter.cs