Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / Animation / Generated / Vector3DIndependentAnimationStorage.cs / 1305600 / Vector3DIndependentAnimationStorage.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // This file was generated, please do not edit it directly. // // This file was generated from the codegen template located at: // wpf\src\Graphics\codegen\mcg\generators\AnimationResourceTemplate.cs // // Please see http://wiki/default.aspx/Microsoft.Projects.Avalon/MilCodeGen.html for more information. // //--------------------------------------------------------------------------- using System; using MS.Internal; using System.Diagnostics; using System.Runtime.InteropServices; using System.Threading; using System.Windows.Media; using System.Windows.Media.Composition; using System.Windows.Media.Media3D; using System.Security; using System.Security.Permissions; namespace System.Windows.Media.Animation { internal class Vector3DIndependentAnimationStorage : IndependentAnimationStorage { // // Method which returns the DUCE type of this class. // The base class needs this type when calling CreateOrAddRefOnChannel. // By providing this via a virtual, we avoid a per-instance storage cost. // protected override DUCE.ResourceType ResourceType { get { return DUCE.ResourceType.TYPE_VECTOR3DRESOURCE; } } ////// Critical: This code is critical because it has unsafe code blocks /// TreatAsSafe: This call is ok to expose. Channels can handle bad pointers /// [SecurityCritical,SecurityTreatAsSafe] protected override void UpdateResourceCore(DUCE.Channel channel) { Debug.Assert(_duceResource.IsOnChannel(channel)); DependencyObject dobj = ((DependencyObject) _dependencyObject.Target); // The dependency object was GCed, nothing to do here if (dobj == null) { return; } Vector3D tempValue = (Vector3D)dobj.GetValue(_dependencyProperty); DUCE.MILCMD_VECTOR3DRESOURCE data; data.Type = MILCMD.MilCmdVector3DResource; data.Handle = _duceResource.GetHandle(channel); data.Value = CompositionResourceManager.Vector3DToMilPoint3F(tempValue); unsafe { channel.SendCommand( (byte*)&data, sizeof(DUCE.MILCMD_VECTOR3DRESOURCE)); } } } } // 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
- XmlSerializationWriter.cs
- IndexingContentUnit.cs
- SafeFileMappingHandle.cs
- TypeConverterAttribute.cs
- DoubleIndependentAnimationStorage.cs
- HashSetDebugView.cs
- HelpKeywordAttribute.cs
- CommandEventArgs.cs
- Visual.cs
- CancellationToken.cs
- XmlSecureResolver.cs
- coordinator.cs
- UnmanagedMemoryStream.cs
- ArraySubsetEnumerator.cs
- HtmlUtf8RawTextWriter.cs
- Token.cs
- GACIdentityPermission.cs
- StrongNamePublicKeyBlob.cs
- IncrementalHitTester.cs
- ApplicationSecurityManager.cs
- CommandBinding.cs
- IsolatedStorageFilePermission.cs
- HtmlInputHidden.cs
- XmlWriterDelegator.cs
- TextCollapsingProperties.cs
- storepermission.cs
- BitmapDecoder.cs
- DataServiceEntityAttribute.cs
- ReadWriteObjectLock.cs
- DocComment.cs
- SettingsProperty.cs
- DecimalSumAggregationOperator.cs
- FrameAutomationPeer.cs
- ApplicationProxyInternal.cs
- TextEditorThreadLocalStore.cs
- TypeToStringValueConverter.cs
- HttpGetServerProtocol.cs
- LazyTextWriterCreator.cs
- DataDocumentXPathNavigator.cs
- ConfigurationException.cs
- Baml2006ReaderFrame.cs
- Exception.cs
- Stroke.cs
- PointAnimationUsingPath.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- EntityContainerRelationshipSet.cs
- DebugView.cs
- FactoryMaker.cs
- SingleTagSectionHandler.cs
- DrawingDrawingContext.cs
- TextParagraph.cs
- QueueProcessor.cs
- CapabilitiesSection.cs
- ConfigPathUtility.cs
- CellParaClient.cs
- Boolean.cs
- SqlCacheDependencyDatabase.cs
- SessionStateContainer.cs
- _ProxyChain.cs
- GeometryGroup.cs
- TextFormatterHost.cs
- ContentType.cs
- PeerNameRecordCollection.cs
- PathGeometry.cs
- CommandPlan.cs
- ContainerUIElement3D.cs
- HttpPostedFileWrapper.cs
- PrivilegeNotHeldException.cs
- ObjectIDGenerator.cs
- FunctionImportMapping.cs
- Console.cs
- LayoutEvent.cs
- ScriptReferenceEventArgs.cs
- Point3DAnimation.cs
- HwndAppCommandInputProvider.cs
- CompositeFontInfo.cs
- InvalidEnumArgumentException.cs
- TextReader.cs
- PeerEndPoint.cs
- EntityContainerEmitter.cs
- DesignerSerializationOptionsAttribute.cs
- MatrixCamera.cs
- ByteStack.cs
- ContentPlaceHolder.cs
- ExpressionNode.cs
- OperationAbortedException.cs
- MarkupCompilePass2.cs
- DigitShape.cs
- BitmapCache.cs
- TemplateManager.cs
- MessageQueueTransaction.cs
- TypefaceMap.cs
- FieldAccessException.cs
- DataGridGeneralPage.cs
- SymLanguageVendor.cs
- MemberDescriptor.cs
- Vars.cs
- DifferencingCollection.cs
- AppSettingsSection.cs
- FlowDocumentScrollViewer.cs