Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Base / System / Windows / Media / Converters / Generated / MatrixValueSerializer.cs / 1305600 / MatrixValueSerializer.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // This file was generated, please do not edit it directly. // // Please see http://wiki/default.aspx/Microsoft.Projects.Avalon/MilCodeGen.html for more information. // //--------------------------------------------------------------------------- using MS.Internal; using MS.Internal.WindowsBase; using System; using System.Collections; using System.ComponentModel; using System.Diagnostics; using System.Globalization; using System.Reflection; using System.Runtime.InteropServices; using System.ComponentModel.Design.Serialization; using System.Windows.Markup; using System.Windows.Media.Converters; using System.Windows; using System.Windows.Media; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings namespace System.Windows.Media.Converters { ////// MatrixValueSerializer - ValueSerializer class for converting instances of strings to and from Matrix instances /// This is used by the MarkupWriter class. /// public class MatrixValueSerializer : ValueSerializer { ////// Returns true. /// public override bool CanConvertFromString(string value, IValueSerializerContext context) { return true; } ////// Returns true if the given value can be converted into a string /// public override bool CanConvertToString(object value, IValueSerializerContext context) { // Validate the input type if (!(value is Matrix)) { return false; } return true; } ////// Converts a string into a Matrix. /// public override object ConvertFromString(string value, IValueSerializerContext context) { if (value != null) { return Matrix.Parse(value ); } else { return base.ConvertFromString( value, context ); } } ////// Converts the value into a string. /// public override string ConvertToString(object value, IValueSerializerContext context) { if (value is Matrix) { Matrix instance = (Matrix) value; #pragma warning suppress 6506 // instance is obviously not null return instance.ConvertToString(null, System.Windows.Markup.TypeConverterHelper.InvariantEnglishUS); } return base.ConvertToString(value, context); } } } // 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
- TextEffect.cs
- DataGridCellEditEndingEventArgs.cs
- DesignerActionUIStateChangeEventArgs.cs
- Tablet.cs
- IntSecurity.cs
- ProcessStartInfo.cs
- IisTraceWebEventProvider.cs
- ExpandSegmentCollection.cs
- ErrorRuntimeConfig.cs
- MenuBindingsEditorForm.cs
- CustomErrorCollection.cs
- InvariantComparer.cs
- _ScatterGatherBuffers.cs
- IDataContractSurrogate.cs
- MimeMapping.cs
- TemplateControl.cs
- WinEventTracker.cs
- FamilyTypeface.cs
- StateWorkerRequest.cs
- MetabaseSettingsIis7.cs
- HttpListenerContext.cs
- FilterFactory.cs
- NotifyIcon.cs
- XmlSchemaSimpleTypeList.cs
- RepeatInfo.cs
- ArrayMergeHelper.cs
- ToolboxComponentsCreatedEventArgs.cs
- ConfigXmlSignificantWhitespace.cs
- PropertyDescriptorCollection.cs
- EntityDataSourceContainerNameConverter.cs
- GraphicsContext.cs
- _LocalDataStore.cs
- jithelpers.cs
- PerformanceCounterPermissionAttribute.cs
- XmlAttribute.cs
- coordinator.cs
- XamlBuildTaskServices.cs
- FlowDocumentReader.cs
- DynamicMethod.cs
- BevelBitmapEffect.cs
- InternalConfigEventArgs.cs
- IndependentAnimationStorage.cs
- Keywords.cs
- KnownBoxes.cs
- AppSettingsSection.cs
- CachingParameterInspector.cs
- VScrollBar.cs
- UniqueConstraint.cs
- KeyManager.cs
- TileModeValidation.cs
- Message.cs
- TimelineClockCollection.cs
- Margins.cs
- SmtpDigestAuthenticationModule.cs
- RegexRunner.cs
- Blend.cs
- RIPEMD160.cs
- ItemDragEvent.cs
- EmbossBitmapEffect.cs
- BitmapInitialize.cs
- InkCanvasInnerCanvas.cs
- FilterQuery.cs
- ProviderSettings.cs
- OrderedEnumerableRowCollection.cs
- _UriTypeConverter.cs
- DataGridPagerStyle.cs
- WebServiceResponseDesigner.cs
- SoapInteropTypes.cs
- XmlAtomicValue.cs
- ComEventsMethod.cs
- BinaryMessageFormatter.cs
- DataSourceControlBuilder.cs
- WindowsFormsSynchronizationContext.cs
- ZipArchive.cs
- Cell.cs
- FlowDocumentPaginator.cs
- Parameter.cs
- WebPartCloseVerb.cs
- QueryRewriter.cs
- XmlBindingWorker.cs
- CodeCompiler.cs
- RotateTransform.cs
- ElementAction.cs
- EncodingTable.cs
- ByteAnimationUsingKeyFrames.cs
- DrawingAttributeSerializer.cs
- LocatorGroup.cs
- CodeDelegateCreateExpression.cs
- GraphicsPath.cs
- PageCache.cs
- Debug.cs
- DateTimeParse.cs
- StylusPointCollection.cs
- URLString.cs
- LOSFormatter.cs
- TextProviderWrapper.cs
- MultiPageTextView.cs
- Emitter.cs
- HtmlLink.cs
- SqlNotificationRequest.cs