Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- SpanIndex.cs
- DescendantOverDescendantQuery.cs
- NumberAction.cs
- ListBox.cs
- CapacityStreamGeometryContext.cs
- PersonalizationState.cs
- ClientTargetCollection.cs
- JsonDataContract.cs
- Int32.cs
- Converter.cs
- RenderData.cs
- VideoDrawing.cs
- WrappedIUnknown.cs
- MailWebEventProvider.cs
- ServicesUtilities.cs
- SSmlParser.cs
- ConfigDefinitionUpdates.cs
- DataGridViewRowConverter.cs
- DataGridViewTopLeftHeaderCell.cs
- TextTreeInsertUndoUnit.cs
- WindowsClaimSet.cs
- Bookmark.cs
- ImageClickEventArgs.cs
- TypeLibConverter.cs
- DebugViewWriter.cs
- XmlQueryContext.cs
- ReverseQueryOperator.cs
- UInt16Converter.cs
- PenContext.cs
- QueryableDataSourceEditData.cs
- Style.cs
- BitmapDecoder.cs
- InternalBufferOverflowException.cs
- MergablePropertyAttribute.cs
- TextDecorationUnitValidation.cs
- FormViewModeEventArgs.cs
- FileStream.cs
- SchemaAttDef.cs
- CancellationHandlerDesigner.cs
- CacheMemory.cs
- ResourceWriter.cs
- ObjectItemAssemblyLoader.cs
- Console.cs
- DataGridColumnsPage.cs
- ListControl.cs
- DataGridColumnStyleMappingNameEditor.cs
- UnsafeNativeMethods.cs
- TextAction.cs
- AssemblyInfo.cs
- WebHostUnsafeNativeMethods.cs
- ObjectParameterCollection.cs
- BitmapEffectDrawingContextState.cs
- FlowPosition.cs
- CompiledXpathExpr.cs
- EntityDesignerDataSourceView.cs
- SelectionHighlightInfo.cs
- HandlerWithFactory.cs
- TextTreeRootNode.cs
- StateFinalizationActivity.cs
- CheckedListBox.cs
- PositiveTimeSpanValidatorAttribute.cs
- SecurityUniqueId.cs
- DateTimeOffset.cs
- PathNode.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- XamlToRtfWriter.cs
- FileDialog.cs
- WeakReferenceEnumerator.cs
- PackWebResponse.cs
- DataObjectFieldAttribute.cs
- EncodedStreamFactory.cs
- StringSource.cs
- ToolTipService.cs
- HttpResponseHeader.cs
- UserControlParser.cs
- Type.cs
- DataSourceView.cs
- Event.cs
- HtmlEncodedRawTextWriter.cs
- WebPartChrome.cs
- BuilderInfo.cs
- Script.cs
- ConfigurationManager.cs
- ProcessingInstructionAction.cs
- ClrPerspective.cs
- MenuItemStyleCollection.cs
- HwndSubclass.cs
- WebRequestModuleElementCollection.cs
- DateTimeConstantAttribute.cs
- DataRow.cs
- SystemIcmpV4Statistics.cs
- MultipleViewProviderWrapper.cs
- EventListener.cs
- SolidBrush.cs
- BaseParaClient.cs
- NetPeerTcpBindingCollectionElement.cs
- InfoCardKeyedHashAlgorithm.cs
- EmptyStringExpandableObjectConverter.cs
- DataControlFieldHeaderCell.cs
- SetterTriggerConditionValueConverter.cs