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
- EventData.cs
- ArglessEventHandlerProxy.cs
- XmlSchemaException.cs
- TypeSystem.cs
- Graphics.cs
- GroupQuery.cs
- Registry.cs
- EnumBuilder.cs
- GACMembershipCondition.cs
- Permission.cs
- FileIOPermission.cs
- TraceSection.cs
- HtmlInputImage.cs
- ZipIOCentralDirectoryBlock.cs
- QueueProcessor.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- BackEase.cs
- CompiledQueryCacheEntry.cs
- ValuePatternIdentifiers.cs
- ContentWrapperAttribute.cs
- Internal.cs
- ShowExpandedMultiValueConverter.cs
- AncillaryOps.cs
- SiteIdentityPermission.cs
- Stacktrace.cs
- InternalConfigRoot.cs
- webbrowsersite.cs
- CommandValueSerializer.cs
- SafeCryptoHandles.cs
- Array.cs
- RowBinding.cs
- Utilities.cs
- XPathDocumentNavigator.cs
- ListItemCollection.cs
- MemberInfoSerializationHolder.cs
- WindowsGraphicsWrapper.cs
- AutomationPropertyInfo.cs
- XmlAttribute.cs
- SafeWaitHandle.cs
- Attributes.cs
- clipboard.cs
- SelfIssuedAuthAsymmetricKey.cs
- ToolStripDropDownButton.cs
- DetailsViewDeleteEventArgs.cs
- BamlLocalizableResourceKey.cs
- XPathDescendantIterator.cs
- TextFormatterImp.cs
- DefinitionBase.cs
- SolidColorBrush.cs
- EnglishPluralizationService.cs
- VariableValue.cs
- EntitySqlQueryCacheEntry.cs
- SoapCommonClasses.cs
- ThrowHelper.cs
- CanonicalXml.cs
- Schema.cs
- ModuleConfigurationInfo.cs
- ProfileBuildProvider.cs
- SqlConnectionStringBuilder.cs
- AppDomainFactory.cs
- XmlSchemaSimpleTypeList.cs
- Point3DCollection.cs
- HttpPostProtocolReflector.cs
- ServiceDurableInstance.cs
- HijriCalendar.cs
- IncrementalHitTester.cs
- CompiledAction.cs
- DependencyPropertyValueSerializer.cs
- entitydatasourceentitysetnameconverter.cs
- OracleInternalConnection.cs
- DataGridAddNewRow.cs
- TextTreeRootTextBlock.cs
- SqlBooleanizer.cs
- JsonUriDataContract.cs
- storepermission.cs
- DesignTimeSiteMapProvider.cs
- ToolStripDropDownClosingEventArgs.cs
- FontConverter.cs
- RawAppCommandInputReport.cs
- IdentitySection.cs
- RegexCharClass.cs
- GridViewRow.cs
- ProxyManager.cs
- Transform.cs
- DecimalAnimation.cs
- TreeBuilder.cs
- XmlDigitalSignatureProcessor.cs
- CommandManager.cs
- AdornerDecorator.cs
- TextSegment.cs
- QilReference.cs
- HierarchicalDataBoundControlAdapter.cs
- ICspAsymmetricAlgorithm.cs
- listviewsubitemcollectioneditor.cs
- QueueProcessor.cs
- InputMethodStateChangeEventArgs.cs
- LookupNode.cs
- EncoderBestFitFallback.cs
- QuotedStringWriteStateInfo.cs
- MsmqEncryptionAlgorithm.cs