Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / Media / Effects / DropShadowBitmapEffect.cs / 1 / DropShadowBitmapEffect.cs
//------------------------------------------------------------------------------
// Microsoft Avalon
// Copyright (c) Microsoft Corporation, 2005
//
// File: BitmapEffectDropShadow.cs
//-----------------------------------------------------------------------------
#region Using directives
using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
using MS.Internal.PresentationCore;
using System.Security;
#endregion
namespace System.Windows.Media.Effects
{
///
/// The class definition for DropShadowBitmapEffect
///
public partial class DropShadowBitmapEffect
{
///
/// Constructor
///
public DropShadowBitmapEffect()
{
}
///
/// Creates the unmanaged effect handle
///
unsafe protected override SafeHandle CreateUnmanagedEffect()
{
return Create(new Guid(0x459a3fbe, 0xd8ac, 0x4692, 0x87, 0x4b, 0x7a, 0x26, 0x57, 0x15, 0xaa, 0x16));
}
///
/// /// 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]
protected override void UpdateUnmanagedPropertyState(SafeHandle unmanagedEffect)
{
SecurityHelper.DemandUIWindowPermission();
BitmapEffect.SetValue(unmanagedEffect, "Color", this.Color);
BitmapEffect.SetValue(unmanagedEffect, "ShadowDepth", this.ShadowDepth);
BitmapEffect.SetValue(unmanagedEffect, "Direction", this.Direction);
BitmapEffect.SetValue(unmanagedEffect, "Noise", this.Noise);
BitmapEffect.SetValue(unmanagedEffect, "Opacity", this.Opacity);
BitmapEffect.SetValue(unmanagedEffect, "Softness", this.Softness);
}
}
}
// 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
- DataServiceHost.cs
- WindowsIPAddress.cs
- ErrorEventArgs.cs
- streamingZipPartStream.cs
- DefaultSection.cs
- EventSinkActivity.cs
- ControlParameter.cs
- TextProviderWrapper.cs
- GPRECT.cs
- DataServiceQueryProvider.cs
- QueryInterceptorAttribute.cs
- TreeViewAutomationPeer.cs
- ActivityInterfaces.cs
- GeometryGroup.cs
- MimeWriter.cs
- BindableTemplateBuilder.cs
- ScrollBar.cs
- OleDbConnectionInternal.cs
- PathGeometry.cs
- Vector3DCollectionValueSerializer.cs
- tooltip.cs
- LocationUpdates.cs
- BitSet.cs
- DiscriminatorMap.cs
- Reference.cs
- SQLInt16Storage.cs
- SafeLocalAllocation.cs
- EntityDesignerDataSourceView.cs
- AutomationAttributeInfo.cs
- UTF7Encoding.cs
- GetIsBrowserClientRequest.cs
- XsltSettings.cs
- AttributeInfo.cs
- FilterInvalidBodyAccessException.cs
- SetMemberBinder.cs
- ToolStripSettings.cs
- EntityConnectionStringBuilder.cs
- MsmqInputMessagePool.cs
- _UncName.cs
- TraceHelpers.cs
- DataGridViewTextBoxColumn.cs
- InputReport.cs
- WorkflowElementDialogWindow.xaml.cs
- CryptoHelper.cs
- Matrix3D.cs
- TemplateControlBuildProvider.cs
- Stack.cs
- PagerStyle.cs
- basecomparevalidator.cs
- WebBrowserNavigatingEventHandler.cs
- AutomationPatternInfo.cs
- XmlSchemaSubstitutionGroup.cs
- ToolStripContainer.cs
- Accessible.cs
- QuaternionKeyFrameCollection.cs
- HttpCacheParams.cs
- PrimitiveXmlSerializers.cs
- WebPartDeleteVerb.cs
- ExtensionFile.cs
- QuadraticBezierSegment.cs
- BindingValueChangedEventArgs.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- PropVariant.cs
- DesignerVerbCollection.cs
- ObjectPropertyMapping.cs
- SetterBaseCollection.cs
- IDQuery.cs
- NetMsmqBinding.cs
- ComponentDispatcher.cs
- NativeMethods.cs
- GridSplitterAutomationPeer.cs
- HitTestWithGeometryDrawingContextWalker.cs
- XamlPoint3DCollectionSerializer.cs
- ObjectHelper.cs
- DataColumnChangeEvent.cs
- TransformedBitmap.cs
- printdlgexmarshaler.cs
- WindowsListView.cs
- XmlReflectionMember.cs
- TdsParameterSetter.cs
- AsyncParams.cs
- activationcontext.cs
- LicenseProviderAttribute.cs
- sqlcontext.cs
- Point3DAnimationBase.cs
- CodeTryCatchFinallyStatement.cs
- MailAddressCollection.cs
- WsatTransactionFormatter.cs
- DictionarySectionHandler.cs
- WinInet.cs
- EntityContainerEntitySetDefiningQuery.cs
- FragmentQueryKB.cs
- XpsDigitalSignature.cs
- DataSetSchema.cs
- LongMinMaxAggregationOperator.cs
- XPathDescendantIterator.cs
- DetailsViewRowCollection.cs
- ChangePassword.cs
- OpenFileDialog.cs
- EntryIndex.cs