Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / Media / Animation / Generated / DoubleIndependentAnimationStorage.cs / 2 / DoubleIndependentAnimationStorage.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: // windows\mil\codegen\mcg\generators\AnimationResourceTemplate.cs // // Please see [....]/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 DoubleIndependentAnimationStorage : 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_DOUBLERESOURCE; } } ////// 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; } Double tempValue = (Double)dobj.GetValue(_dependencyProperty); DUCE.MILCMD_DOUBLERESOURCE data; data.Type = MILCMD.MilCmdDoubleResource; data.Handle = _duceResource.GetHandle(channel); data.Value = tempValue; unsafe { channel.SendCommand( (byte*)&data, sizeof(DUCE.MILCMD_DOUBLERESOURCE)); } } } } // 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
- Events.cs
- Focus.cs
- KeyboardDevice.cs
- DBCommandBuilder.cs
- XmlDocument.cs
- Helpers.cs
- BinaryFormatter.cs
- ColorTranslator.cs
- CngAlgorithm.cs
- SQLCharsStorage.cs
- TdsParserSessionPool.cs
- TypeConstant.cs
- ToolStripRenderer.cs
- TickBar.cs
- ISessionStateStore.cs
- ToolStripItemRenderEventArgs.cs
- RequestQueue.cs
- CompilerScopeManager.cs
- PerspectiveCamera.cs
- TCPClient.cs
- GridProviderWrapper.cs
- BoundColumn.cs
- HttpRawResponse.cs
- BamlCollectionHolder.cs
- EventListenerClientSide.cs
- SafeMILHandle.cs
- ClientRoleProvider.cs
- HybridObjectCache.cs
- DefaultAsyncDataDispatcher.cs
- SignerInfo.cs
- WebRequestModulesSection.cs
- SqlStream.cs
- NetworkInformationException.cs
- Walker.cs
- InvalidComObjectException.cs
- XmlCharCheckingWriter.cs
- Helper.cs
- QuerySettings.cs
- BackgroundFormatInfo.cs
- webeventbuffer.cs
- X509Certificate2.cs
- EventLogLink.cs
- XmlReflectionMember.cs
- KeyValuePairs.cs
- DbParameterCollectionHelper.cs
- XmlCountingReader.cs
- TextCompositionEventArgs.cs
- VisualCollection.cs
- FixedSOMPageConstructor.cs
- MulticastIPAddressInformationCollection.cs
- TrackingDataItemValue.cs
- StateInitialization.cs
- FilteredSchemaElementLookUpTable.cs
- RecognitionEventArgs.cs
- SQLChars.cs
- LogExtent.cs
- URLAttribute.cs
- RewritingPass.cs
- CompositeDataBoundControl.cs
- HtmlForm.cs
- DataGridViewCellValueEventArgs.cs
- GenericRootAutomationPeer.cs
- DefaultEventAttribute.cs
- FileSecurity.cs
- Event.cs
- TableRowCollection.cs
- filewebresponse.cs
- CharacterBuffer.cs
- HttpCapabilitiesBase.cs
- OptimizerPatterns.cs
- HtmlShimManager.cs
- PersonalizationStateInfoCollection.cs
- UrlPropertyAttribute.cs
- SqlGatherConsumedAliases.cs
- UnmanagedHandle.cs
- ProcessHostConfigUtils.cs
- ApplicationServiceHelper.cs
- AuthorizationSection.cs
- NonBatchDirectoryCompiler.cs
- SystemResources.cs
- UInt64Converter.cs
- DesignerActionItem.cs
- SafeLocalAllocation.cs
- EncoderParameters.cs
- ScriptRegistrationManager.cs
- SpellerInterop.cs
- IisTraceListener.cs
- UncommonField.cs
- RestHandler.cs
- ChannelEndpointElementCollection.cs
- ContentPresenter.cs
- CryptoConfig.cs
- DataControlButton.cs
- ListSourceHelper.cs
- Internal.cs
- SqlDependencyUtils.cs
- TextTreeDeleteContentUndoUnit.cs
- SerializationBinder.cs
- PropertyDescriptorCollection.cs
- DebugHandleTracker.cs