Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / Effects / OuterGlowBitmapEffect.cs / 1407647 / OuterGlowBitmapEffect.cs
//------------------------------------------------------------------------------ // Microsoft Avalon // Copyright (c) Microsoft Corporation, 2005 // // File: OuterGlowBitmapEffect.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; using MS.Internal.PresentationCore; using System.Security; namespace System.Windows.Media.Effects { ////// OuterGlowBitmapEffectPrimitive /// public sealed partial class OuterGlowBitmapEffect : BitmapEffect { ////// Constructor /// public OuterGlowBitmapEffect() { } ////// Creates the unmanaged effect handle /// ////// Critical - returns a security critical type SafeHandle. /// Safe - Always returns null. /// [SecuritySafeCritical] [Obsolete(MS.Internal.Media.VisualTreeUtils.BitmapEffectObsoleteMessage)] unsafe protected override SafeHandle CreateUnmanagedEffect() { return null; } ////// Update (propagetes) properties to the unmanaged effect /// ////// This method demands permission because effects should not be run /// in partial trust. /// /// SecurityCritical - because SetValue has a link demand /// SecutiryTreatAsSafe - because it demans UIWindow permission /// [SecurityCritical, SecurityTreatAsSafe] [Obsolete(MS.Internal.Media.VisualTreeUtils.BitmapEffectObsoleteMessage)] protected override void UpdateUnmanagedPropertyState(SafeHandle unmanagedEffect) { SecurityHelper.DemandUIWindowPermission(); } } } // 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: OuterGlowBitmapEffect.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; using MS.Internal.PresentationCore; using System.Security; namespace System.Windows.Media.Effects { ////// OuterGlowBitmapEffectPrimitive /// public sealed partial class OuterGlowBitmapEffect : BitmapEffect { ////// Constructor /// public OuterGlowBitmapEffect() { } ////// Creates the unmanaged effect handle /// ////// Critical - returns a security critical type SafeHandle. /// Safe - Always returns null. /// [SecuritySafeCritical] [Obsolete(MS.Internal.Media.VisualTreeUtils.BitmapEffectObsoleteMessage)] unsafe protected override SafeHandle CreateUnmanagedEffect() { return null; } ////// Update (propagetes) properties to the unmanaged effect /// ////// This method demands permission because effects should not be run /// in partial trust. /// /// SecurityCritical - because SetValue has a link demand /// SecutiryTreatAsSafe - because it demans UIWindow permission /// [SecurityCritical, SecurityTreatAsSafe] [Obsolete(MS.Internal.Media.VisualTreeUtils.BitmapEffectObsoleteMessage)] protected override void UpdateUnmanagedPropertyState(SafeHandle unmanagedEffect) { SecurityHelper.DemandUIWindowPermission(); } } } // 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
- TerminatorSinks.cs
- FactorySettingsElement.cs
- TextCharacters.cs
- MDIControlStrip.cs
- SQlBooleanStorage.cs
- CryptoKeySecurity.cs
- DrawingBrush.cs
- DispatcherObject.cs
- NativeMethodsCLR.cs
- DeclarationUpdate.cs
- Command.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- ElementUtil.cs
- BufferBuilder.cs
- ConfigXmlAttribute.cs
- XPathQueryGenerator.cs
- BoolExpression.cs
- Panel.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- PackageRelationshipCollection.cs
- AuthenticationServiceManager.cs
- SQLRoleProvider.cs
- ApplicationFileParser.cs
- TypeDelegator.cs
- PixelShader.cs
- StatusBarAutomationPeer.cs
- RoutedCommand.cs
- XmlSchemaAny.cs
- ListView.cs
- MessageSmuggler.cs
- WorkflowTimerService.cs
- Vector3DCollectionValueSerializer.cs
- ToolStripContentPanel.cs
- ListViewSortEventArgs.cs
- BasicCellRelation.cs
- XmlNamespaceManager.cs
- DoubleLinkList.cs
- CollectionCodeDomSerializer.cs
- XmlSchemaException.cs
- UpdateEventArgs.cs
- SqlClientPermission.cs
- TextAdaptor.cs
- StickyNote.cs
- UnauthorizedWebPart.cs
- _DisconnectOverlappedAsyncResult.cs
- x509utils.cs
- EntityCommand.cs
- ControlsConfig.cs
- _emptywebproxy.cs
- Annotation.cs
- SafeEventLogReadHandle.cs
- HtmlSelect.cs
- Ipv6Element.cs
- ValidationResult.cs
- ButtonStandardAdapter.cs
- XmlnsDictionary.cs
- BindingMemberInfo.cs
- FolderBrowserDialogDesigner.cs
- ContentOperations.cs
- ResXResourceReader.cs
- InheritanceContextHelper.cs
- RecipientInfo.cs
- RequestDescription.cs
- DataGridItem.cs
- ContentElement.cs
- ToolboxComponentsCreatedEventArgs.cs
- ObjectDataSource.cs
- AccessibilityHelperForVista.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- HashRepartitionStream.cs
- CSharpCodeProvider.cs
- LinearKeyFrames.cs
- ProfileEventArgs.cs
- DataGridCellEditEndingEventArgs.cs
- SerializationInfoEnumerator.cs
- X509ClientCertificateAuthentication.cs
- BufferedGraphicsContext.cs
- PropertyMapper.cs
- UIElementHelper.cs
- TopClause.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- dsa.cs
- EntityDataSourceStatementEditor.cs
- RotateTransform3D.cs
- ObjectQueryState.cs
- PrintControllerWithStatusDialog.cs
- GraphicsContext.cs
- RequestQueryParser.cs
- MatrixConverter.cs
- TreeNodeCollection.cs
- OrderPreservingPipeliningSpoolingTask.cs
- DbException.cs
- CodeTypeMemberCollection.cs
- QuaternionConverter.cs
- SqlCacheDependencySection.cs
- FieldValue.cs
- ListViewTableCell.cs
- CollectionBase.cs
- SnapshotChangeTrackingStrategy.cs
- PropertyChangedEventManager.cs