Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Base / System / Windows / Input / TraversalRequest.cs / 1 / TraversalRequest.cs
using System; namespace System.Windows.Input { ////// Represents a request to an element to move focus to another control. /// [Serializable()] public class TraversalRequest { ////// Constructor that requests passing FocusNavigationDirection /// /// Type of focus traversal to perform public TraversalRequest(FocusNavigationDirection focusNavigationDirection) { if (focusNavigationDirection != FocusNavigationDirection.Next && focusNavigationDirection != FocusNavigationDirection.Previous && focusNavigationDirection != FocusNavigationDirection.First && focusNavigationDirection != FocusNavigationDirection.Last && focusNavigationDirection != FocusNavigationDirection.Left && focusNavigationDirection != FocusNavigationDirection.Right && focusNavigationDirection != FocusNavigationDirection.Up && focusNavigationDirection != FocusNavigationDirection.Down) { throw new System.ComponentModel.InvalidEnumArgumentException("focusNavigationDirection", (int)focusNavigationDirection, typeof(FocusNavigationDirection)); } _focusNavigationDirection = focusNavigationDirection; } ////// true if reached the end of child elements that should have focus /// public bool Wrapped { get{return _wrapped;} set{_wrapped = value;} } ////// Determine how to move the focus /// public FocusNavigationDirection FocusNavigationDirection { get { return _focusNavigationDirection; } } private bool _wrapped; private FocusNavigationDirection _focusNavigationDirection; } ////// Determine how to move the focus /// public enum FocusNavigationDirection { ////// Move the focus to the next Control in Tab order. /// Next, ////// Move the focus to the previous Control in Tab order. Shift+Tab /// Previous, ////// Move the focus to the first Control in Tab order inside the subtree. /// First, ////// Move the focus to the last Control in Tab order inside the subtree. /// Last, ////// Move the focus to the left. /// Left, ////// Move the focus to the right. /// Right, ////// Move the focus to the up. /// Up, ////// Move the focus to the down. /// Down, // If you add a new value you should also add a validation check to TraversalRequest constructor } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. using System; namespace System.Windows.Input { ////// Represents a request to an element to move focus to another control. /// [Serializable()] public class TraversalRequest { ////// Constructor that requests passing FocusNavigationDirection /// /// Type of focus traversal to perform public TraversalRequest(FocusNavigationDirection focusNavigationDirection) { if (focusNavigationDirection != FocusNavigationDirection.Next && focusNavigationDirection != FocusNavigationDirection.Previous && focusNavigationDirection != FocusNavigationDirection.First && focusNavigationDirection != FocusNavigationDirection.Last && focusNavigationDirection != FocusNavigationDirection.Left && focusNavigationDirection != FocusNavigationDirection.Right && focusNavigationDirection != FocusNavigationDirection.Up && focusNavigationDirection != FocusNavigationDirection.Down) { throw new System.ComponentModel.InvalidEnumArgumentException("focusNavigationDirection", (int)focusNavigationDirection, typeof(FocusNavigationDirection)); } _focusNavigationDirection = focusNavigationDirection; } ////// true if reached the end of child elements that should have focus /// public bool Wrapped { get{return _wrapped;} set{_wrapped = value;} } ////// Determine how to move the focus /// public FocusNavigationDirection FocusNavigationDirection { get { return _focusNavigationDirection; } } private bool _wrapped; private FocusNavigationDirection _focusNavigationDirection; } ////// Determine how to move the focus /// public enum FocusNavigationDirection { ////// Move the focus to the next Control in Tab order. /// Next, ////// Move the focus to the previous Control in Tab order. Shift+Tab /// Previous, ////// Move the focus to the first Control in Tab order inside the subtree. /// First, ////// Move the focus to the last Control in Tab order inside the subtree. /// Last, ////// Move the focus to the left. /// Left, ////// Move the focus to the right. /// Right, ////// Move the focus to the up. /// Up, ////// Move the focus to the down. /// Down, // If you add a new value you should also add a validation check to TraversalRequest constructor } } // 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
- ParameterToken.cs
- UnionCodeGroup.cs
- FontNameConverter.cs
- CookieProtection.cs
- SafePEFileHandle.cs
- CompilerInfo.cs
- QilScopedVisitor.cs
- PostBackOptions.cs
- GenericUriParser.cs
- ResourcePart.cs
- PropertyRecord.cs
- KnownTypesHelper.cs
- XMLSchema.cs
- TemplateField.cs
- StreamingContext.cs
- CharacterHit.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- Cursors.cs
- DataServiceExpressionVisitor.cs
- SByte.cs
- PackageRelationship.cs
- SqlProvider.cs
- ValueSerializerAttribute.cs
- UserInitiatedNavigationPermission.cs
- AppDomainProtocolHandler.cs
- XhtmlBasicCalendarAdapter.cs
- DataView.cs
- XmlDataDocument.cs
- XamlSerializerUtil.cs
- DataGridToolTip.cs
- Crypto.cs
- OptimisticConcurrencyException.cs
- BindToObject.cs
- WebConfigurationFileMap.cs
- TripleDESCryptoServiceProvider.cs
- XmlNotation.cs
- FileUtil.cs
- COM2PictureConverter.cs
- PreProcessor.cs
- PropertyCondition.cs
- Renderer.cs
- NumberFunctions.cs
- StringDictionaryCodeDomSerializer.cs
- DataGridSortCommandEventArgs.cs
- UnsignedPublishLicense.cs
- UserInitiatedNavigationPermission.cs
- FormatConvertedBitmap.cs
- CustomAttributeSerializer.cs
- IdentitySection.cs
- TargetInvocationException.cs
- BulletedList.cs
- XslTransform.cs
- BamlMapTable.cs
- TaskFileService.cs
- CreateParams.cs
- ChannelToken.cs
- ImageUrlEditor.cs
- InternalsVisibleToAttribute.cs
- AxImporter.cs
- SafeLibraryHandle.cs
- RichTextBoxConstants.cs
- SoapSchemaExporter.cs
- ParameterReplacerVisitor.cs
- CodeDefaultValueExpression.cs
- ServiceOperation.cs
- HtmlFormAdapter.cs
- RelationshipConverter.cs
- SpanIndex.cs
- OledbConnectionStringbuilder.cs
- DetailsViewPagerRow.cs
- Latin1Encoding.cs
- ParsedRoute.cs
- HandledEventArgs.cs
- KeyboardInputProviderAcquireFocusEventArgs.cs
- IntegerValidatorAttribute.cs
- SchemaImporterExtension.cs
- ResourceSet.cs
- UserNamePasswordValidationMode.cs
- ComponentDispatcher.cs
- IntersectQueryOperator.cs
- TemplateControlBuildProvider.cs
- HttpCookie.cs
- BinaryCommonClasses.cs
- SignatureGenerator.cs
- JsonDeserializer.cs
- TimeSpanOrInfiniteValidator.cs
- XmlAttributeOverrides.cs
- CommandTreeTypeHelper.cs
- RemoteWebConfigurationHost.cs
- OperandQuery.cs
- XmlAnyAttributeAttribute.cs
- MetadataArtifactLoaderCompositeFile.cs
- AlignmentYValidation.cs
- RankException.cs
- MenuItemCollection.cs
- WindowsListViewGroupHelper.cs
- ControlBindingsCollection.cs
- TypeUsage.cs
- HtmlLinkAdapter.cs
- EmissiveMaterial.cs