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
- JapaneseLunisolarCalendar.cs
- mediapermission.cs
- SignedXml.cs
- DiscardableAttribute.cs
- SortableBindingList.cs
- Typeface.cs
- DesignTimeXamlWriter.cs
- RenderTargetBitmap.cs
- ResourcePart.cs
- ByteConverter.cs
- DataRowView.cs
- AnnotationHighlightLayer.cs
- StructuredType.cs
- MessageContractAttribute.cs
- BackgroundFormatInfo.cs
- ArraySortHelper.cs
- TimeZone.cs
- SemanticKeyElement.cs
- DragEvent.cs
- ManagementObject.cs
- Baml2006ReaderContext.cs
- _SpnDictionary.cs
- AspNetRouteServiceHttpHandler.cs
- InProcStateClientManager.cs
- TextAnchor.cs
- BackgroundWorker.cs
- CodeBinaryOperatorExpression.cs
- KernelTypeValidation.cs
- ZipIOLocalFileDataDescriptor.cs
- Baml2006KeyRecord.cs
- DataObjectAttribute.cs
- ScrollPattern.cs
- DataMemberFieldEditor.cs
- BezierSegment.cs
- CollectionBuilder.cs
- DependencyObjectValidator.cs
- COM2ExtendedTypeConverter.cs
- MetaModel.cs
- PropertyChangedEventArgs.cs
- NumberSubstitution.cs
- PenThreadWorker.cs
- AssemblyBuilderData.cs
- CreateParams.cs
- WorkflowDesigner.cs
- ObjectToken.cs
- TextSelection.cs
- EncodingTable.cs
- StaticExtensionConverter.cs
- Descriptor.cs
- GenericIdentity.cs
- IdentifierCollection.cs
- UriWriter.cs
- RealProxy.cs
- WebServiceParameterData.cs
- DataServiceQuery.cs
- DecimalMinMaxAggregationOperator.cs
- ServerProtocol.cs
- MiniCustomAttributeInfo.cs
- WorkflowCompensationBehavior.cs
- DebugView.cs
- IPPacketInformation.cs
- TemplateField.cs
- TdsEnums.cs
- CoreSwitches.cs
- versioninfo.cs
- DetailsViewInsertedEventArgs.cs
- MemberPathMap.cs
- WasHttpHandlersInstallComponent.cs
- RegistrySecurity.cs
- DataControlPagerLinkButton.cs
- ModelVisual3D.cs
- ClientSideProviderDescription.cs
- AdditionalEntityFunctions.cs
- XmlNodeWriter.cs
- LineSegment.cs
- LiteralControl.cs
- ProcessHostFactoryHelper.cs
- SignHashRequest.cs
- CodePageEncoding.cs
- HtmlListAdapter.cs
- StaticSiteMapProvider.cs
- MetadataExchangeClient.cs
- Char.cs
- MergeFailedEvent.cs
- DecoderFallback.cs
- ScrollEvent.cs
- AssemblyName.cs
- FileResponseElement.cs
- AssociatedControlConverter.cs
- CodeArgumentReferenceExpression.cs
- ExpandCollapsePatternIdentifiers.cs
- ContextMarshalException.cs
- DependencyPropertyConverter.cs
- ComPlusDiagnosticTraceRecords.cs
- DefaultValueConverter.cs
- WindowsAuthenticationEventArgs.cs
- Interfaces.cs
- ScrollBarRenderer.cs
- XamlNamespaceHelper.cs
- SqlDataSourceConfigureFilterForm.cs