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
- ClientSession.cs
- MdiWindowListStrip.cs
- HistoryEventArgs.cs
- ValidatorCompatibilityHelper.cs
- SystemIPv6InterfaceProperties.cs
- PeerContact.cs
- UserInitiatedNavigationPermission.cs
- GenericRootAutomationPeer.cs
- MetadataArtifactLoaderResource.cs
- StateManagedCollection.cs
- Odbc32.cs
- util.cs
- CachedFontFamily.cs
- Preprocessor.cs
- EventHandlingScope.cs
- ElementHostPropertyMap.cs
- SqlDependencyListener.cs
- ProjectedSlot.cs
- KeyGestureConverter.cs
- DeclarativeCatalogPart.cs
- ImageIndexConverter.cs
- MetadataArtifactLoaderCompositeResource.cs
- SqlCacheDependency.cs
- XmlDomTextWriter.cs
- RuleEngine.cs
- CollectionDataContractAttribute.cs
- LostFocusEventManager.cs
- ObjectCloneHelper.cs
- RSAOAEPKeyExchangeFormatter.cs
- DaylightTime.cs
- Rfc2898DeriveBytes.cs
- TableItemStyle.cs
- ADMembershipUser.cs
- RuleInfoComparer.cs
- PropertyEmitterBase.cs
- DataGridTemplateColumn.cs
- ExtendedProtectionPolicyTypeConverter.cs
- ObjectHandle.cs
- SettingsPropertyNotFoundException.cs
- RangeValidator.cs
- WebBrowser.cs
- ButtonFieldBase.cs
- TypeHelper.cs
- QuaternionConverter.cs
- AttachedPropertyBrowsableAttribute.cs
- WebAdminConfigurationHelper.cs
- CommandField.cs
- Publisher.cs
- CookieHandler.cs
- ListBoxItemAutomationPeer.cs
- XmlCodeExporter.cs
- sortedlist.cs
- HexParser.cs
- _SslState.cs
- IsolatedStorageFileStream.cs
- EntityDataSourceEntitySetNameItem.cs
- FormatControl.cs
- FixedDocumentSequencePaginator.cs
- UnsafePeerToPeerMethods.cs
- ColumnCollectionEditor.cs
- _AutoWebProxyScriptHelper.cs
- ServiceOperationParameter.cs
- ComponentSerializationService.cs
- SpellerStatusTable.cs
- SoapIgnoreAttribute.cs
- RegisteredExpandoAttribute.cs
- SizeF.cs
- DataGridItemCollection.cs
- Codec.cs
- TextSchema.cs
- HtmlAnchor.cs
- RegisteredDisposeScript.cs
- RuntimeResourceSet.cs
- WsatServiceAddress.cs
- TypedMessageConverter.cs
- InvalidProgramException.cs
- DataGridBoolColumn.cs
- Schema.cs
- MemberHolder.cs
- ListViewItem.cs
- dtdvalidator.cs
- MessageBox.cs
- SequenceFullException.cs
- CompositeCollectionView.cs
- SQLBinaryStorage.cs
- AssemblyCache.cs
- OrthographicCamera.cs
- AttributeXamlType.cs
- EncodingTable.cs
- WebZone.cs
- GreenMethods.cs
- ClientSideQueueItem.cs
- UserPersonalizationStateInfo.cs
- ScriptBehaviorDescriptor.cs
- Timeline.cs
- WebPartMenu.cs
- SortableBindingList.cs
- ConstructorBuilder.cs
- serverconfig.cs
- DataPager.cs