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
- EncoderNLS.cs
- XmlLanguageConverter.cs
- ConfigurationManagerInternalFactory.cs
- TemplateInstanceAttribute.cs
- TagPrefixCollection.cs
- AdornerLayer.cs
- SmtpMail.cs
- Line.cs
- Label.cs
- HttpCookie.cs
- CompiledQueryCacheKey.cs
- MatrixUtil.cs
- UrlMappingCollection.cs
- EventLogEntryCollection.cs
- PropertyBuilder.cs
- IndexedString.cs
- NameSpaceEvent.cs
- RawStylusInputCustomData.cs
- BitmapImage.cs
- PagePropertiesChangingEventArgs.cs
- Activation.cs
- MouseOverProperty.cs
- SchemaComplexType.cs
- CompilerError.cs
- Dictionary.cs
- IfAction.cs
- RegexBoyerMoore.cs
- EntityContainer.cs
- ParallelTimeline.cs
- JsonByteArrayDataContract.cs
- InertiaExpansionBehavior.cs
- DataGridViewCellParsingEventArgs.cs
- ArraySortHelper.cs
- ObjectDataSourceDisposingEventArgs.cs
- BroadcastEventHelper.cs
- TextTrailingWordEllipsis.cs
- SQLRoleProvider.cs
- XamlStream.cs
- StickyNoteHelper.cs
- MenuItemStyle.cs
- DataGridCommandEventArgs.cs
- TdsParserSafeHandles.cs
- StackSpiller.Generated.cs
- XXXInfos.cs
- FixedMaxHeap.cs
- followingsibling.cs
- SqlComparer.cs
- DataReaderContainer.cs
- StorageInfo.cs
- HandleInitializationContext.cs
- DescendentsWalkerBase.cs
- WindowsPen.cs
- HandlerFactoryWrapper.cs
- CommandHelpers.cs
- LineGeometry.cs
- PropertyOrder.cs
- TypeExtensions.cs
- GeneralTransformGroup.cs
- ToolStripSplitButton.cs
- DateTimeValueSerializerContext.cs
- SmiContextFactory.cs
- HelpProvider.cs
- QueryNode.cs
- RuleConditionDialog.cs
- ZoneIdentityPermission.cs
- safesecurityhelperavalon.cs
- FileDialog_Vista.cs
- IndependentAnimationStorage.cs
- ICspAsymmetricAlgorithm.cs
- XmlNodeChangedEventManager.cs
- AttachmentService.cs
- DataGridViewBand.cs
- GeneralTransform3DCollection.cs
- SafeBitVector32.cs
- WCFServiceClientProxyGenerator.cs
- PermissionSetTriple.cs
- ExpandSegmentCollection.cs
- ObjectViewFactory.cs
- AnimationClockResource.cs
- Binding.cs
- DocumentPage.cs
- MappingMetadataHelper.cs
- webproxy.cs
- ThrowHelper.cs
- FixedSOMTableRow.cs
- DateTimeStorage.cs
- DecoderNLS.cs
- NameSpaceExtractor.cs
- xsdvalidator.cs
- DetailsViewCommandEventArgs.cs
- Evaluator.cs
- SqlWebEventProvider.cs
- MetadataSerializer.cs
- TemplateXamlParser.cs
- RayMeshGeometry3DHitTestResult.cs
- FolderLevelBuildProviderAppliesToAttribute.cs
- EncoderNLS.cs
- SHA1Managed.cs
- X509UI.cs
- TransformationRules.cs