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
- InputScopeAttribute.cs
- CommandField.cs
- KeyConstraint.cs
- ObjectDataSourceEventArgs.cs
- ScriptServiceAttribute.cs
- ToolStripManager.cs
- ToolStripScrollButton.cs
- ExternalCalls.cs
- PolicyUnit.cs
- ChannelBuilder.cs
- ScriptingAuthenticationServiceSection.cs
- DataError.cs
- Trace.cs
- ServiceDesigner.xaml.cs
- AspNetPartialTrustHelpers.cs
- DataBindingList.cs
- SessionState.cs
- ButtonBaseAutomationPeer.cs
- ExpressionCopier.cs
- AccessedThroughPropertyAttribute.cs
- HiddenField.cs
- Int32.cs
- HistoryEventArgs.cs
- TemplateFactory.cs
- ExceptionWrapper.cs
- WebBrowserHelper.cs
- Attributes.cs
- Win32SafeHandles.cs
- DelegatingHeader.cs
- ResourceAttributes.cs
- OracleEncoding.cs
- TCEAdapterGenerator.cs
- SliderAutomationPeer.cs
- InputElement.cs
- grammarelement.cs
- MetafileHeaderWmf.cs
- XmlObjectSerializerWriteContextComplex.cs
- AssociationSetMetadata.cs
- Visitor.cs
- WebConvert.cs
- SharingService.cs
- FullTextBreakpoint.cs
- Helper.cs
- TextContainerChangedEventArgs.cs
- ZoneLinkButton.cs
- CodeDOMUtility.cs
- Scheduler.cs
- SqlProviderServices.cs
- DockPatternIdentifiers.cs
- SymLanguageType.cs
- OutputWindow.cs
- GridItemCollection.cs
- RelationshipEndCollection.cs
- SafeTimerHandle.cs
- ActiveDocumentEvent.cs
- TreeBuilderBamlTranslator.cs
- GPPOINT.cs
- ComboBoxAutomationPeer.cs
- DrawingCollection.cs
- NameHandler.cs
- LifetimeServices.cs
- MessageDecoder.cs
- SBCSCodePageEncoding.cs
- BuildTopDownAttribute.cs
- WorkflowRuntimeSection.cs
- CompareInfo.cs
- CollectionExtensions.cs
- LinkArea.cs
- SmtpReplyReader.cs
- Unit.cs
- parserscommon.cs
- RotateTransform.cs
- ToolStripLocationCancelEventArgs.cs
- SqlWebEventProvider.cs
- OuterGlowBitmapEffect.cs
- DataGridViewAutoSizeModeEventArgs.cs
- SafeNativeMethods.cs
- GZipDecoder.cs
- ZipIOCentralDirectoryFileHeader.cs
- DataKeyArray.cs
- PropertyDescriptorComparer.cs
- QilDataSource.cs
- RegexGroupCollection.cs
- UpdateExpressionVisitor.cs
- RichTextBox.cs
- CommandBinding.cs
- HttpWebRequest.cs
- __Error.cs
- MatrixUtil.cs
- IntermediatePolicyValidator.cs
- DataGridViewElement.cs
- UrlUtility.cs
- Label.cs
- UnsignedPublishLicense.cs
- EncoderParameters.cs
- FixedBufferAttribute.cs
- TaskDesigner.cs
- HttpPostedFile.cs
- ConsumerConnectionPointCollection.cs
- PropertyTabAttribute.cs