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
- TextViewSelectionProcessor.cs
- WebPartUserCapability.cs
- QilGeneratorEnv.cs
- FilteredXmlReader.cs
- TransformPatternIdentifiers.cs
- InputReport.cs
- EnumerableRowCollectionExtensions.cs
- ZipIOModeEnforcingStream.cs
- safex509handles.cs
- StyleHelper.cs
- _DomainName.cs
- StronglyTypedResourceBuilder.cs
- AmbientValueAttribute.cs
- OwnerDrawPropertyBag.cs
- JsonDataContract.cs
- XmlTypeAttribute.cs
- Models.cs
- Perspective.cs
- XamlStream.cs
- EditorOptionAttribute.cs
- UDPClient.cs
- Win32Exception.cs
- Matrix.cs
- Grid.cs
- SourceInterpreter.cs
- ReadOnlyHierarchicalDataSourceView.cs
- BinaryNode.cs
- PrimitiveSchema.cs
- TextEditorTyping.cs
- CommentGlyph.cs
- ListItemConverter.cs
- ScriptServiceAttribute.cs
- LocatorBase.cs
- BufferedResponseStream.cs
- handlecollector.cs
- IxmlLineInfo.cs
- XmlElementCollection.cs
- Keyboard.cs
- entityreference_tresulttype.cs
- SecurityAppliedMessage.cs
- Polygon.cs
- CapabilitiesPattern.cs
- BuildProvider.cs
- TabControlEvent.cs
- Semaphore.cs
- IChannel.cs
- XmlDictionaryReaderQuotas.cs
- DataGridViewCellParsingEventArgs.cs
- SqlInternalConnectionTds.cs
- OutputCacheProfileCollection.cs
- ButtonFlatAdapter.cs
- ValidatingCollection.cs
- WebReferencesBuildProvider.cs
- MediaElementAutomationPeer.cs
- DataRowCollection.cs
- FacetChecker.cs
- _CommandStream.cs
- WinCategoryAttribute.cs
- TagMapCollection.cs
- LoginUtil.cs
- Matrix.cs
- BuildResult.cs
- InlineObject.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- XamlTypeMapper.cs
- BitmapDecoder.cs
- XpsException.cs
- SmiXetterAccessMap.cs
- KeyManager.cs
- GC.cs
- ThreadStartException.cs
- SqlDataSourceQueryEditor.cs
- InheritanceContextChangedEventManager.cs
- IndicCharClassifier.cs
- Int32AnimationBase.cs
- HostExecutionContextManager.cs
- XmlSerializationWriter.cs
- HttpException.cs
- ConfigurationValues.cs
- Timeline.cs
- AppSettingsReader.cs
- NetStream.cs
- JournalEntryListConverter.cs
- IdentityHolder.cs
- ArrayElementGridEntry.cs
- IsolatedStorageFilePermission.cs
- DashStyle.cs
- EditingCommands.cs
- CustomServiceCredentials.cs
- GenericEnumConverter.cs
- PickBranchDesigner.xaml.cs
- ChangeTracker.cs
- webbrowsersite.cs
- ComboBox.cs
- CngKeyBlobFormat.cs
- KeyboardNavigation.cs
- SortedSetDebugView.cs
- GenerateHelper.cs
- ScrollBar.cs
- SafeBuffer.cs