Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RunInstallerAttribute.cs
- sqlcontext.cs
- _AcceptOverlappedAsyncResult.cs
- SystemNetworkInterface.cs
- CheckBox.cs
- SystemFonts.cs
- Select.cs
- InnerItemCollectionView.cs
- DrawListViewColumnHeaderEventArgs.cs
- MSHTMLHostUtil.cs
- InvalidComObjectException.cs
- ChangesetResponse.cs
- ControlBuilder.cs
- HelpInfo.cs
- GeometryValueSerializer.cs
- WebProxyScriptElement.cs
- ReplacementText.cs
- WebCategoryAttribute.cs
- ConvertEvent.cs
- RayHitTestParameters.cs
- SpeechSeg.cs
- XmlDictionaryReader.cs
- InputBuffer.cs
- WCFModelStrings.Designer.cs
- VectorAnimation.cs
- EnumUnknown.cs
- CompilerCollection.cs
- TTSEngineProxy.cs
- Dynamic.cs
- SmiSettersStream.cs
- ServiceThrottle.cs
- CalendarTable.cs
- DataTableReader.cs
- PageCache.cs
- GridViewDeleteEventArgs.cs
- SqlAggregateChecker.cs
- MergeLocalizationDirectives.cs
- HitTestParameters.cs
- Translator.cs
- DecimalKeyFrameCollection.cs
- FrameworkRichTextComposition.cs
- AssemblyAssociatedContentFileAttribute.cs
- Emitter.cs
- arabicshape.cs
- PageClientProxyGenerator.cs
- BaseDataListActionList.cs
- DataRowExtensions.cs
- XPathNode.cs
- ObjectDataSourceEventArgs.cs
- RootDesignerSerializerAttribute.cs
- URLIdentityPermission.cs
- DataTableReader.cs
- NumberSubstitution.cs
- AutomationProperties.cs
- AjaxFrameworkAssemblyAttribute.cs
- AsymmetricKeyExchangeDeformatter.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- Substitution.cs
- DataControlFieldCollection.cs
- DataRow.cs
- TextTreeDeleteContentUndoUnit.cs
- Error.cs
- XPathNavigator.cs
- XmlILStorageConverter.cs
- DataRecordInternal.cs
- TryCatchDesigner.xaml.cs
- Calendar.cs
- ArgumentOutOfRangeException.cs
- Context.cs
- LinqDataSourceDisposeEventArgs.cs
- ShaperBuffers.cs
- ObjectViewListener.cs
- Compiler.cs
- TreeSet.cs
- FontFamilyIdentifier.cs
- ISAPIWorkerRequest.cs
- MILUtilities.cs
- RsaKeyIdentifierClause.cs
- PrinterSettings.cs
- File.cs
- TraceHandler.cs
- WebPartMovingEventArgs.cs
- RegionInfo.cs
- KnownTypes.cs
- Polyline.cs
- DesignTimeTemplateParser.cs
- FloaterBaseParaClient.cs
- ColumnCollectionEditor.cs
- Attributes.cs
- assertwrapper.cs
- IODescriptionAttribute.cs
- ConnectionPoint.cs
- ConfigurationStrings.cs
- EntityModelBuildProvider.cs
- BindingCompleteEventArgs.cs
- TextTreeTextBlock.cs
- ScriptIgnoreAttribute.cs
- TemplateDefinition.cs
- EntitySetBase.cs
- XmlNamespaceMappingCollection.cs