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
- hresults.cs
- TogglePatternIdentifiers.cs
- SqlNodeAnnotation.cs
- SwitchAttribute.cs
- LinqDataSourceSelectEventArgs.cs
- SuspendDesigner.cs
- NoClickablePointException.cs
- AccessDataSourceView.cs
- ButtonPopupAdapter.cs
- ValidationManager.cs
- ColumnPropertiesGroup.cs
- QueryReaderSettings.cs
- EntityProviderFactory.cs
- Material.cs
- DbInsertCommandTree.cs
- XmlSchemaObjectCollection.cs
- XmlRootAttribute.cs
- ConfigDefinitionUpdates.cs
- ResourceProviderFactory.cs
- ResourceDictionary.cs
- metrodevice.cs
- DataGridItem.cs
- IBuiltInEvidence.cs
- BodyGlyph.cs
- VisualStyleTypesAndProperties.cs
- StickyNoteAnnotations.cs
- UserNamePasswordValidator.cs
- HttpProcessUtility.cs
- RoutingSection.cs
- TextBox.cs
- FixedElement.cs
- TrackingQuery.cs
- XPathAncestorQuery.cs
- PipelineModuleStepContainer.cs
- ResourceExpressionBuilder.cs
- XhtmlBasicTextViewAdapter.cs
- TemplatedWizardStep.cs
- BuildProviderCollection.cs
- SqlException.cs
- MessageFilterTable.cs
- SQLSingle.cs
- ComboBoxDesigner.cs
- WorkflowQueue.cs
- DefaultWorkflowTransactionService.cs
- Stacktrace.cs
- ObjectDisposedException.cs
- Color.cs
- CardSpaceSelector.cs
- String.cs
- TypeConverterHelper.cs
- AutoGeneratedField.cs
- ArrayListCollectionBase.cs
- CodeDOMProvider.cs
- ToggleButton.cs
- AppDomainUnloadedException.cs
- KerberosReceiverSecurityToken.cs
- IisTraceWebEventProvider.cs
- WeakReferenceList.cs
- MenuItemStyle.cs
- GlyphTypeface.cs
- PageContentAsyncResult.cs
- TypeRestriction.cs
- dataobject.cs
- ChildTable.cs
- PropertyDescriptorGridEntry.cs
- UrlPath.cs
- InvalidPipelineStoreException.cs
- InheritanceRules.cs
- Bits.cs
- WebPartEditorCancelVerb.cs
- HyperLinkColumn.cs
- AutoGeneratedFieldProperties.cs
- CompleteWizardStep.cs
- GroupedContextMenuStrip.cs
- HostingEnvironmentWrapper.cs
- CallSite.cs
- AsymmetricSignatureFormatter.cs
- InterleavedZipPartStream.cs
- PageContentCollection.cs
- SurrogateSelector.cs
- LicenseContext.cs
- HtmlAnchor.cs
- HopperCache.cs
- GridViewPageEventArgs.cs
- AssociationEndMember.cs
- httpserverutility.cs
- PrimitiveXmlSerializers.cs
- FigureParaClient.cs
- SafeFindHandle.cs
- SqlDuplicator.cs
- NetworkStream.cs
- CombinedGeometry.cs
- InstanceNotReadyException.cs
- Timer.cs
- HttpApplication.cs
- XmlWriter.cs
- UnauthorizedAccessException.cs
- PtsHost.cs
- GridLengthConverter.cs
- TabletDevice.cs