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
- SignedXmlDebugLog.cs
- XmlElementAttributes.cs
- MailMessage.cs
- ResXFileRef.cs
- SelectionItemProviderWrapper.cs
- DiscreteKeyFrames.cs
- UdpDiscoveryEndpointProvider.cs
- XmlSchemaIdentityConstraint.cs
- VScrollProperties.cs
- XmlNode.cs
- ResourceAttributes.cs
- ZoneMembershipCondition.cs
- SafeRightsManagementHandle.cs
- CreateWorkflowOwnerCommand.cs
- Rule.cs
- HtmlGenericControl.cs
- Stopwatch.cs
- DependencyObjectPropertyDescriptor.cs
- XmlArrayItemAttributes.cs
- SingletonChannelAcceptor.cs
- Context.cs
- FileSecurity.cs
- TreePrinter.cs
- PeerApplication.cs
- EUCJPEncoding.cs
- Panel.cs
- ActiveXSite.cs
- RSAPKCS1SignatureFormatter.cs
- Model3D.cs
- PersonalizationStateInfo.cs
- StsCommunicationException.cs
- EmptyQuery.cs
- SmtpReplyReaderFactory.cs
- SafeProcessHandle.cs
- BamlTreeNode.cs
- SqlUtil.cs
- CodeCompileUnit.cs
- StringStorage.cs
- CachedCompositeFamily.cs
- ObjectStorage.cs
- ValueConversionAttribute.cs
- ImageBrush.cs
- SoapMessage.cs
- XPathNodeInfoAtom.cs
- EventWaitHandleSecurity.cs
- HostUtils.cs
- AuthenticatedStream.cs
- OleDbSchemaGuid.cs
- SqlInternalConnectionTds.cs
- ByteStack.cs
- MetadataWorkspace.cs
- SystemIdentity.cs
- WSTrust.cs
- TextBoxAutoCompleteSourceConverter.cs
- hwndwrapper.cs
- safesecurityhelperavalon.cs
- InvalidPropValue.cs
- ParsedRoute.cs
- ISessionStateStore.cs
- GridViewRowCollection.cs
- XmlSchemaObjectCollection.cs
- CompoundFileDeflateTransform.cs
- XamlToRtfWriter.cs
- SqlClientWrapperSmiStream.cs
- MenuStrip.cs
- ErrorFormatterPage.cs
- NotifyInputEventArgs.cs
- WindowsGraphics.cs
- AffineTransform3D.cs
- ToolstripProfessionalRenderer.cs
- ThicknessConverter.cs
- entityreference_tresulttype.cs
- DistributedTransactionPermission.cs
- TreeViewImageIndexConverter.cs
- EntityViewContainer.cs
- XmlWrappingReader.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- EndpointAddressMessageFilterTable.cs
- NotifyParentPropertyAttribute.cs
- EntityDescriptor.cs
- SelectorAutomationPeer.cs
- VersionedStream.cs
- QilTypeChecker.cs
- arclist.cs
- CharEntityEncoderFallback.cs
- View.cs
- HttpHandlersSection.cs
- MessageQueueConverter.cs
- ListViewContainer.cs
- PingReply.cs
- PartBasedPackageProperties.cs
- VerificationAttribute.cs
- SuppressMessageAttribute.cs
- SqlCachedBuffer.cs
- SettingsBase.cs
- CodeDOMProvider.cs
- MatrixKeyFrameCollection.cs
- DocumentGridPage.cs
- ToolStripDropDownMenu.cs
- AsyncOperation.cs