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
- BitmapSourceSafeMILHandle.cs
- KnownTypesProvider.cs
- CommandPlan.cs
- CustomLineCap.cs
- TableDetailsRow.cs
- Span.cs
- HybridObjectCache.cs
- PasswordPropertyTextAttribute.cs
- InputLanguageProfileNotifySink.cs
- PagerSettings.cs
- CacheMemory.cs
- EmptyStringExpandableObjectConverter.cs
- StateDesigner.TransitionInfo.cs
- SmtpNegotiateAuthenticationModule.cs
- AdapterSwitches.cs
- ScrollContentPresenter.cs
- ClrProviderManifest.cs
- GridView.cs
- FragmentNavigationEventArgs.cs
- SourceFileInfo.cs
- DocumentApplication.cs
- BuildResultCache.cs
- GeometryDrawing.cs
- ManifestBasedResourceGroveler.cs
- FlowDocumentReaderAutomationPeer.cs
- XmlSchemaChoice.cs
- PaperSource.cs
- FlowSwitch.cs
- WaitForChangedResult.cs
- StringAnimationUsingKeyFrames.cs
- PrintPreviewDialog.cs
- SystemPens.cs
- GridViewUpdateEventArgs.cs
- InvokeWebService.cs
- EventlogProvider.cs
- PolicyException.cs
- XmlNodeChangedEventArgs.cs
- DataTemplateSelector.cs
- MetroSerializationManager.cs
- ExpressionEditorAttribute.cs
- ItemDragEvent.cs
- PointKeyFrameCollection.cs
- ParenthesizePropertyNameAttribute.cs
- RequestCacheValidator.cs
- KernelTypeValidation.cs
- AcceleratedTokenProviderState.cs
- CompilerWrapper.cs
- ConfigXmlCDataSection.cs
- DateTimeUtil.cs
- HostnameComparisonMode.cs
- Polygon.cs
- Maps.cs
- ApplicationServiceManager.cs
- DeflateStreamAsyncResult.cs
- FederatedMessageSecurityOverHttp.cs
- TextEditorParagraphs.cs
- PeerCredential.cs
- Win32Exception.cs
- ToolStripLocationCancelEventArgs.cs
- DefaultBindingPropertyAttribute.cs
- ConnectorMovedEventArgs.cs
- HtmlElementCollection.cs
- WinEventTracker.cs
- HttpServerVarsCollection.cs
- ConversionValidationRule.cs
- RenamedEventArgs.cs
- ObjectSet.cs
- SourceChangedEventArgs.cs
- MemberAssignmentAnalysis.cs
- ComponentDispatcherThread.cs
- HtmlInputText.cs
- TheQuery.cs
- TransactionContextValidator.cs
- ProfileEventArgs.cs
- ConsumerConnectionPointCollection.cs
- InfiniteIntConverter.cs
- UdpDiscoveryEndpointProvider.cs
- ClientFormsIdentity.cs
- BamlLocalizationDictionary.cs
- ScriptRegistrationManager.cs
- BoolLiteral.cs
- ToggleButtonAutomationPeer.cs
- DocumentViewerAutomationPeer.cs
- BrowsableAttribute.cs
- XPathNodeIterator.cs
- Win32SafeHandles.cs
- SafeBitVector32.cs
- AttachedPropertiesService.cs
- PerformanceCounters.cs
- DecoderBestFitFallback.cs
- DocumentsTrace.cs
- HtmlImage.cs
- ValidatingPropertiesEventArgs.cs
- TCPClient.cs
- ProgressBarBrushConverter.cs
- CacheDependency.cs
- ControllableStoryboardAction.cs
- DataTableClearEvent.cs
- DefaultShape.cs
- ProviderException.cs