Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Base / System / Windows / Input / TraversalRequest.cs / 2 / 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
- XmlLinkedNode.cs
- ChangeTracker.cs
- RolePrincipal.cs
- ProfileBuildProvider.cs
- FormViewDeleteEventArgs.cs
- SqlExpressionNullability.cs
- OperatingSystem.cs
- VScrollProperties.cs
- ClaimTypes.cs
- LinqExpressionNormalizer.cs
- PrintPreviewControl.cs
- StrongNameIdentityPermission.cs
- XomlCompiler.cs
- UnsafePeerToPeerMethods.cs
- NotificationContext.cs
- DateTimeConverter2.cs
- UnmanagedBitmapWrapper.cs
- WindowsRegion.cs
- UIAgentAsyncBeginRequest.cs
- SystemBrushes.cs
- MarkerProperties.cs
- ADMembershipUser.cs
- RadioButtonStandardAdapter.cs
- RestClientProxyHandler.cs
- BinaryFormatterWriter.cs
- MemberHolder.cs
- SvcFileManager.cs
- documentsequencetextcontainer.cs
- ColorContext.cs
- PrintDialog.cs
- DataSourceXmlAttributeAttribute.cs
- ConfigUtil.cs
- TreeNodeCollection.cs
- FontNamesConverter.cs
- MemberInfoSerializationHolder.cs
- AssemblyResourceLoader.cs
- _Events.cs
- OutOfMemoryException.cs
- ApplicationSecurityManager.cs
- LookupNode.cs
- MessageQueueEnumerator.cs
- CultureInfoConverter.cs
- _SpnDictionary.cs
- WeakRefEnumerator.cs
- DataError.cs
- Attributes.cs
- ObjectSpanRewriter.cs
- EndpointIdentity.cs
- GridViewDeletedEventArgs.cs
- IndexedDataBuffer.cs
- StreamGeometry.cs
- XXXOnTypeBuilderInstantiation.cs
- UriExt.cs
- SQLByteStorage.cs
- MediaContextNotificationWindow.cs
- securestring.cs
- ReceiveContent.cs
- AtomContentProperty.cs
- SQLDecimalStorage.cs
- NavigationProperty.cs
- NameTable.cs
- TypeCacheManager.cs
- GridViewRowEventArgs.cs
- HttpServerChannel.cs
- XmlDomTextWriter.cs
- BuilderPropertyEntry.cs
- SupportsPreviewControlAttribute.cs
- TransactionInformation.cs
- LassoHelper.cs
- DynamicObjectAccessor.cs
- NamespaceCollection.cs
- SoundPlayer.cs
- StrokeNode.cs
- SoapExtensionImporter.cs
- DispatcherOperation.cs
- GridViewCancelEditEventArgs.cs
- EntityContainerEntitySetDefiningQuery.cs
- GridProviderWrapper.cs
- XmlEventCache.cs
- DurableEnlistmentState.cs
- XmlSerializerFactory.cs
- RPIdentityRequirement.cs
- ExtensionWindow.cs
- DocumentPage.cs
- ToolTip.cs
- FakeModelItemImpl.cs
- SqlConnectionPoolGroupProviderInfo.cs
- SynchronizedKeyedCollection.cs
- DataTableReader.cs
- DataSourceCache.cs
- MethodBuilder.cs
- MemberPath.cs
- PopupEventArgs.cs
- GridPatternIdentifiers.cs
- ThreadInterruptedException.cs
- EntityDesignerUtils.cs
- UICuesEvent.cs
- LZCodec.cs
- WorkflowPrinting.cs
- InstanceNotReadyException.cs