Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SqlAggregateChecker.cs
- PtsHelper.cs
- StoreItemCollection.cs
- WmpBitmapEncoder.cs
- WindowsFormsDesignerOptionService.cs
- Attribute.cs
- EmissiveMaterial.cs
- AddInController.cs
- XmlSubtreeReader.cs
- SHA384CryptoServiceProvider.cs
- HelpProvider.cs
- ReferencedCollectionType.cs
- ApplicationContext.cs
- StickyNoteHelper.cs
- FragmentNavigationEventArgs.cs
- MimeWriter.cs
- DirectoryNotFoundException.cs
- DummyDataSource.cs
- BaseDataBoundControl.cs
- XslTransform.cs
- PerformanceCountersElement.cs
- Parser.cs
- LayoutInformation.cs
- StringPropertyBuilder.cs
- MenuItem.cs
- DBParameter.cs
- DrawingCollection.cs
- ToolStripContainer.cs
- GACIdentityPermission.cs
- Profiler.cs
- HostExecutionContextManager.cs
- Section.cs
- RectIndependentAnimationStorage.cs
- TableItemPattern.cs
- _LazyAsyncResult.cs
- WebBrowserHelper.cs
- Model3DGroup.cs
- ToolStripRenderEventArgs.cs
- DelegatingConfigHost.cs
- Propagator.Evaluator.cs
- AutomationProperties.cs
- MexServiceChannelBuilder.cs
- TrackBarRenderer.cs
- XmlSchemaGroupRef.cs
- BitmapPalettes.cs
- HtmlUtf8RawTextWriter.cs
- DataGridItemCollection.cs
- PolicyUnit.cs
- ExpressionNode.cs
- QilLoop.cs
- UpdateManifestForBrowserApplication.cs
- AutomationProperties.cs
- EdgeProfileValidation.cs
- DurationConverter.cs
- SQLDoubleStorage.cs
- StoreItemCollection.cs
- DataGridCell.cs
- ActiveXHost.cs
- StoreAnnotationsMap.cs
- Repeater.cs
- Variant.cs
- Literal.cs
- InfoCardTrace.cs
- XmlDocumentType.cs
- QueryableFilterUserControl.cs
- Nullable.cs
- ServiceRouteHandler.cs
- MethodBody.cs
- InheritanceAttribute.cs
- BaseConfigurationRecord.cs
- Ipv6Element.cs
- XmlValidatingReaderImpl.cs
- NgenServicingAttributes.cs
- EntityTypeBase.cs
- basemetadatamappingvisitor.cs
- ForeignConstraint.cs
- Int32AnimationBase.cs
- MLangCodePageEncoding.cs
- TextContainerChangeEventArgs.cs
- ServiceBehaviorElementCollection.cs
- MarkupExtensionReturnTypeAttribute.cs
- TreeNodeMouseHoverEvent.cs
- ICspAsymmetricAlgorithm.cs
- DataFieldConverter.cs
- GeometryDrawing.cs
- BordersPage.cs
- ICollection.cs
- ValidationPropertyAttribute.cs
- DataBinding.cs
- EditorZone.cs
- PathGeometry.cs
- EditorPart.cs
- ScriptManager.cs
- BinaryObjectReader.cs
- RTLAwareMessageBox.cs
- TaiwanLunisolarCalendar.cs
- ClientReliableChannelBinder.cs
- FontUnitConverter.cs
- ProcessRequestArgs.cs
- FieldNameLookup.cs