Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Base / System / Windows / Input / TraversalRequest.cs / 1305600 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EncoderReplacementFallback.cs
- QueryAccessibilityHelpEvent.cs
- MemberInfoSerializationHolder.cs
- FrameworkElementFactory.cs
- SubclassTypeValidator.cs
- CheckableControlBaseAdapter.cs
- TracedNativeMethods.cs
- ConstraintCollection.cs
- SamlSecurityTokenAuthenticator.cs
- WizardForm.cs
- SaveFileDialog.cs
- MatrixAnimationBase.cs
- HebrewCalendar.cs
- OleDbTransaction.cs
- XsltQilFactory.cs
- ColorPalette.cs
- TriggerCollection.cs
- EntityParameterCollection.cs
- Soap.cs
- XmlEncoding.cs
- TextViewSelectionProcessor.cs
- precedingsibling.cs
- DeflateStream.cs
- Literal.cs
- AutomationPatternInfo.cs
- GcSettings.cs
- PropertyInfoSet.cs
- ResourceContainer.cs
- System.Data.OracleClient_BID.cs
- EdmProviderManifest.cs
- GetWinFXPath.cs
- SaveFileDialog.cs
- Monitor.cs
- SplashScreenNativeMethods.cs
- RowType.cs
- Table.cs
- FileLevelControlBuilderAttribute.cs
- SourceLineInfo.cs
- XMLSyntaxException.cs
- Label.cs
- HitTestFilterBehavior.cs
- MarkupCompiler.cs
- OrderedDictionary.cs
- XmlAtomicValue.cs
- SoapReflectionImporter.cs
- WindowsListViewItemStartMenu.cs
- WindowsListViewSubItem.cs
- BulletedList.cs
- PropertyTab.cs
- SafeLibraryHandle.cs
- Cursors.cs
- Hex.cs
- SqlUserDefinedAggregateAttribute.cs
- DataConnectionHelper.cs
- DateTimeOffset.cs
- HiddenFieldDesigner.cs
- Compiler.cs
- UrlAuthFailedErrorFormatter.cs
- ModelMemberCollection.cs
- EmptyStringExpandableObjectConverter.cs
- DeleteHelper.cs
- IImplicitResourceProvider.cs
- ObjectDataSourceFilteringEventArgs.cs
- PrincipalPermission.cs
- LiteralControl.cs
- HttpContextWrapper.cs
- TypeEnumerableViewSchema.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- VirtualDirectoryMapping.cs
- ConfigsHelper.cs
- IntSecurity.cs
- ToolboxBitmapAttribute.cs
- PropertyChangedEventManager.cs
- XmlSerializerNamespaces.cs
- SqlClientFactory.cs
- ComPlusAuthorization.cs
- DataControlImageButton.cs
- InputBindingCollection.cs
- PipelineComponent.cs
- Trace.cs
- SqlMethodTransformer.cs
- AutoFocusStyle.xaml.cs
- SerialReceived.cs
- StorageEntityContainerMapping.cs
- RequiredFieldValidator.cs
- HostedBindingBehavior.cs
- DriveInfo.cs
- CriticalFinalizerObject.cs
- SQlBooleanStorage.cs
- XamlPointCollectionSerializer.cs
- HandleCollector.cs
- TableLayoutColumnStyleCollection.cs
- CodeArrayIndexerExpression.cs
- NameValueFileSectionHandler.cs
- AttributeTableBuilder.cs
- PrePrepareMethodAttribute.cs
- KeyBinding.cs
- RelationshipWrapper.cs
- DuplicateWaitObjectException.cs
- StylusEditingBehavior.cs