Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- SafeRightsManagementSessionHandle.cs
- NameValueCollection.cs
- AQNBuilder.cs
- DataSourceGroupCollection.cs
- FormViewModeEventArgs.cs
- WebEventCodes.cs
- BindingRestrictions.cs
- BinaryEditor.cs
- WpfSharedBamlSchemaContext.cs
- SafeRightsManagementSessionHandle.cs
- DataIdProcessor.cs
- WorkflowServiceHostFactory.cs
- SecurityDocument.cs
- ObjectPropertyMapping.cs
- XhtmlConformanceSection.cs
- COM2ExtendedBrowsingHandler.cs
- SafeUserTokenHandle.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- KnownBoxes.cs
- StatusBarPanelClickEvent.cs
- Solver.cs
- StringArrayEditor.cs
- CodeDomSerializerBase.cs
- ResourceManager.cs
- PersistenceException.cs
- DataColumn.cs
- FunctionQuery.cs
- InterleavedZipPartStream.cs
- ReadWriteObjectLock.cs
- ScrollChangedEventArgs.cs
- ReadOnlyActivityGlyph.cs
- Brush.cs
- DbConnectionPool.cs
- BamlWriter.cs
- DrawingContext.cs
- CngKey.cs
- RegisteredDisposeScript.cs
- While.cs
- DPTypeDescriptorContext.cs
- GcSettings.cs
- BuildManager.cs
- LocalizationComments.cs
- Site.cs
- SourceItem.cs
- SwitchLevelAttribute.cs
- Int32CAMarshaler.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- BypassElementCollection.cs
- PackWebRequestFactory.cs
- BaseTemplateParser.cs
- ProjectedSlot.cs
- Stroke2.cs
- xdrvalidator.cs
- StyleSheetComponentEditor.cs
- ParallelTimeline.cs
- TextBoxBase.cs
- MatrixValueSerializer.cs
- CalendarButtonAutomationPeer.cs
- ToolStripItemClickedEventArgs.cs
- PerfService.cs
- GeneralTransform2DTo3DTo2D.cs
- XmlQuerySequence.cs
- RuntimeCompatibilityAttribute.cs
- sqlcontext.cs
- ListCommandEventArgs.cs
- ListView.cs
- PeerCollaboration.cs
- DataBinder.cs
- RangeBase.cs
- TimeZone.cs
- SqlDataSourceTableQuery.cs
- HttpHandlerActionCollection.cs
- Range.cs
- OracleParameterCollection.cs
- TrustLevel.cs
- OutputCacheProfile.cs
- TimeSpanOrInfiniteValidator.cs
- CheckBoxList.cs
- NativeMethods.cs
- ComponentRenameEvent.cs
- PenThreadPool.cs
- ProxyHwnd.cs
- GradientBrush.cs
- HttpClientCredentialType.cs
- XsdDuration.cs
- MergablePropertyAttribute.cs
- TreeIterators.cs
- _FtpDataStream.cs
- X509PeerCertificateAuthenticationElement.cs
- SpeakInfo.cs
- ProjectionAnalyzer.cs
- ObjectItemCollection.cs
- ModelTreeEnumerator.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- ByteAnimationUsingKeyFrames.cs
- Property.cs
- TableAutomationPeer.cs
- SessionStateSection.cs
- TextTreeObjectNode.cs
- ProcessRequestArgs.cs