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
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CLSCompliantAttribute.cs
- WmlCommandAdapter.cs
- CoTaskMemHandle.cs
- Pointer.cs
- ObjectStorage.cs
- ContextMenu.cs
- TableLayoutRowStyleCollection.cs
- SineEase.cs
- BoundsDrawingContextWalker.cs
- OwnerDrawPropertyBag.cs
- _PooledStream.cs
- WebPartConnectionsEventArgs.cs
- COM2IDispatchConverter.cs
- MenuEventArgs.cs
- COM2DataTypeToManagedDataTypeConverter.cs
- GeometryDrawing.cs
- Choices.cs
- LongPath.cs
- CompositeControlDesigner.cs
- WindowVisualStateTracker.cs
- ServicePoint.cs
- ProtocolsConfiguration.cs
- BackgroundWorker.cs
- VariantWrapper.cs
- WebConfigurationManager.cs
- MimeTypeAttribute.cs
- Decimal.cs
- BindingsCollection.cs
- EdmTypeAttribute.cs
- VerticalAlignConverter.cs
- ThemeInfoAttribute.cs
- PolyQuadraticBezierSegment.cs
- CaseInsensitiveHashCodeProvider.cs
- EventMap.cs
- FontUnitConverter.cs
- BindingNavigator.cs
- XmlSchemaDocumentation.cs
- PropertyNames.cs
- FindSimilarActivitiesVerb.cs
- ListViewCancelEventArgs.cs
- ByteAnimationUsingKeyFrames.cs
- xmlfixedPageInfo.cs
- SizeAnimationUsingKeyFrames.cs
- CommonProperties.cs
- ResourceDescriptionAttribute.cs
- CompilerState.cs
- EntityStoreSchemaGenerator.cs
- TemplateBindingExpressionConverter.cs
- CommandHelper.cs
- MeasurementDCInfo.cs
- StorageInfo.cs
- BitmapFrame.cs
- PenThreadWorker.cs
- _CookieModule.cs
- UriSectionData.cs
- XmlRootAttribute.cs
- TypeInitializationException.cs
- DesignerSerializationOptionsAttribute.cs
- DecimalFormatter.cs
- nulltextnavigator.cs
- ToolStripSeparatorRenderEventArgs.cs
- Wildcard.cs
- SimpleBitVector32.cs
- XmlAnyAttributeAttribute.cs
- securitycriticaldataClass.cs
- TransformedBitmap.cs
- TreeView.cs
- InheritedPropertyDescriptor.cs
- StaticContext.cs
- DataViewSetting.cs
- PersistenceMetadataNamespace.cs
- MetaTableHelper.cs
- ConfigurationStrings.cs
- SqlNodeTypeOperators.cs
- DataPagerFieldItem.cs
- EventMappingSettings.cs
- DoubleKeyFrameCollection.cs
- TabletDeviceInfo.cs
- GroupItemAutomationPeer.cs
- RandomNumberGenerator.cs
- MergablePropertyAttribute.cs
- FillRuleValidation.cs
- SchemaElementLookUpTableEnumerator.cs
- ControlCachePolicy.cs
- DBAsyncResult.cs
- WebPartConnectionsCancelEventArgs.cs
- WSIdentityFaultException.cs
- HttpInputStream.cs
- SpotLight.cs
- Scripts.cs
- ButtonColumn.cs
- SessionStateUtil.cs
- CryptoApi.cs
- ConnectionManagementElement.cs
- ControlBuilderAttribute.cs
- EndpointInstanceProvider.cs
- SqlTypesSchemaImporter.cs
- mactripleDES.cs
- ListMarkerLine.cs
- ParameterCollection.cs