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
- InputLanguageSource.cs
- FontStretches.cs
- ProfilePropertyNameValidator.cs
- OutKeywords.cs
- MaterialGroup.cs
- DropShadowBitmapEffect.cs
- BaseValidator.cs
- EventDescriptorCollection.cs
- Italic.cs
- Model3D.cs
- ColorAnimationBase.cs
- DataTable.cs
- BitmapFrameEncode.cs
- BufferedGraphics.cs
- ShaderEffect.cs
- ConstNode.cs
- SHA384Managed.cs
- NamespaceEmitter.cs
- XmlHierarchicalDataSourceView.cs
- OdbcConnectionPoolProviderInfo.cs
- XPathNodeInfoAtom.cs
- DataGridViewCellConverter.cs
- WebPartConnection.cs
- TabletDeviceInfo.cs
- ControlTemplate.cs
- SessionIDManager.cs
- DataGridViewBindingCompleteEventArgs.cs
- XPathNodeHelper.cs
- _HTTPDateParse.cs
- TemplateXamlParser.cs
- BamlCollectionHolder.cs
- DuplicateDetector.cs
- BinHexEncoding.cs
- OrderByQueryOptionExpression.cs
- StringHandle.cs
- TabControlToolboxItem.cs
- ConnectionStringsSection.cs
- XmlConverter.cs
- StaticDataManager.cs
- Dictionary.cs
- LinqDataSourceStatusEventArgs.cs
- XmlSchemaType.cs
- PixelFormatConverter.cs
- HttpAsyncResult.cs
- DoubleMinMaxAggregationOperator.cs
- TextViewBase.cs
- MetadataSource.cs
- CharacterShapingProperties.cs
- PropertyEmitter.cs
- FileCodeGroup.cs
- TransformProviderWrapper.cs
- MapPathBasedVirtualPathProvider.cs
- AnonymousIdentificationSection.cs
- DataGridViewCellStyleConverter.cs
- XhtmlBasicFormAdapter.cs
- BaseAppDomainProtocolHandler.cs
- NotifyInputEventArgs.cs
- CharacterMetrics.cs
- MessageBox.cs
- UserControlParser.cs
- ExpressionEditorAttribute.cs
- PowerStatus.cs
- QuaternionValueSerializer.cs
- TableCell.cs
- ZipIOBlockManager.cs
- WMIInterop.cs
- MatrixTransform3D.cs
- ToolStripPanelCell.cs
- CacheMode.cs
- OrderedDictionaryStateHelper.cs
- BackStopAuthenticationModule.cs
- IdentityElement.cs
- RegexGroup.cs
- StateItem.cs
- NotSupportedException.cs
- ClientBuildManager.cs
- Icon.cs
- RijndaelManaged.cs
- CodeTypeMember.cs
- DateTimePicker.cs
- ReflectionUtil.cs
- StyleXamlParser.cs
- ValueUnavailableException.cs
- CompositeFontParser.cs
- ToolStripItemClickedEventArgs.cs
- InternalDispatchObject.cs
- RootBrowserWindowProxy.cs
- ClientOptions.cs
- AccessDataSourceView.cs
- MatrixTransform3D.cs
- NameTable.cs
- HwndSourceKeyboardInputSite.cs
- FixedHyperLink.cs
- ToolboxItemCollection.cs
- DotExpr.cs
- ConfigXmlCDataSection.cs
- SoapSchemaImporter.cs
- TextDecoration.cs
- XmlValidatingReader.cs
- CodeDOMProvider.cs