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
- Debug.cs
- HtmlMeta.cs
- XmlSerializationReader.cs
- SafeFileHandle.cs
- ServiceErrorHandler.cs
- ClientSideQueueItem.cs
- TdsParserHelperClasses.cs
- DeferredTextReference.cs
- ScaleTransform.cs
- CellTreeNode.cs
- SessionState.cs
- XslNumber.cs
- RectIndependentAnimationStorage.cs
- DrawingGroup.cs
- HttpListenerPrefixCollection.cs
- ListControl.cs
- TreePrinter.cs
- MenuItemBinding.cs
- FreezableDefaultValueFactory.cs
- PagePropertiesChangingEventArgs.cs
- ScrollBarRenderer.cs
- EmissiveMaterial.cs
- RealProxy.cs
- Parser.cs
- TraceHandlerErrorFormatter.cs
- SafeArchiveContext.cs
- BufferBuilder.cs
- ServerValidateEventArgs.cs
- Int16AnimationBase.cs
- PropertyDescriptorGridEntry.cs
- SQLDateTime.cs
- Baml6ConstructorInfo.cs
- DbCommandTree.cs
- SystemException.cs
- wmiprovider.cs
- InlinedAggregationOperator.cs
- ProcessModelSection.cs
- KeyGestureValueSerializer.cs
- DecoderReplacementFallback.cs
- SafeNativeMemoryHandle.cs
- SelectionChangedEventArgs.cs
- FunctionGenerator.cs
- XomlSerializationHelpers.cs
- SmtpReplyReaderFactory.cs
- PermissionAttributes.cs
- RenderOptions.cs
- NavigationFailedEventArgs.cs
- UInt64.cs
- WebPartZoneBase.cs
- ResourcePermissionBase.cs
- PropertyToken.cs
- MetaTableHelper.cs
- CodeTypeMemberCollection.cs
- SchemaDeclBase.cs
- BoundColumn.cs
- _TransmitFileOverlappedAsyncResult.cs
- CodeLabeledStatement.cs
- WorkflowViewManager.cs
- TraceContextRecord.cs
- Filter.cs
- UpdatePanelControlTrigger.cs
- DataTable.cs
- GridViewRowEventArgs.cs
- MasterPageCodeDomTreeGenerator.cs
- Focus.cs
- SortedDictionary.cs
- AnyAllSearchOperator.cs
- ProviderConnectionPointCollection.cs
- FlowDocumentPage.cs
- InternalReceiveMessage.cs
- XmlAttributeOverrides.cs
- ErrorTableItemStyle.cs
- mda.cs
- UInt32Storage.cs
- GuidTagList.cs
- MissingMethodException.cs
- RTLAwareMessageBox.cs
- ScriptReferenceEventArgs.cs
- ButtonColumn.cs
- DataRecordObjectView.cs
- NonSerializedAttribute.cs
- SingleSelectRootGridEntry.cs
- CatalogPartChrome.cs
- EntitySqlQueryState.cs
- LocalFileSettingsProvider.cs
- CodeSpit.cs
- TreeViewImageKeyConverter.cs
- ToolStripSplitStackLayout.cs
- XmlComment.cs
- Bitmap.cs
- OutputCacheProfile.cs
- WebPartCatalogAddVerb.cs
- MailMessage.cs
- FormatPage.cs
- CompareInfo.cs
- _TimerThread.cs
- TextDecorationCollection.cs
- WindowsPen.cs
- HttpDictionary.cs
- QuaternionIndependentAnimationStorage.cs