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
- CssClassPropertyAttribute.cs
- KnownBoxes.cs
- DataGridViewSelectedColumnCollection.cs
- TextRangeEditTables.cs
- DeleteIndexBinder.cs
- TypeConverterMarkupExtension.cs
- AssemblyAttributes.cs
- DataGridViewCheckBoxCell.cs
- AudioLevelUpdatedEventArgs.cs
- ObjectQueryExecutionPlan.cs
- ToolStripItemEventArgs.cs
- ControlCollection.cs
- StylusPointPropertyInfo.cs
- BigInt.cs
- SqlCharStream.cs
- Directory.cs
- CodeTypeParameter.cs
- ParseChildrenAsPropertiesAttribute.cs
- QilChoice.cs
- EventDescriptor.cs
- TextSelection.cs
- FlowDocument.cs
- KeyedCollection.cs
- GraphicsContainer.cs
- WindowsRebar.cs
- DesignTimeTemplateParser.cs
- RoutedPropertyChangedEventArgs.cs
- DetailsViewRow.cs
- GradientStop.cs
- FontResourceCache.cs
- FindCompletedEventArgs.cs
- TextEndOfParagraph.cs
- QuotedPairReader.cs
- RangeBaseAutomationPeer.cs
- ConfigDefinitionUpdates.cs
- Panel.cs
- PreloadHost.cs
- Bitmap.cs
- SoapFault.cs
- Update.cs
- ObjectDisposedException.cs
- TimeZone.cs
- QuestionEventArgs.cs
- Internal.cs
- HtmlTextArea.cs
- SqlDataRecord.cs
- PathTooLongException.cs
- RecognitionResult.cs
- UnsafeNativeMethods.cs
- SingleAnimationUsingKeyFrames.cs
- SqlDataSourceFilteringEventArgs.cs
- Propagator.cs
- SmiConnection.cs
- ListDictionary.cs
- TextEditorTyping.cs
- SqlErrorCollection.cs
- CompositionDesigner.cs
- StringFormat.cs
- IntMinMaxAggregationOperator.cs
- precedingquery.cs
- RectangleHotSpot.cs
- ObjectIDGenerator.cs
- FrameDimension.cs
- OrderByBuilder.cs
- HighContrastHelper.cs
- DesignTimeTemplateParser.cs
- AssemblyAssociatedContentFileAttribute.cs
- DataServiceProviderWrapper.cs
- SortQuery.cs
- HttpFileCollectionBase.cs
- EventSinkHelperWriter.cs
- XmlWrappingWriter.cs
- WebPartTracker.cs
- HashHelper.cs
- MessageEncodingBindingElementImporter.cs
- HttpEncoder.cs
- PerformanceCounterPermission.cs
- Profiler.cs
- COAUTHIDENTITY.cs
- NotifyInputEventArgs.cs
- PrePrepareMethodAttribute.cs
- WorkflowQueueInfo.cs
- GridPattern.cs
- TemplateComponentConnector.cs
- MouseActionValueSerializer.cs
- SQLCharsStorage.cs
- IncomingWebResponseContext.cs
- DataPagerCommandEventArgs.cs
- Ops.cs
- SoapExtensionTypeElementCollection.cs
- securitymgrsite.cs
- ConnectionsZone.cs
- QilTernary.cs
- GridItemCollection.cs
- ObjectDisposedException.cs
- TableCell.cs
- TreeNodeStyle.cs
- Optimizer.cs
- OdbcConnectionOpen.cs
- CatalogUtil.cs