Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Controls / BooleanToSelectiveScrollingOrientationConverter.cs / 1305600 / BooleanToSelectiveScrollingOrientationConverter.cs
//---------------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. // //--------------------------------------------------------------------------- using System; using System.Globalization; using System.Windows; using System.Windows.Data; namespace System.Windows.Controls { ////// Converts Boolean to SelectiveScrollin----entation based on the given parameter. /// [Localizability(LocalizationCategory.NeverLocalize)] internal sealed class BooleanToSelectiveScrollin----entationConverter : IValueConverter { ////// Convert Boolean to SelectiveScrollin----entation /// /// Boolean /// SelectiveScrollin----entation /// SelectiveScrollin----entation that should be used when the Boolean is true /// null public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { if (value is bool && parameter is SelectiveScrollin----entation) { var valueAsBool = (bool)value; var parameterSelectiveScrollin----entation = (SelectiveScrollin----entation)parameter; if (valueAsBool) { return parameterSelectiveScrollin----entation; } } return SelectiveScrollin----entation.Both; } ////// Not implemented /// public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) { throw new NotImplementedException(); } } } // 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
- DataGridViewRowPostPaintEventArgs.cs
- ToolboxItemCollection.cs
- _ShellExpression.cs
- StreamInfo.cs
- ElementMarkupObject.cs
- ArrangedElementCollection.cs
- XamlTypeWithExplicitNamespace.cs
- ZipPackage.cs
- WindowsScroll.cs
- ArrayList.cs
- ApplicationCommands.cs
- SHA384.cs
- ButtonFieldBase.cs
- FunctionDescription.cs
- TdsParserHelperClasses.cs
- CLSCompliantAttribute.cs
- DirtyTextRange.cs
- GlyphRunDrawing.cs
- CommandLibraryHelper.cs
- SendContent.cs
- DllNotFoundException.cs
- WCFModelStrings.Designer.cs
- AppendHelper.cs
- AnnotationResourceChangedEventArgs.cs
- OleDbError.cs
- WCFBuildProvider.cs
- _ListenerRequestStream.cs
- ButtonRenderer.cs
- ExtendedPropertyCollection.cs
- ReceiveContext.cs
- QuadTree.cs
- StateDesigner.Layouts.cs
- DemultiplexingDispatchMessageFormatter.cs
- MethodBuilder.cs
- DBDataPermissionAttribute.cs
- LinqDataSourceSelectEventArgs.cs
- SerializationInfo.cs
- CodeTryCatchFinallyStatement.cs
- ToolStripDropTargetManager.cs
- ObjectKeyFrameCollection.cs
- FreeFormDragDropManager.cs
- BindingNavigator.cs
- Vector3DIndependentAnimationStorage.cs
- MetaTableHelper.cs
- CodeMethodInvokeExpression.cs
- EventTrigger.cs
- cookie.cs
- UrlMappingsSection.cs
- SessionStateSection.cs
- OdbcInfoMessageEvent.cs
- Permission.cs
- BitmapEffectDrawingContent.cs
- FrameworkElement.cs
- mactripleDES.cs
- ExpressionPrinter.cs
- ListControlBuilder.cs
- SolidColorBrush.cs
- GiveFeedbackEvent.cs
- MgmtConfigurationRecord.cs
- SafeHandles.cs
- CheckBoxStandardAdapter.cs
- InvalidPrinterException.cs
- VariantWrapper.cs
- ToolStripContentPanel.cs
- DisableDpiAwarenessAttribute.cs
- RadioButtonPopupAdapter.cs
- SecurityDescriptor.cs
- RecognizedAudio.cs
- DataGridState.cs
- XmlnsCache.cs
- SymbolEqualComparer.cs
- ResourcePool.cs
- Executor.cs
- CodeTypeConstructor.cs
- baseaxisquery.cs
- WebPartEditorOkVerb.cs
- HMACSHA512.cs
- StylusPointDescription.cs
- DictionaryEditChange.cs
- OLEDB_Util.cs
- BitmapScalingModeValidation.cs
- LocatorManager.cs
- CorrelationService.cs
- TripleDESCryptoServiceProvider.cs
- InfiniteTimeSpanConverter.cs
- coordinatorscratchpad.cs
- Condition.cs
- BinaryObjectWriter.cs
- COM2ExtendedUITypeEditor.cs
- Timeline.cs
- HyperLinkDesigner.cs
- Stopwatch.cs
- XpsSerializerFactory.cs
- KeyboardDevice.cs
- SecondaryViewProvider.cs
- Errors.cs
- HorizontalAlignConverter.cs
- ButtonColumn.cs
- Command.cs
- LockCookie.cs