Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Core / CSharp / System / Windows / Media / Animation / Generated / MatrixIndependentAnimationStorage.cs / 1 / MatrixIndependentAnimationStorage.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 MatrixIndependentAnimationStorage : 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_MATRIXRESOURCE; } } ////// 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; } Matrix tempValue = (Matrix)dobj.GetValue(_dependencyProperty); DUCE.MILCMD_MATRIXRESOURCE data; data.Type = MILCMD.MilCmdMatrixResource; data.Handle = _duceResource.GetHandle(channel); data.Value = CompositionResourceManager.MatrixToMilMatrix3x2D(tempValue); unsafe { channel.SendCommand( (byte*)&data, sizeof(DUCE.MILCMD_MATRIXRESOURCE)); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // //// 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 MatrixIndependentAnimationStorage : 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_MATRIXRESOURCE; } } ////// 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; } Matrix tempValue = (Matrix)dobj.GetValue(_dependencyProperty); DUCE.MILCMD_MATRIXRESOURCE data; data.Type = MILCMD.MilCmdMatrixResource; data.Handle = _duceResource.GetHandle(channel); data.Value = CompositionResourceManager.MatrixToMilMatrix3x2D(tempValue); unsafe { channel.SendCommand( (byte*)&data, sizeof(DUCE.MILCMD_MATRIXRESOURCE)); } } } } // 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
- WorkflowRequestContext.cs
- DataBoundControlHelper.cs
- CodeTypeReferenceSerializer.cs
- versioninfo.cs
- FlagsAttribute.cs
- DependencyObject.cs
- TypeReference.cs
- DbQueryCommandTree.cs
- DefinitionUpdate.cs
- HttpApplicationFactory.cs
- UserInitiatedRoutedEventPermission.cs
- RuntimeHelpers.cs
- FaultHandlingFilter.cs
- PopupRootAutomationPeer.cs
- WebPartActionVerb.cs
- XmlNavigatorStack.cs
- LicenseProviderAttribute.cs
- ScopelessEnumAttribute.cs
- XmlCharCheckingWriter.cs
- ImageMapEventArgs.cs
- HealthMonitoringSectionHelper.cs
- ExternalException.cs
- ParagraphVisual.cs
- WebPartConnectionsDisconnectVerb.cs
- FusionWrap.cs
- MetabaseServerConfig.cs
- StringUtil.cs
- WindowClosedEventArgs.cs
- UIPermission.cs
- CodeGenerator.cs
- Helpers.cs
- PixelShader.cs
- XmlSchemaSimpleContentRestriction.cs
- UnsettableComboBox.cs
- DataPagerCommandEventArgs.cs
- FixedElement.cs
- EdmSchemaError.cs
- TypeInfo.cs
- MetadataCollection.cs
- BoolExpression.cs
- LocalClientSecuritySettingsElement.cs
- HMACSHA512.cs
- VariableQuery.cs
- Queue.cs
- SchemaElementDecl.cs
- NameValueFileSectionHandler.cs
- RegexStringValidatorAttribute.cs
- SqlPersonalizationProvider.cs
- HttpHandlersSection.cs
- CircleEase.cs
- DesignerTransaction.cs
- WebBrowserContainer.cs
- BooleanSwitch.cs
- DetailsViewInsertEventArgs.cs
- TraceListeners.cs
- ConfigUtil.cs
- DataGridState.cs
- SaveWorkflowAsyncResult.cs
- XmlSchemaValidator.cs
- ImageInfo.cs
- HtmlShim.cs
- TreeViewBindingsEditor.cs
- CheckoutException.cs
- AddInDeploymentState.cs
- SessionStateSection.cs
- SecureUICommand.cs
- OrderPreservingMergeHelper.cs
- objectresult_tresulttype.cs
- Debug.cs
- DescriptionAttribute.cs
- PositiveTimeSpanValidator.cs
- TableHeaderCell.cs
- SettingsPropertyIsReadOnlyException.cs
- PropertyGrid.cs
- XmlDocument.cs
- SqlWriter.cs
- BrowserDefinitionCollection.cs
- XpsFilter.cs
- Serialization.cs
- FlowPanelDesigner.cs
- GridViewCellAutomationPeer.cs
- PhonemeEventArgs.cs
- ParameterModifier.cs
- NameScopePropertyAttribute.cs
- Nullable.cs
- DescendantBaseQuery.cs
- Viewport3DAutomationPeer.cs
- PersonalizationStateInfo.cs
- TraversalRequest.cs
- StrongName.cs
- LongValidatorAttribute.cs
- StreamHelper.cs
- BitmapEffectDrawing.cs
- AnnotationResourceCollection.cs
- ColorTranslator.cs
- ToolStripProgressBar.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- CustomLineCap.cs
- ConnectionConsumerAttribute.cs
- DataServiceContext.cs