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
- CodeCatchClauseCollection.cs
- ListSourceHelper.cs
- CodeValidator.cs
- _ListenerResponseStream.cs
- CompiledQuery.cs
- QueryOperationResponseOfT.cs
- XPathMessageContext.cs
- MethodToken.cs
- ping.cs
- indexingfiltermarshaler.cs
- Profiler.cs
- SizeFConverter.cs
- SplineKeyFrames.cs
- GenerateTemporaryAssemblyTask.cs
- InputLanguageSource.cs
- CDSsyncETWBCLProvider.cs
- Vertex.cs
- UnsafeNativeMethods.cs
- TextContainerHelper.cs
- PhysicalAddress.cs
- RectangleHotSpot.cs
- WebMessageEncoderFactory.cs
- basenumberconverter.cs
- CopyCodeAction.cs
- WorkflowTransactionOptions.cs
- counter.cs
- ReadOnlyNameValueCollection.cs
- LinkedResource.cs
- Visitors.cs
- CodeNamespace.cs
- CodeExpressionStatement.cs
- DataGridViewTextBoxCell.cs
- WebPageTraceListener.cs
- ByteStack.cs
- SqlColumnizer.cs
- XamlSerializerUtil.cs
- OrderedHashRepartitionStream.cs
- HitTestWithPointDrawingContextWalker.cs
- PerspectiveCamera.cs
- DelayedRegex.cs
- HyperLinkDataBindingHandler.cs
- CompositeActivityDesigner.cs
- NativeRightsManagementAPIsStructures.cs
- TokenCreationParameter.cs
- Propagator.cs
- WindowsSlider.cs
- ScaleTransform3D.cs
- Geometry.cs
- GlobalEventManager.cs
- WebPartCollection.cs
- TypeSemantics.cs
- ExtenderProvidedPropertyAttribute.cs
- shaper.cs
- XmlKeywords.cs
- SourceInterpreter.cs
- UnsafeNativeMethods.cs
- SchemaDeclBase.cs
- NotImplementedException.cs
- SpinWait.cs
- SelfIssuedAuthRSAPKCS1SignatureFormatter.cs
- SerializationInfo.cs
- SoapSchemaMember.cs
- LineGeometry.cs
- DataPagerFieldCommandEventArgs.cs
- HttpListener.cs
- PartialCachingAttribute.cs
- ParameterEditorUserControl.cs
- TraceData.cs
- XMLUtil.cs
- SystemIPAddressInformation.cs
- XsltOutput.cs
- EntityParameterCollection.cs
- XmlNamespaceDeclarationsAttribute.cs
- ProfileGroupSettingsCollection.cs
- KeyManager.cs
- XhtmlMobileTextWriter.cs
- Rotation3DAnimation.cs
- HostProtectionPermission.cs
- RolePrincipal.cs
- CompilerGlobalScopeAttribute.cs
- HMACMD5.cs
- NonClientArea.cs
- ExpandSegment.cs
- SymbolMethod.cs
- PersianCalendar.cs
- CatalogPartCollection.cs
- CqlWriter.cs
- ReadOnlyObservableCollection.cs
- DeferredReference.cs
- ContractListAdapter.cs
- _SSPISessionCache.cs
- PreviewPrintController.cs
- DelegatedStream.cs
- MatrixAnimationUsingPath.cs
- LocalValueEnumerator.cs
- WindowsComboBox.cs
- AsymmetricSignatureDeformatter.cs
- TabControlCancelEvent.cs
- ModelEditingScope.cs
- InputScopeNameConverter.cs