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
- WebPartAuthorizationEventArgs.cs
- AmbientValueAttribute.cs
- MeasureItemEvent.cs
- XPathDocument.cs
- documentation.cs
- PlatformCulture.cs
- VectorKeyFrameCollection.cs
- Semaphore.cs
- ObjectTag.cs
- EllipticalNodeOperations.cs
- TextRangeSerialization.cs
- WebReferenceCollection.cs
- TextServicesContext.cs
- DataServiceQueryOfT.cs
- ConfigXmlAttribute.cs
- SystemParameters.cs
- Vector3DCollection.cs
- FontFamily.cs
- XPathDescendantIterator.cs
- Pen.cs
- HtmlEmptyTagControlBuilder.cs
- KeyTime.cs
- RtfNavigator.cs
- GeometryCombineModeValidation.cs
- BlockCollection.cs
- FormsIdentity.cs
- QilName.cs
- EditorPartChrome.cs
- TimeoutHelper.cs
- XXXOnTypeBuilderInstantiation.cs
- File.cs
- EntitySetBase.cs
- SizeFConverter.cs
- X509InitiatorCertificateClientElement.cs
- FontStretchConverter.cs
- CompilationRelaxations.cs
- ImmComposition.cs
- FileCodeGroup.cs
- PropertyGridEditorPart.cs
- ListViewInsertionMark.cs
- SRef.cs
- StrokeNodeOperations2.cs
- SqlClientFactory.cs
- FormsAuthenticationCredentials.cs
- SystemResourceKey.cs
- TransactionProtocol.cs
- XmlDownloadManager.cs
- GetPageNumberCompletedEventArgs.cs
- MethodBody.cs
- FormClosedEvent.cs
- BuildTopDownAttribute.cs
- WindowsRegion.cs
- SourceItem.cs
- RenderDataDrawingContext.cs
- InvalidPrinterException.cs
- ArrayElementGridEntry.cs
- SerialErrors.cs
- PeerName.cs
- PropertyMap.cs
- dataprotectionpermission.cs
- FilterElement.cs
- Events.cs
- StringFormat.cs
- ArrayWithOffset.cs
- Point3DAnimationUsingKeyFrames.cs
- XPathEmptyIterator.cs
- CompositeActivityCodeGenerator.cs
- AuthStoreRoleProvider.cs
- DbCommandTree.cs
- WrappedKeySecurityToken.cs
- DataRow.cs
- SqlDataSourceRefreshSchemaForm.cs
- _NetworkingPerfCounters.cs
- InputReport.cs
- WmlValidationSummaryAdapter.cs
- Span.cs
- IdentitySection.cs
- Image.cs
- WebEncodingValidator.cs
- LinqDataSourceEditData.cs
- PopupEventArgs.cs
- ConvertBinder.cs
- DbReferenceCollection.cs
- KeyPressEvent.cs
- ProcessInfo.cs
- ToolStripDropDownItem.cs
- FunctionImportMapping.cs
- GradientStopCollection.cs
- ThrowHelper.cs
- InternalTypeHelper.cs
- FileDialog_Vista.cs
- BooleanConverter.cs
- RegistrySecurity.cs
- EntityViewGenerator.cs
- GorillaCodec.cs
- RequestCachePolicy.cs
- Label.cs
- TimeBoundedCache.cs
- basecomparevalidator.cs
- PopOutPanel.cs