Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / Media / Effects / OuterGlowBitmapEffect.cs / 1 / 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 /// unsafe protected override SafeHandle CreateUnmanagedEffect() { return Create(new Guid(0xe2161bdd, 0x7eb6, 0x4725, 0x9c, 0x0b, 0x8a, 0x2a, 0x1b, 0x4f, 0x06, 0x67)); } ////// 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, "GlowSize", this.GlowSize); BitmapEffect.SetValue(unmanagedEffect, "GlowColor", this.GlowColor); BitmapEffect.SetValue(unmanagedEffect, "Opacity", this.Opacity); BitmapEffect.SetValue(unmanagedEffect, "Noise", this.Noise); } } } // 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
- Baml2006ReaderFrame.cs
- DoubleAnimationBase.cs
- Literal.cs
- IsolatedStorageFilePermission.cs
- ICspAsymmetricAlgorithm.cs
- ChangePassword.cs
- FileDialogCustomPlace.cs
- ReadonlyMessageFilter.cs
- ProfileService.cs
- CreateParams.cs
- MaterializeFromAtom.cs
- elementinformation.cs
- XmlSerializableServices.cs
- FileDialog.cs
- dataobject.cs
- DirectionalLight.cs
- DesignTimeParseData.cs
- SerialPinChanges.cs
- TextSelection.cs
- HtmlInputSubmit.cs
- MethodToken.cs
- Input.cs
- AutoScrollExpandMessageFilter.cs
- Expression.cs
- DocumentPageViewAutomationPeer.cs
- DPCustomTypeDescriptor.cs
- Graphics.cs
- JumpItem.cs
- CustomError.cs
- WCFModelStrings.Designer.cs
- EntityDataSourceView.cs
- DictionaryGlobals.cs
- TrustLevelCollection.cs
- FileDocument.cs
- SystemIPGlobalProperties.cs
- Thickness.cs
- OrderPreservingPipeliningSpoolingTask.cs
- SettingsAttributeDictionary.cs
- ClassImporter.cs
- WebPartEventArgs.cs
- XmlBinaryReader.cs
- ToolStripSeparatorRenderEventArgs.cs
- XmlSchemaAttribute.cs
- EventItfInfo.cs
- MultiAsyncResult.cs
- BindableTemplateBuilder.cs
- ArgumentOutOfRangeException.cs
- EncodingDataItem.cs
- ApplicationInfo.cs
- _FtpControlStream.cs
- UserValidatedEventArgs.cs
- CryptoKeySecurity.cs
- TypedServiceOperationListItem.cs
- ImageIndexConverter.cs
- WindowsScroll.cs
- Avt.cs
- CoreSwitches.cs
- BufferedMessageWriter.cs
- SafeProcessHandle.cs
- AdornerLayer.cs
- DefaultIfEmptyQueryOperator.cs
- SafeFileHandle.cs
- BooleanFunctions.cs
- ParserHooks.cs
- SessionPageStatePersister.cs
- recordstatescratchpad.cs
- WindowsFormsSectionHandler.cs
- ViewValidator.cs
- PersianCalendar.cs
- FileChangesMonitor.cs
- Rule.cs
- FontDifferentiator.cs
- TextRangeBase.cs
- AdRotator.cs
- CompilerLocalReference.cs
- XmlSchemaSimpleContentRestriction.cs
- XmlWriter.cs
- StringResourceManager.cs
- LineServicesRun.cs
- AttachedPropertiesService.cs
- AsnEncodedData.cs
- DetailsViewCommandEventArgs.cs
- XomlCompilerParameters.cs
- ToolBar.cs
- ConnectionProviderAttribute.cs
- DesigntimeLicenseContextSerializer.cs
- TreeNodeConverter.cs
- MessageLoggingFilterTraceRecord.cs
- XmlReturnWriter.cs
- WpfMemberInvoker.cs
- oledbmetadatacollectionnames.cs
- SafeFileMapViewHandle.cs
- HostingEnvironmentSection.cs
- XmlMessageFormatter.cs
- ApplicationBuildProvider.cs
- ClientRoleProvider.cs
- KeyValueSerializer.cs
- GlobalizationAssembly.cs
- DescendantBaseQuery.cs
- ListMarkerSourceInfo.cs