Code:
/ 4.0 / 4.0 / 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. 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
- DaylightTime.cs
- XsdValidatingReader.cs
- ExpandableObjectConverter.cs
- CryptoApi.cs
- PlatformCulture.cs
- ConnectionManagementElementCollection.cs
- ActivityDesigner.cs
- XPathNodeHelper.cs
- CompilerGeneratedAttribute.cs
- ChannelDispatcherCollection.cs
- FilterElement.cs
- Rotation3DAnimation.cs
- TreeNodeBindingCollection.cs
- Control.cs
- FileEnumerator.cs
- QilXmlWriter.cs
- SpecialNameAttribute.cs
- DSASignatureFormatter.cs
- CopyAttributesAction.cs
- ThemeDirectoryCompiler.cs
- Animatable.cs
- SystemNetworkInterface.cs
- ProcessMessagesAsyncResult.cs
- TargetFrameworkUtil.cs
- InputBuffer.cs
- FrameworkReadOnlyPropertyMetadata.cs
- EventLogPermissionEntry.cs
- RemoveStoryboard.cs
- BuildProviderUtils.cs
- ACE.cs
- RuleSettings.cs
- ExpressionVisitor.cs
- InternalResources.cs
- panel.cs
- CompletedAsyncResult.cs
- CompletionBookmark.cs
- PropertyEmitter.cs
- FillErrorEventArgs.cs
- ConfigurationProperty.cs
- SplayTreeNode.cs
- SmiTypedGetterSetter.cs
- Bitmap.cs
- WizardPanelChangingEventArgs.cs
- FeatureSupport.cs
- SecureStringHasher.cs
- BufferedResponseStream.cs
- XLinq.cs
- BamlLocalizer.cs
- ModelChangedEventArgsImpl.cs
- PluggableProtocol.cs
- AppSettingsReader.cs
- RegionData.cs
- EntityDataSourceUtil.cs
- AnnotationDocumentPaginator.cs
- DBAsyncResult.cs
- GiveFeedbackEvent.cs
- DllNotFoundException.cs
- UserControlAutomationPeer.cs
- RoutedUICommand.cs
- HttpVersion.cs
- GlyphRunDrawing.cs
- DataGridParentRows.cs
- DataGridViewRowsRemovedEventArgs.cs
- AxisAngleRotation3D.cs
- EpmContentDeSerializer.cs
- DataBoundControl.cs
- NetCodeGroup.cs
- FontNamesConverter.cs
- XmlArrayItemAttribute.cs
- Base64Stream.cs
- SspiHelper.cs
- SystemTcpStatistics.cs
- ValueExpressions.cs
- OutputScopeManager.cs
- Mouse.cs
- PageAsyncTask.cs
- TranslateTransform3D.cs
- RefExpr.cs
- ReadOnlyPropertyMetadata.cs
- HitTestDrawingContextWalker.cs
- TextHidden.cs
- ValidationResult.cs
- ScriptControl.cs
- CryptoConfig.cs
- DesignerImageAdapter.cs
- GlobalAllocSafeHandle.cs
- GenericWebPart.cs
- SafeCertificateStore.cs
- TranslateTransform.cs
- MsmqProcessProtocolHandler.cs
- CompositeDataBoundControl.cs
- ForceCopyBuildProvider.cs
- HandlerMappingMemo.cs
- DataSourceListEditor.cs
- FrugalList.cs
- XmlToDatasetMap.cs
- SqlProviderUtilities.cs
- XmlSchemaSequence.cs
- SafeFindHandle.cs
- LookupTables.cs