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
- BitmapFrameEncode.cs
- FixedFlowMap.cs
- XmlUtil.cs
- SignatureGenerator.cs
- MetadataArtifactLoaderCompositeResource.cs
- CultureSpecificCharacterBufferRange.cs
- AttributeCollection.cs
- XmlSerializerObjectSerializer.cs
- KeyNotFoundException.cs
- VisualStyleTypesAndProperties.cs
- ObjectDataSourceSelectingEventArgs.cs
- KnownTypesProvider.cs
- SqlClientWrapperSmiStreamChars.cs
- WebDescriptionAttribute.cs
- UnsafeNativeMethodsPenimc.cs
- XmlCustomFormatter.cs
- ServerValidateEventArgs.cs
- precedingsibling.cs
- GeneralTransform2DTo3D.cs
- WebPartConnectionsDisconnectVerb.cs
- AutoResizedEvent.cs
- diagnosticsswitches.cs
- ApplicationDirectory.cs
- WebPartZoneCollection.cs
- PageContent.cs
- ConnectionPointCookie.cs
- Win32KeyboardDevice.cs
- IndexedString.cs
- Line.cs
- OdbcConnectionOpen.cs
- WebPartTransformerCollection.cs
- PatternMatcher.cs
- Literal.cs
- InvalidPrinterException.cs
- MergeLocalizationDirectives.cs
- SymmetricAlgorithm.cs
- ParenthesizePropertyNameAttribute.cs
- SQLStringStorage.cs
- FontStyles.cs
- WpfWebRequestHelper.cs
- ConfigXmlWhitespace.cs
- ReflectEventDescriptor.cs
- SQLUtility.cs
- RangeValueProviderWrapper.cs
- Win32Interop.cs
- PageThemeParser.cs
- IteratorDescriptor.cs
- WhitespaceSignificantCollectionAttribute.cs
- WebSysDescriptionAttribute.cs
- UInt16Converter.cs
- Metafile.cs
- BaseTemplateCodeDomTreeGenerator.cs
- BamlReader.cs
- EntityDataSourceMemberPath.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- StretchValidation.cs
- CookieParameter.cs
- ExpandSegmentCollection.cs
- FilterException.cs
- BindingManagerDataErrorEventArgs.cs
- TransformerInfoCollection.cs
- TableDetailsRow.cs
- TextDecorationCollection.cs
- Cursors.cs
- AuthenticationConfig.cs
- HandledEventArgs.cs
- ProvideValueServiceProvider.cs
- StringBuilder.cs
- FileIOPermission.cs
- TextStore.cs
- DoWhile.cs
- CategoryAttribute.cs
- ActivityDefaults.cs
- HtmlLink.cs
- FlowNode.cs
- GPPOINT.cs
- DbConnectionClosed.cs
- Substitution.cs
- HttpListenerRequest.cs
- ElementNotEnabledException.cs
- PropertyMappingExceptionEventArgs.cs
- EdmItemError.cs
- ValueType.cs
- RefreshPropertiesAttribute.cs
- ParagraphVisual.cs
- SqlDeflator.cs
- EntityClassGenerator.cs
- HttpConfigurationContext.cs
- IisTraceListener.cs
- TaskFormBase.cs
- ToolboxItemSnapLineBehavior.cs
- FigureParaClient.cs
- TextTreeDeleteContentUndoUnit.cs
- BadImageFormatException.cs
- SoapParser.cs
- FixedTextBuilder.cs
- QueryCursorEventArgs.cs
- DebuggerAttributes.cs
- OracleBFile.cs
- EnumType.cs