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
- oledbmetadatacollectionnames.cs
- StrongName.cs
- MultilineStringConverter.cs
- SqlTransaction.cs
- MarkerProperties.cs
- SoapMessage.cs
- SecurityTokenSerializer.cs
- Variable.cs
- DynamicDataManager.cs
- ProcessModule.cs
- SqlCacheDependencyDatabaseCollection.cs
- MeshGeometry3D.cs
- ValidationError.cs
- LiteralSubsegment.cs
- ExplicitDiscriminatorMap.cs
- RouteItem.cs
- XmlSerializationWriter.cs
- Int16Storage.cs
- TypefaceCollection.cs
- RuleConditionDialog.cs
- IncrementalHitTester.cs
- SplitterPanelDesigner.cs
- configsystem.cs
- TouchPoint.cs
- CodeStatementCollection.cs
- CallbackValidatorAttribute.cs
- TransformationRules.cs
- WebConvert.cs
- QueryStringConverter.cs
- UdpDiscoveryEndpointProvider.cs
- XmlMapping.cs
- TimeSpan.cs
- StorageMappingItemCollection.cs
- CodeChecksumPragma.cs
- SystemTcpConnection.cs
- ErrorLog.cs
- UdpRetransmissionSettings.cs
- ActivityExecutionContextCollection.cs
- QueryCacheEntry.cs
- RepeatInfo.cs
- cryptoapiTransform.cs
- MessageEncodingBindingElement.cs
- ProcessInputEventArgs.cs
- ToolStripRenderEventArgs.cs
- Line.cs
- ListSortDescription.cs
- StaticSiteMapProvider.cs
- SpecialFolderEnumConverter.cs
- ExtenderProvidedPropertyAttribute.cs
- Sql8ExpressionRewriter.cs
- XmlQuerySequence.cs
- Propagator.JoinPropagator.cs
- SerializationEventsCache.cs
- LayoutEvent.cs
- DataGridColumnHeader.cs
- RoutedEventArgs.cs
- ApplicationCommands.cs
- XmlDictionary.cs
- ResourceDescriptionAttribute.cs
- DrawingContextDrawingContextWalker.cs
- CLRBindingWorker.cs
- ValidationErrorCollection.cs
- SqlError.cs
- BamlRecords.cs
- Point3DCollectionValueSerializer.cs
- XmlTextReader.cs
- WorkflowRuntimeBehavior.cs
- ObjectQuery.cs
- Point3DCollection.cs
- TabControlDesigner.cs
- Route.cs
- DBPropSet.cs
- TransformPatternIdentifiers.cs
- TabControlEvent.cs
- AccessDataSourceView.cs
- PageCatalogPart.cs
- ToolboxItemFilterAttribute.cs
- PointCollectionConverter.cs
- SocketInformation.cs
- DocumentGridContextMenu.cs
- Thread.cs
- ExtensionSurface.cs
- MethodBuilderInstantiation.cs
- BinaryCommonClasses.cs
- GeneralTransform3D.cs
- ButtonPopupAdapter.cs
- AvTraceFormat.cs
- TextElementCollection.cs
- WebContext.cs
- DocComment.cs
- FrameworkContentElement.cs
- ProcessModelSection.cs
- AttachmentCollection.cs
- LassoSelectionBehavior.cs
- XmlSchemaGroupRef.cs
- WSFederationHttpSecurityMode.cs
- Partitioner.cs
- LocatorPart.cs
- RuntimeHelpers.cs
- RunWorkerCompletedEventArgs.cs