Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- InputLangChangeEvent.cs
- NameSpaceEvent.cs
- TdsParameterSetter.cs
- BigIntegerStorage.cs
- DataGridViewColumnCollection.cs
- BitmapEffectrendercontext.cs
- GenerateHelper.cs
- ApplicationGesture.cs
- ToolboxItemWrapper.cs
- SQLSingle.cs
- ColumnHeaderConverter.cs
- ArrayWithOffset.cs
- precedingsibling.cs
- HttpCookieCollection.cs
- FileDialogCustomPlacesCollection.cs
- UnsafeNativeMethods.cs
- BaseDataList.cs
- ReceiveActivityDesigner.cs
- DataGridViewRowEventArgs.cs
- Group.cs
- ConfigurationManager.cs
- PagerSettings.cs
- ReferentialConstraintRoleElement.cs
- SpellCheck.cs
- HttpPostedFile.cs
- DependencyObject.cs
- EventPropertyMap.cs
- Base64Decoder.cs
- InputGestureCollection.cs
- StrokeCollection2.cs
- ByeOperationAsyncResult.cs
- ToolboxItemWrapper.cs
- Vector3DKeyFrameCollection.cs
- GraphicsState.cs
- TextSyndicationContent.cs
- XamlValidatingReader.cs
- QilInvokeLateBound.cs
- XmlElementElementCollection.cs
- EffectiveValueEntry.cs
- EnvelopeVersion.cs
- RectValueSerializer.cs
- RelationshipConverter.cs
- SmiContext.cs
- AdapterDictionary.cs
- TypeHelper.cs
- X500Name.cs
- ParsedAttributeCollection.cs
- WsatTransactionFormatter.cs
- FontFamily.cs
- PropertyDescriptor.cs
- HandlerBase.cs
- Point3DKeyFrameCollection.cs
- Console.cs
- DataTableClearEvent.cs
- SettingsBindableAttribute.cs
- ReferentialConstraint.cs
- DependencyPropertyChangedEventArgs.cs
- FileRegion.cs
- grammarelement.cs
- IISMapPath.cs
- CodeGenerator.cs
- wgx_exports.cs
- SimpleBitVector32.cs
- SqlDataSource.cs
- FixedSOMPage.cs
- WebPartCollection.cs
- GridSplitter.cs
- SkewTransform.cs
- RemoteWebConfigurationHostServer.cs
- HashAlgorithm.cs
- EventLogPermissionEntry.cs
- NativeCppClassAttribute.cs
- AutomationPatternInfo.cs
- UInt16Storage.cs
- XmlSchemaFacet.cs
- ErrorTableItemStyle.cs
- DateTimeFormat.cs
- MobileTextWriter.cs
- IDReferencePropertyAttribute.cs
- CapabilitiesState.cs
- HttpHandlerAction.cs
- XamlParser.cs
- SingleAnimationBase.cs
- _HTTPDateParse.cs
- SoapCodeExporter.cs
- DataBindingExpressionBuilder.cs
- QilList.cs
- Blend.cs
- DockPanel.cs
- EllipseGeometry.cs
- CodePropertyReferenceExpression.cs
- ScriptHandlerFactory.cs
- oledbmetadatacolumnnames.cs
- Pen.cs
- TransactionFlowBindingElement.cs
- DbConnectionStringCommon.cs
- SqlClientFactory.cs
- PassportPrincipal.cs
- CodeSubDirectory.cs
- Calendar.cs