Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- X509Certificate.cs
- HtmlWindow.cs
- MultiTouchSystemGestureLogic.cs
- BindingManagerDataErrorEventArgs.cs
- SubqueryRules.cs
- XmlHierarchyData.cs
- Constraint.cs
- PasswordRecovery.cs
- OleDbFactory.cs
- Enlistment.cs
- StylusPointPropertyId.cs
- Vector.cs
- HintTextConverter.cs
- XmlSchemaException.cs
- EventSetterHandlerConverter.cs
- ElasticEase.cs
- CompilerParameters.cs
- CodeCommentStatementCollection.cs
- PrimaryKeyTypeConverter.cs
- PublisherIdentityPermission.cs
- Point3DAnimationUsingKeyFrames.cs
- ToolBarButtonClickEvent.cs
- HtmlElementErrorEventArgs.cs
- SubpageParagraph.cs
- TextPattern.cs
- CopyAction.cs
- ReplacementText.cs
- EventData.cs
- TextMetrics.cs
- RbTree.cs
- DiscriminatorMap.cs
- SafeReversePInvokeHandle.cs
- WebServiceErrorEvent.cs
- UnitySerializationHolder.cs
- UnsafePeerToPeerMethods.cs
- XmlElementAttributes.cs
- Site.cs
- _UncName.cs
- Point4D.cs
- X509Logo.cs
- Int64Converter.cs
- IncrementalReadDecoders.cs
- XmlSerializerSection.cs
- AnimationClockResource.cs
- WebPartDesigner.cs
- StyleCollection.cs
- XPathConvert.cs
- OSFeature.cs
- SqlParameterizer.cs
- ReachVisualSerializerAsync.cs
- WinEventTracker.cs
- WebBrowser.cs
- WindowsFont.cs
- CorrelationHandle.cs
- WindowsIPAddress.cs
- WebPartMenuStyle.cs
- JsonByteArrayDataContract.cs
- BuildProvider.cs
- Matrix3DConverter.cs
- SpellerStatusTable.cs
- TimeSpanValidator.cs
- HyperLinkColumn.cs
- NestedContainer.cs
- XPathAncestorIterator.cs
- ResourceReader.cs
- TemplateControl.cs
- SrgsOneOf.cs
- ScriptReference.cs
- ResolveMatches11.cs
- ReadOnlyHierarchicalDataSourceView.cs
- UpdateEventArgs.cs
- CurrentChangingEventArgs.cs
- ResourceCategoryAttribute.cs
- CodeMemberEvent.cs
- TextLine.cs
- OptimalBreakSession.cs
- OpenTypeLayoutCache.cs
- AdjustableArrowCap.cs
- InvalidPrinterException.cs
- Bidi.cs
- WebScriptMetadataMessage.cs
- TextEditorCopyPaste.cs
- Vector3D.cs
- FloaterBaseParaClient.cs
- XsdBuilder.cs
- SystemIPv4InterfaceProperties.cs
- FrameworkReadOnlyPropertyMetadata.cs
- UnsafeNativeMethods.cs
- CopyAction.cs
- GuidelineCollection.cs
- XmlChoiceIdentifierAttribute.cs
- OrderedDictionaryStateHelper.cs
- DataQuery.cs
- Identifier.cs
- ReadOnlyCollectionBase.cs
- PrintDialogException.cs
- XsltSettings.cs
- ProxyAttribute.cs
- BooleanFunctions.cs
- _CommandStream.cs