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
- XhtmlBasicFormAdapter.cs
- HttpResponseInternalWrapper.cs
- SystemWebCachingSectionGroup.cs
- FastEncoder.cs
- FtpWebRequest.cs
- WeakReference.cs
- MissingMemberException.cs
- GradientStop.cs
- TransformerInfo.cs
- IPAddress.cs
- Dictionary.cs
- ExecutionPropertyManager.cs
- MatrixTransform3D.cs
- UnescapedXmlDiagnosticData.cs
- BigInt.cs
- ObjectComplexPropertyMapping.cs
- MeasurementDCInfo.cs
- SpeechSeg.cs
- SoapExtensionReflector.cs
- ResourceReader.cs
- SmtpMail.cs
- DiscoveryViaBehavior.cs
- StringToken.cs
- MemberListBinding.cs
- CustomCredentialPolicy.cs
- TreeViewImageKeyConverter.cs
- ProfileService.cs
- InstanceDataCollection.cs
- PropertyMetadata.cs
- MimeMultiPart.cs
- StrongName.cs
- DocumentSchemaValidator.cs
- Int16Converter.cs
- _ListenerRequestStream.cs
- OutputCacheSection.cs
- Compiler.cs
- FastEncoderWindow.cs
- ServiceOperationParameter.cs
- RenderData.cs
- ToolStripOverflowButton.cs
- Convert.cs
- Vertex.cs
- XPathDocumentNavigator.cs
- SessionEndingEventArgs.cs
- ConsumerConnectionPoint.cs
- StringStorage.cs
- ConstructorExpr.cs
- HttpModuleAction.cs
- TextContainerChangedEventArgs.cs
- SoapIncludeAttribute.cs
- TableRowCollection.cs
- SchemaImporter.cs
- AllMembershipCondition.cs
- XpsTokenContext.cs
- MembershipUser.cs
- PerfCounterSection.cs
- _Connection.cs
- WebPartTracker.cs
- SingleAnimationUsingKeyFrames.cs
- XmlSchemaSimpleContent.cs
- Rect3DValueSerializer.cs
- CharUnicodeInfo.cs
- AttachInfo.cs
- ZipIORawDataFileBlock.cs
- WSDualHttpBindingCollectionElement.cs
- NativeMethods.cs
- Parameter.cs
- CodeMemberMethod.cs
- PackageProperties.cs
- LinkLabel.cs
- backend.cs
- PasswordPropertyTextAttribute.cs
- assertwrapper.cs
- XmlSchemaInferenceException.cs
- WindowsAuthenticationEventArgs.cs
- GlyphRun.cs
- AuthenticodeSignatureInformation.cs
- ContentElement.cs
- ValidatedControlConverter.cs
- StringValidatorAttribute.cs
- DWriteFactory.cs
- SQLUtility.cs
- StylusTip.cs
- SmiXetterAccessMap.cs
- RootBrowserWindowAutomationPeer.cs
- TCPClient.cs
- X509Certificate2.cs
- ReceiveContext.cs
- ObjectCacheHost.cs
- SpecularMaterial.cs
- CmsInterop.cs
- Comparer.cs
- XsltInput.cs
- TextAction.cs
- ZoneButton.cs
- SmtpClient.cs
- CommandHelper.cs
- ElementAction.cs
- KeyFrames.cs
- GatewayIPAddressInformationCollection.cs