Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Base / System / Windows / Input / TraversalRequest.cs / 2 / 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
- WebBrowserNavigatedEventHandler.cs
- ServiceDesigner.xaml.cs
- PointCollectionConverter.cs
- TypeGenericEnumerableViewSchema.cs
- SmtpNetworkElement.cs
- HttpDictionary.cs
- PrinterUnitConvert.cs
- UpdateTranslator.cs
- EventToken.cs
- ColumnWidthChangingEvent.cs
- JavaScriptObjectDeserializer.cs
- StdValidatorsAndConverters.cs
- CompilerGlobalScopeAttribute.cs
- LogLogRecord.cs
- DeviceSpecificChoiceCollection.cs
- RIPEMD160Managed.cs
- QilNode.cs
- Calendar.cs
- __ComObject.cs
- LogicalExpressionTypeConverter.cs
- AppDomainCompilerProxy.cs
- DataGridViewComponentPropertyGridSite.cs
- MetadataSerializer.cs
- XamlBrushSerializer.cs
- RayMeshGeometry3DHitTestResult.cs
- ResumeStoryboard.cs
- LinqDataSourceView.cs
- DiscoveryClientChannelBase.cs
- DateTimeUtil.cs
- SchemaObjectWriter.cs
- Rule.cs
- AdornerPresentationContext.cs
- MetadataException.cs
- OleDbRowUpdatingEvent.cs
- AppDomainProtocolHandler.cs
- ToolConsole.cs
- PersistNameAttribute.cs
- DataGridViewRowCollection.cs
- ContainerVisual.cs
- DynamicVirtualDiscoSearcher.cs
- ItemContainerGenerator.cs
- TableRow.cs
- UnaryExpression.cs
- DesignerActionVerbItem.cs
- EdgeModeValidation.cs
- ReceiveDesigner.xaml.cs
- BamlLocalizableResourceKey.cs
- MemberListBinding.cs
- DefaultParameterValueAttribute.cs
- SourceFilter.cs
- CollectionType.cs
- mediaclock.cs
- HttpModuleAction.cs
- WinEventTracker.cs
- FindCriteriaApril2005.cs
- CollectionViewProxy.cs
- VirtualPathProvider.cs
- StrokeNodeOperations2.cs
- BindingNavigator.cs
- MachineSettingsSection.cs
- IndexObject.cs
- SystemKeyConverter.cs
- EntitySetBase.cs
- UInt16Storage.cs
- AggregateNode.cs
- HebrewCalendar.cs
- ScriptModule.cs
- HtmlTextViewAdapter.cs
- BinaryObjectInfo.cs
- ColumnMapVisitor.cs
- FactoryRecord.cs
- BufferedMessageData.cs
- XmlSchemaSimpleType.cs
- Itemizer.cs
- TextBoxRenderer.cs
- ConnectionConsumerAttribute.cs
- UnsafeNativeMethods.cs
- Constants.cs
- ImpersonateTokenRef.cs
- sqlcontext.cs
- DbTypeMap.cs
- UniqueIdentifierService.cs
- LoginStatusDesigner.cs
- SystemParameters.cs
- PrivilegedConfigurationManager.cs
- WebPartEditorCancelVerb.cs
- TypeHelpers.cs
- DateTimeValueSerializerContext.cs
- GridView.cs
- PackageDigitalSignature.cs
- TransformProviderWrapper.cs
- WinFormsComponentEditor.cs
- PropertyPathWorker.cs
- ImageKeyConverter.cs
- SmtpNegotiateAuthenticationModule.cs
- LocalizationComments.cs
- SerialPort.cs
- Underline.cs
- Evidence.cs
- LayoutTable.cs