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
- SimplePropertyEntry.cs
- LogReservationCollection.cs
- IListConverters.cs
- Transform.cs
- UniqueEventHelper.cs
- Transform.cs
- sqlpipe.cs
- StylusOverProperty.cs
- SerializationInfoEnumerator.cs
- StorageFunctionMapping.cs
- RoleGroup.cs
- SqlMethodCallConverter.cs
- EncodingDataItem.cs
- PeerCollaborationPermission.cs
- StatusStrip.cs
- Compensate.cs
- FixedHyperLink.cs
- UITypeEditor.cs
- SqlDataSourceCommandEventArgs.cs
- EntityClassGenerator.cs
- SqlFacetAttribute.cs
- PauseStoryboard.cs
- TextSpan.cs
- ToolStripHighContrastRenderer.cs
- ChangeDirector.cs
- ResourceExpression.cs
- ConfigurationSchemaErrors.cs
- SmtpReplyReaderFactory.cs
- OwnerDrawPropertyBag.cs
- AsyncStreamReader.cs
- SourceFilter.cs
- PriorityQueue.cs
- InputBinder.cs
- DeploymentSectionCache.cs
- SqlCommand.cs
- SourceFilter.cs
- MasterPageCodeDomTreeGenerator.cs
- MemberDomainMap.cs
- Number.cs
- OrCondition.cs
- WebSysDisplayNameAttribute.cs
- arabicshape.cs
- Walker.cs
- TypeUtils.cs
- UpdatableGenericsFeature.cs
- HuffCodec.cs
- RecordsAffectedEventArgs.cs
- HttpValueCollection.cs
- InvalidOleVariantTypeException.cs
- CatalogUtil.cs
- DbBuffer.cs
- ListViewItem.cs
- WebPartsPersonalizationAuthorization.cs
- MILUtilities.cs
- UserControlParser.cs
- InputProcessorProfiles.cs
- BCLDebug.cs
- Scene3D.cs
- basecomparevalidator.cs
- ResXResourceSet.cs
- MTConfigUtil.cs
- CanExecuteRoutedEventArgs.cs
- ValidationEventArgs.cs
- ConstraintCollection.cs
- ConnectionsZone.cs
- EpmSyndicationContentSerializer.cs
- CategoryNameCollection.cs
- InteropAutomationProvider.cs
- HandlerBase.cs
- XmlSchemaValidationException.cs
- ManualResetEvent.cs
- GroupQuery.cs
- InputMethodStateTypeInfo.cs
- CalendarBlackoutDatesCollection.cs
- GenericEnumConverter.cs
- GlobalizationSection.cs
- PropertyMapper.cs
- ElementNotAvailableException.cs
- PrintController.cs
- WaitForChangedResult.cs
- RadioButtonStandardAdapter.cs
- HideDisabledControlAdapter.cs
- NotifyParentPropertyAttribute.cs
- DataRowView.cs
- DataColumnPropertyDescriptor.cs
- OdbcConnectionPoolProviderInfo.cs
- TextPattern.cs
- VScrollProperties.cs
- SchemaImporter.cs
- DataGridViewCellCollection.cs
- DependencyPropertyAttribute.cs
- PaginationProgressEventArgs.cs
- RadioButtonBaseAdapter.cs
- ResourceDescriptionAttribute.cs
- RadialGradientBrush.cs
- TextServicesDisplayAttribute.cs
- RecordsAffectedEventArgs.cs
- AuthenticatedStream.cs
- XmlDataSourceView.cs
- CultureTableRecord.cs