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
- DBAsyncResult.cs
- AssemblyCollection.cs
- SqlNode.cs
- SudsParser.cs
- TreeNode.cs
- PrintPreviewGraphics.cs
- FormView.cs
- Speller.cs
- EnumBuilder.cs
- COM2IDispatchConverter.cs
- TdsParserSafeHandles.cs
- Shape.cs
- ObjectSerializerFactory.cs
- PlanCompiler.cs
- ClientSession.cs
- PathFigureCollection.cs
- PointAnimationClockResource.cs
- CheckBoxBaseAdapter.cs
- SqlNodeAnnotation.cs
- CredentialCache.cs
- ReservationCollection.cs
- CheckedPointers.cs
- NamespaceMapping.cs
- WebPartCatalogCloseVerb.cs
- ToolStripItemCollection.cs
- KeyGestureConverter.cs
- WeakReferenceList.cs
- XmlSchemaAnnotated.cs
- DictionarySectionHandler.cs
- VirtualDirectoryMappingCollection.cs
- COM2ExtendedBrowsingHandler.cs
- SessionStateUtil.cs
- MenuItemStyleCollectionEditor.cs
- MailWriter.cs
- Light.cs
- SuspendDesigner.cs
- arabicshape.cs
- HandlerBase.cs
- ObjectKeyFrameCollection.cs
- RTLAwareMessageBox.cs
- EmptyControlCollection.cs
- WebPartEditorOkVerb.cs
- LocatorManager.cs
- SendContent.cs
- ReferentialConstraint.cs
- MergeFilterQuery.cs
- AudioFormatConverter.cs
- PageTheme.cs
- CodeTypeReferenceExpression.cs
- HtmlMobileTextWriter.cs
- MethodCallTranslator.cs
- DropDownButton.cs
- OdbcDataAdapter.cs
- RowVisual.cs
- EdmItemError.cs
- NavigationProperty.cs
- ColumnResizeUndoUnit.cs
- FontConverter.cs
- EventMappingSettings.cs
- ToolBar.cs
- unitconverter.cs
- KeyValuePairs.cs
- OleDbInfoMessageEvent.cs
- UnsafeNativeMethods.cs
- HwndStylusInputProvider.cs
- DataSourceExpression.cs
- ParameterDataSourceExpression.cs
- ComboBoxDesigner.cs
- ComponentSerializationService.cs
- DesignerListAdapter.cs
- TableRowGroupCollection.cs
- ColorTranslator.cs
- DataSysAttribute.cs
- DataServiceException.cs
- DrawListViewColumnHeaderEventArgs.cs
- SpecialTypeDataContract.cs
- PathGeometry.cs
- HttpListenerElement.cs
- ProfileProvider.cs
- Margins.cs
- AsymmetricKeyExchangeDeformatter.cs
- ModuleBuilderData.cs
- WsatRegistrationHeader.cs
- DrawTreeNodeEventArgs.cs
- _SSPISessionCache.cs
- BitmapScalingModeValidation.cs
- EventQueueState.cs
- UrlParameterWriter.cs
- TextBoxDesigner.cs
- XmlElementList.cs
- StaticFileHandler.cs
- CompoundFileIOPermission.cs
- FtpWebRequest.cs
- SmuggledIUnknown.cs
- DesignerValidatorAdapter.cs
- ISAPIWorkerRequest.cs
- UIInitializationException.cs
- TypeDependencyAttribute.cs
- X509SubjectKeyIdentifierClause.cs
- LineVisual.cs