Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Print / Reach / Serialization / manager / XpsTokenContext.cs / 1 / XpsTokenContext.cs
/*++ Copyright (C) 2004- 2005 Microsoft Corporation All rights reserved. Module Name: XpsTokenContext.cs Abstract: Author: [....] ([....]) 1-December-2004 Revision History: --*/ using System; using System.Collections; using System.Collections.Specialized; using System.ComponentModel; using System.Diagnostics; using System.Reflection; using System.Xml; using System.IO; using System.Security; using System.Security.Permissions; using System.ComponentModel.Design.Serialization; using System.Windows.Xps.Packaging; using System.Windows.Documents; using System.Windows.Media; using System.Windows.Markup; namespace System.Windows.Xps.Serialization { internal class XpsTokenContext : System.ComponentModel.ITypeDescriptorContext { ////// Constructor for XpsTokenContext /// public XpsTokenContext( PackageSerializationManager serializationManager, SerializablePropertyContext propertyContext ) { // // Make necessary checks and throw necessary exceptions // this.serializationManager = serializationManager; this.targetObject = propertyContext.TargetObject; this.objectValue = propertyContext.Value; this.propertyInfo = propertyContext.PropertyInfo; this.dependencyProperty = (propertyContext is SerializableDependencyPropertyContext) ? (DependencyProperty)((SerializableDependencyPropertyContext)propertyContext).DependencyProperty : null; } ////// Constructor for XpsTokenContext /// public XpsTokenContext( PackageSerializationManager serializationManager, Object targetObject, Object objectValue ) { // // Make necessary checks and throw necessary exceptions // this.serializationManager = serializationManager; this.targetObject = targetObject; this.objectValue = objectValue; this.propertyInfo = null; this.dependencyProperty = null; } ////// /// public void OnComponentChanged() { } //// // public bool OnComponentChanging() { return false; } //// // public object GetService( Type serviceType ) { Object serviceObject = null; if (serviceType == typeof(XpsSerializationManager) || serviceType == typeof(XpsSerializationManagerAsync) || serviceType == typeof(ServiceProviders)) { serviceObject = serializationManager; } return serviceObject; } //// // public System.ComponentModel.IContainer Container { get { return null; } } //// // public object Instance { get { return objectValue; } } //// // public PropertyInfo PropertyInfo { get { return propertyInfo; } } //// // public DependencyProperty DependencyProperty { get { return dependencyProperty; } } //// // public object TargetObject { get { return targetObject; } } //// // public PropertyDescriptor PropertyDescriptor { get { return null; } } private PackageSerializationManager serializationManager; private Object targetObject; private Object objectValue; private PropertyInfo propertyInfo; private DependencyProperty dependencyProperty; }; } // 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
- _ListenerAsyncResult.cs
- LinqDataSourceDeleteEventArgs.cs
- SystemIcons.cs
- ExtendedPropertyCollection.cs
- DetailsViewCommandEventArgs.cs
- CapabilitiesPattern.cs
- XmlChildEnumerator.cs
- HTMLTextWriter.cs
- SerializationUtility.cs
- JavaScriptSerializer.cs
- SourceChangedEventArgs.cs
- SystemColors.cs
- SelectedGridItemChangedEvent.cs
- MouseCaptureWithinProperty.cs
- GPPOINT.cs
- BlurBitmapEffect.cs
- LogExtent.cs
- CodeVariableReferenceExpression.cs
- WebServicesDescriptionAttribute.cs
- PixelFormats.cs
- AuthenticationService.cs
- IntranetCredentialPolicy.cs
- GestureRecognizer.cs
- ProviderSettingsCollection.cs
- EventBindingService.cs
- IntAverageAggregationOperator.cs
- DoubleSumAggregationOperator.cs
- TargetConverter.cs
- DialogDivider.cs
- CompiledELinqQueryState.cs
- NativeObjectSecurity.cs
- SqlConnectionHelper.cs
- WorkflowTimerService.cs
- SqlMultiplexer.cs
- UIElementHelper.cs
- DrawingAttributeSerializer.cs
- XamlSerializationHelper.cs
- SqlConnectionHelper.cs
- LogSwitch.cs
- SafeLibraryHandle.cs
- SecurityStateEncoder.cs
- ExpressionVisitorHelpers.cs
- XmlChildEnumerator.cs
- safelinkcollection.cs
- StringFunctions.cs
- EntityDataSourceReferenceGroup.cs
- backend.cs
- Int32Converter.cs
- WindowsPrincipal.cs
- ContextBase.cs
- OciEnlistContext.cs
- SmtpFailedRecipientException.cs
- DataGridViewCell.cs
- WindowsRebar.cs
- ConfigurationProperty.cs
- XmlSchemaSimpleContentExtension.cs
- LongPath.cs
- MapPathBasedVirtualPathProvider.cs
- RegularExpressionValidator.cs
- TabPanel.cs
- FunctionDetailsReader.cs
- SequenceDesigner.cs
- CookielessHelper.cs
- ClientConfigurationHost.cs
- AsymmetricCryptoHandle.cs
- SqlSelectClauseBuilder.cs
- Span.cs
- TdsParameterSetter.cs
- InputChannelAcceptor.cs
- WebPartConnectionsConfigureVerb.cs
- InkPresenter.cs
- HMACSHA512.cs
- OutOfProcStateClientManager.cs
- ArcSegment.cs
- ReflectionUtil.cs
- XmlFormatWriterGenerator.cs
- XmlReflectionMember.cs
- MetadataUtilsSmi.cs
- IOThreadScheduler.cs
- WeakReadOnlyCollection.cs
- CompiledQuery.cs
- DataGridRowClipboardEventArgs.cs
- GeometryModel3D.cs
- KeyTime.cs
- While.cs
- MemberExpression.cs
- ProxyGenerationError.cs
- WasEndpointConfigContainer.cs
- HandlerFactoryCache.cs
- WebControlAdapter.cs
- HtmlPanelAdapter.cs
- TouchesOverProperty.cs
- DesignTimeParseData.cs
- Trigger.cs
- QueryAsyncResult.cs
- DropTarget.cs
- EncodingInfo.cs
- ImageFormatConverter.cs
- PageCatalogPart.cs
- RelationshipNavigation.cs