Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Base / System / Windows / Input / TraversalRequest.cs / 1 / 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. 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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RowType.cs
- CodeDomConfigurationHandler.cs
- WorkflowOperationBehavior.cs
- CapabilitiesSection.cs
- XamlClipboardData.cs
- MultipleViewPattern.cs
- KeyPressEvent.cs
- SqlClientPermission.cs
- SystemWebSectionGroup.cs
- TemplateKey.cs
- ControlValuePropertyAttribute.cs
- HotSpotCollectionEditor.cs
- XPSSignatureDefinition.cs
- Subtree.cs
- DesignerCapabilities.cs
- ListViewHitTestInfo.cs
- IDQuery.cs
- SortKey.cs
- FontResourceCache.cs
- BoundField.cs
- _WebProxyDataBuilder.cs
- ExtendedPropertyCollection.cs
- IisTraceListener.cs
- NullableLongSumAggregationOperator.cs
- VisualTreeHelper.cs
- TemplateControl.cs
- TextTreeText.cs
- _LocalDataStore.cs
- XPathScanner.cs
- BaseTemplateParser.cs
- CqlErrorHelper.cs
- ObjectDataProvider.cs
- input.cs
- DbgCompiler.cs
- GeometryValueSerializer.cs
- Gdiplus.cs
- DataGridViewRowPostPaintEventArgs.cs
- ResourceExpressionBuilder.cs
- ValueExpressions.cs
- MsmqInputChannel.cs
- IsolatedStorageFile.cs
- SplitContainer.cs
- DummyDataSource.cs
- CompilationPass2Task.cs
- itemelement.cs
- hresults.cs
- KeyedQueue.cs
- SettingsContext.cs
- ThemeDirectoryCompiler.cs
- TypedDatasetGenerator.cs
- LoginView.cs
- EntityDataSourceState.cs
- complextypematerializer.cs
- XmlRootAttribute.cs
- MarshalDirectiveException.cs
- DrawingGroupDrawingContext.cs
- MimeFormReflector.cs
- ManagementDateTime.cs
- DataGridCommandEventArgs.cs
- CommandLibraryHelper.cs
- MimeObjectFactory.cs
- Roles.cs
- LinkTarget.cs
- DataServiceSaveChangesEventArgs.cs
- TemplateKeyConverter.cs
- JpegBitmapEncoder.cs
- StringFunctions.cs
- LinearGradientBrush.cs
- ReadWriteObjectLock.cs
- RectConverter.cs
- AutomationPeer.cs
- DataGridItemCollection.cs
- XmlILModule.cs
- DayRenderEvent.cs
- ConfigurationValidatorBase.cs
- AbstractSvcMapFileLoader.cs
- Configuration.cs
- DelayedRegex.cs
- XmlDataSourceView.cs
- XmlExtensionFunction.cs
- XPathSingletonIterator.cs
- TypeSystemHelpers.cs
- FormattedText.cs
- ConfigurationElementCollection.cs
- GridViewUpdateEventArgs.cs
- UriScheme.cs
- RemotingSurrogateSelector.cs
- ProviderUtil.cs
- ObjectListShowCommandsEventArgs.cs
- Knowncolors.cs
- DispatcherFrame.cs
- InternalResources.cs
- dsa.cs
- CredentialSelector.cs
- FamilyCollection.cs
- XmlSchemaChoice.cs
- SoapExtensionTypeElementCollection.cs
- ModelVisual3D.cs
- SmtpDateTime.cs
- _ListenerRequestStream.cs