Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Core / CSharp / System / Windows / Media / Effects / BitmapEffectOutputConnector.cs / 1 / BitmapEffectOutputConnector.cs
//------------------------------------------------------------------------------ // Microsoft Avalon // Copyright (c) Microsoft Corporation, 2005 // // File: BitmapEffectOutputConnector.cs //----------------------------------------------------------------------------- using MS.Internal; using System; using System.IO; using System.ComponentModel; using System.ComponentModel.Design.Serialization; using System.Diagnostics; using System.Reflection; using System.Runtime.InteropServices; using System.Windows; using System.Windows.Media; using System.Windows.Markup; using System.Windows.Media.Animation; using System.Windows.Media.Composition; namespace System.Windows.Media.Effects { ////// BitmapEffectOutputConnector /// internal class BitmapEffectOutputConnector { SafeMILHandle /*IMILBitmapEffectOutputConnector*/ connector; internal BitmapEffectOutputConnector(SafeMILHandle nativeConnector) { Debug.Assert(nativeConnector != null); connector = nativeConnector; } internal SafeMILHandle NativeConnectorSafeHandle { get { return connector; } } #if never ////// Returns true if the output connector is connected /// public bool IsConnected { get { Debug.Assert(connector != null); bool fIsConnected; HRESULT.Check(MS.Win32.PresentationCore.UnsafeNativeMethods.IMILBitmapEffectConnector.IsConnected(connector, out fIsConnected)); return fIsConnected; } } ////// Returns the number of connections /// public int Connections { get { uint iNumConnections; HRESULT.Check(MS.Win32.PresentationCore.UnsafeNativeMethods.IMILBitmapEffectOutputConnector.GetNumberConnections(connector, out iNumConnections)); return (int)iNumConnections; } } ////// Return input connector /// /// connector index ///input connector public BitmapEffectInputConnector GetConnection(int index) { SafeMILHandle connection; HRESULT.Check(MS.Win32.PresentationCore.UnsafeNativeMethods.IMILBitmapEffectOutputConnector.GetConnection(connector, (uint)index, out connection)); return new BitmapEffectInputConnector(connection); } #endif } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ // Microsoft Avalon // Copyright (c) Microsoft Corporation, 2005 // // File: BitmapEffectOutputConnector.cs //----------------------------------------------------------------------------- using MS.Internal; using System; using System.IO; using System.ComponentModel; using System.ComponentModel.Design.Serialization; using System.Diagnostics; using System.Reflection; using System.Runtime.InteropServices; using System.Windows; using System.Windows.Media; using System.Windows.Markup; using System.Windows.Media.Animation; using System.Windows.Media.Composition; namespace System.Windows.Media.Effects { ////// BitmapEffectOutputConnector /// internal class BitmapEffectOutputConnector { SafeMILHandle /*IMILBitmapEffectOutputConnector*/ connector; internal BitmapEffectOutputConnector(SafeMILHandle nativeConnector) { Debug.Assert(nativeConnector != null); connector = nativeConnector; } internal SafeMILHandle NativeConnectorSafeHandle { get { return connector; } } #if never ////// Returns true if the output connector is connected /// public bool IsConnected { get { Debug.Assert(connector != null); bool fIsConnected; HRESULT.Check(MS.Win32.PresentationCore.UnsafeNativeMethods.IMILBitmapEffectConnector.IsConnected(connector, out fIsConnected)); return fIsConnected; } } ////// Returns the number of connections /// public int Connections { get { uint iNumConnections; HRESULT.Check(MS.Win32.PresentationCore.UnsafeNativeMethods.IMILBitmapEffectOutputConnector.GetNumberConnections(connector, out iNumConnections)); return (int)iNumConnections; } } ////// Return input connector /// /// connector index ///input connector public BitmapEffectInputConnector GetConnection(int index) { SafeMILHandle connection; HRESULT.Check(MS.Win32.PresentationCore.UnsafeNativeMethods.IMILBitmapEffectOutputConnector.GetConnection(connector, (uint)index, out connection)); return new BitmapEffectInputConnector(connection); } #endif } } // 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
- MachineKeyConverter.cs
- TemplateContent.cs
- DependencyPropertyValueSerializer.cs
- MenuItem.cs
- AnnotationDocumentPaginator.cs
- SizeAnimationUsingKeyFrames.cs
- EmptyElement.cs
- CapiHashAlgorithm.cs
- InputLangChangeRequestEvent.cs
- LabelExpression.cs
- XD.cs
- AdornerDecorator.cs
- InfoCardArgumentException.cs
- FixedSOMTable.cs
- SamlDoNotCacheCondition.cs
- DataPagerFieldCommandEventArgs.cs
- StreamSecurityUpgradeInitiatorAsyncResult.cs
- ExpressionBindings.cs
- SizeValueSerializer.cs
- SharedUtils.cs
- DeflateEmulationStream.cs
- Compiler.cs
- ThicknessAnimation.cs
- DefaultValueTypeConverter.cs
- EventMappingSettings.cs
- SortQuery.cs
- MemoryFailPoint.cs
- ILGenerator.cs
- TypefaceMap.cs
- DbDataReader.cs
- SetterBaseCollection.cs
- BamlReader.cs
- TypeTypeConverter.cs
- SqlDataSource.cs
- DataGridViewHeaderCell.cs
- EngineSiteSapi.cs
- CacheRequest.cs
- CommandConverter.cs
- AdPostCacheSubstitution.cs
- KeyValueInternalCollection.cs
- SettingsPropertyValue.cs
- UndoEngine.cs
- TypeGenericEnumerableViewSchema.cs
- WebPartUserCapability.cs
- Command.cs
- EnvelopedPkcs7.cs
- EncryptedPackageFilter.cs
- DbConnectionStringBuilder.cs
- DuplicateWaitObjectException.cs
- XmlObjectSerializerReadContextComplexJson.cs
- HMACRIPEMD160.cs
- ModelUIElement3D.cs
- DataConnectionHelper.cs
- EmptyQuery.cs
- Module.cs
- TraceHandler.cs
- CollectionViewGroupInternal.cs
- BinaryUtilClasses.cs
- _ServiceNameStore.cs
- SuppressMergeCheckAttribute.cs
- HttpRequestWrapper.cs
- WindowsClaimSet.cs
- FrameworkObject.cs
- IssuedTokenServiceCredential.cs
- PolicyManager.cs
- MessageQueuePermission.cs
- ChannelCacheSettings.cs
- HostedHttpTransportManager.cs
- InternalConfigSettingsFactory.cs
- SizeFConverter.cs
- DesignTimeVisibleAttribute.cs
- PagedDataSource.cs
- AttributeQuery.cs
- AssemblyNameEqualityComparer.cs
- GridViewAutomationPeer.cs
- FileDialog_Vista.cs
- DataGridHeaderBorder.cs
- StdValidatorsAndConverters.cs
- SqlGenerator.cs
- TextParagraph.cs
- StaticTextPointer.cs
- DataViewManagerListItemTypeDescriptor.cs
- FrameworkContextData.cs
- DigitShape.cs
- Int64AnimationUsingKeyFrames.cs
- AggregateNode.cs
- SimpleType.cs
- DuplexChannelBinder.cs
- PrePrepareMethodAttribute.cs
- ProfilePropertyMetadata.cs
- X509Utils.cs
- HtmlInputFile.cs
- SafeThemeHandle.cs
- InvalidOleVariantTypeException.cs
- BadImageFormatException.cs
- LocationReferenceEnvironment.cs
- Subordinate.cs
- Debugger.cs
- ObjectSecurity.cs
- SchemaSetCompiler.cs