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
- PerformanceCounterManager.cs
- HelloMessage11.cs
- XPathAxisIterator.cs
- CodeLabeledStatement.cs
- VarInfo.cs
- CodeDomSerializerException.cs
- HScrollProperties.cs
- BaseTreeIterator.cs
- XmlSchemaAttributeGroupRef.cs
- FixedSOMSemanticBox.cs
- UriTemplateMatchException.cs
- ImageInfo.cs
- DuplicateWaitObjectException.cs
- SoapElementAttribute.cs
- ProfessionalColorTable.cs
- DrawingImage.cs
- SAPIEngineTypes.cs
- GuidConverter.cs
- IDReferencePropertyAttribute.cs
- TimersDescriptionAttribute.cs
- Decorator.cs
- XomlCompilerParameters.cs
- InkPresenterAutomationPeer.cs
- XamlClipboardData.cs
- SeverityFilter.cs
- ValidationErrorCollection.cs
- WmfPlaceableFileHeader.cs
- ToolStripSeparator.cs
- ISAPIApplicationHost.cs
- HelpProvider.cs
- XmlWriterSettings.cs
- ToolStripOverflow.cs
- GridViewColumn.cs
- EncodingTable.cs
- DocumentCollection.cs
- FrameworkContentElement.cs
- UnsafeNativeMethods.cs
- ThicknessConverter.cs
- StringExpressionSet.cs
- WindowsHyperlink.cs
- DeviceFilterEditorDialog.cs
- RuntimeArgumentHandle.cs
- EntityFrameworkVersions.cs
- _ConnectStream.cs
- NavigationProperty.cs
- SrgsSemanticInterpretationTag.cs
- RecognitionEventArgs.cs
- PTManager.cs
- HtmlString.cs
- RelationshipNavigation.cs
- FilteredReadOnlyMetadataCollection.cs
- FixedDocument.cs
- ListControl.cs
- Inflater.cs
- ProfileParameter.cs
- DataControlFieldCollection.cs
- SamlAssertionDirectKeyIdentifierClause.cs
- OpenTypeCommon.cs
- RepeaterItemCollection.cs
- SessionStateSection.cs
- DataGridHeaderBorder.cs
- HtmlLinkAdapter.cs
- LinkUtilities.cs
- TextMetrics.cs
- MarginsConverter.cs
- ReceiveSecurityHeaderElementManager.cs
- SBCSCodePageEncoding.cs
- DateTimeUtil.cs
- DbConnectionStringBuilder.cs
- RelationshipWrapper.cs
- DataServiceClientException.cs
- FormViewUpdateEventArgs.cs
- UIAgentInitializationException.cs
- TimeSpanStorage.cs
- ParameterElementCollection.cs
- Unit.cs
- RefreshEventArgs.cs
- NumericPagerField.cs
- BufferedReceiveElement.cs
- NonParentingControl.cs
- wgx_sdk_version.cs
- RawKeyboardInputReport.cs
- FilterQuery.cs
- SqlSupersetValidator.cs
- QueryStringParameter.cs
- DefaultBinder.cs
- SubqueryRules.cs
- UIPermission.cs
- DataBindingHandlerAttribute.cs
- DoubleKeyFrameCollection.cs
- CheckedPointers.cs
- ArrayElementGridEntry.cs
- WindowsListViewGroupHelper.cs
- UrlMappingsSection.cs
- Parsers.cs
- IncomingWebRequestContext.cs
- KeyProperty.cs
- ExtractedStateEntry.cs
- DataGridViewCellStyleConverter.cs
- Encoding.cs