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
- ResourcePart.cs
- AutomationEvent.cs
- ManagementObject.cs
- CompilerInfo.cs
- ClonableStack.cs
- TableRowCollection.cs
- PackageRelationship.cs
- RightsDocument.cs
- InvokePattern.cs
- ResourceSet.cs
- ImageSource.cs
- RelationalExpressions.cs
- StreamAsIStream.cs
- ItemsPresenter.cs
- IERequestCache.cs
- DataTableMapping.cs
- ManipulationInertiaStartingEventArgs.cs
- XmlSchemaException.cs
- ProviderIncompatibleException.cs
- ByValueEqualityComparer.cs
- CutCopyPasteHelper.cs
- OrderByLifter.cs
- Configuration.cs
- GradientStopCollection.cs
- InfoCardCryptoHelper.cs
- ExpressionPrefixAttribute.cs
- TableRow.cs
- ForAllOperator.cs
- HtmlProps.cs
- AggregateException.cs
- SByte.cs
- HtmlTableCellCollection.cs
- OledbConnectionStringbuilder.cs
- UxThemeWrapper.cs
- RbTree.cs
- AssemblyCacheEntry.cs
- CodeParameterDeclarationExpressionCollection.cs
- WindowsSspiNegotiation.cs
- GifBitmapEncoder.cs
- VSWCFServiceContractGenerator.cs
- PersonalizationState.cs
- SqlBooleanizer.cs
- Page.cs
- BackStopAuthenticationModule.cs
- StylusShape.cs
- WebPartConnectionsConfigureVerb.cs
- DynamicPropertyHolder.cs
- XmlRawWriter.cs
- _SslState.cs
- DataFormats.cs
- JsonQueryStringConverter.cs
- ToolStripSettings.cs
- PageClientProxyGenerator.cs
- SqlInternalConnection.cs
- PrefixHandle.cs
- Scheduling.cs
- SelectingProviderEventArgs.cs
- datacache.cs
- TimeoutHelper.cs
- OutOfProcStateClientManager.cs
- IntegerValidatorAttribute.cs
- ProgressBarBrushConverter.cs
- CompoundFileStreamReference.cs
- AdapterUtil.cs
- ScrollEventArgs.cs
- RegisteredHiddenField.cs
- SelectionUIService.cs
- mediaeventshelper.cs
- DatasetMethodGenerator.cs
- AssemblyInfo.cs
- WebEventCodes.cs
- dataSvcMapFileLoader.cs
- TextProperties.cs
- CodeCastExpression.cs
- RewritingPass.cs
- SecurityPolicySection.cs
- UnsafeNativeMethods.cs
- ListInitExpression.cs
- SinglePageViewer.cs
- MetafileHeaderWmf.cs
- CompatibleComparer.cs
- XPathDocumentIterator.cs
- ContainerControl.cs
- UserControlBuildProvider.cs
- RTTrackingProfile.cs
- XmlHierarchyData.cs
- SimpleHandlerBuildProvider.cs
- WebPartCollection.cs
- TextEffectCollection.cs
- PolicyManager.cs
- ZipIOLocalFileDataDescriptor.cs
- DirectionalLight.cs
- altserialization.cs
- SelectorAutomationPeer.cs
- ParserHooks.cs
- ClientScriptManager.cs
- LayoutTable.cs
- DataListAutoFormat.cs
- LinqDataSourceStatusEventArgs.cs
- EndpointAddress10.cs