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
- DataGridViewCellValueEventArgs.cs
- ArrayEditor.cs
- CalculatedColumn.cs
- Stack.cs
- DocumentsTrace.cs
- MdiWindowListStrip.cs
- SqlUtils.cs
- PassportPrincipal.cs
- ResumeStoryboard.cs
- ValidateNames.cs
- Random.cs
- WindowsScroll.cs
- FileDialogCustomPlacesCollection.cs
- HitTestParameters3D.cs
- TdsParserHelperClasses.cs
- ProcessHostMapPath.cs
- ThumbAutomationPeer.cs
- EventLogPermission.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- ImageCodecInfo.cs
- RequestCachePolicy.cs
- DataException.cs
- TextRenderer.cs
- DataProviderNameConverter.cs
- MediaContext.cs
- PrintPreviewControl.cs
- TypeValidationEventArgs.cs
- NameValueConfigurationElement.cs
- SortKey.cs
- HelpProvider.cs
- DSACryptoServiceProvider.cs
- Int32KeyFrameCollection.cs
- CompModSwitches.cs
- CornerRadius.cs
- DebugHandleTracker.cs
- ProviderSettings.cs
- XmlUTF8TextWriter.cs
- Message.cs
- InheritablePropertyChangeInfo.cs
- ApplicationSettingsBase.cs
- Keywords.cs
- MouseActionValueSerializer.cs
- AsnEncodedData.cs
- Point3DCollectionConverter.cs
- TableCellAutomationPeer.cs
- TableProviderWrapper.cs
- TableChangeProcessor.cs
- XamlReader.cs
- SessionViewState.cs
- ThumbAutomationPeer.cs
- ExtensionFile.cs
- DecoderNLS.cs
- Misc.cs
- UIPermission.cs
- TableParagraph.cs
- CaseInsensitiveComparer.cs
- AlgoModule.cs
- ToolStripContainer.cs
- Binding.cs
- XmlSchemaExporter.cs
- CreateParams.cs
- DispatcherSynchronizationContext.cs
- ToolStripDropDownClosingEventArgs.cs
- NameNode.cs
- OpenFileDialog.cs
- WindowsPen.cs
- CodeDirectoryCompiler.cs
- Util.cs
- RadioButtonStandardAdapter.cs
- WebPartUserCapability.cs
- WhitespaceRule.cs
- MergeFailedEvent.cs
- ScrollData.cs
- InternalPermissions.cs
- WSHttpBinding.cs
- SystemIPv6InterfaceProperties.cs
- WpfWebRequestHelper.cs
- CodeStatement.cs
- ArithmeticLiteral.cs
- SkipStoryboardToFill.cs
- OpCellTreeNode.cs
- Byte.cs
- DataGridViewImageColumn.cs
- AudioFileOut.cs
- OrderPreservingPipeliningMergeHelper.cs
- PEFileEvidenceFactory.cs
- SessionStateUtil.cs
- StandardToolWindows.cs
- Page.cs
- DesigntimeLicenseContextSerializer.cs
- CacheOutputQuery.cs
- ObjectStateManagerMetadata.cs
- UInt16Converter.cs
- CopyAction.cs
- CheckBoxDesigner.cs
- WebDisplayNameAttribute.cs
- RsaSecurityKey.cs
- WebPartAuthorizationEventArgs.cs
- SecurityState.cs
- StylusTip.cs