Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / Effects / BevelBitmapEffect.cs / 1407647 / BevelBitmapEffect.cs
//------------------------------------------------------------------------------ // Microsoft Avalon // Copyright (c) Microsoft Corporation, 2005 // // File: BevelBitmapEffect.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 { ////// BevelBitmapEffectPrimitive /// public sealed partial class BevelBitmapEffect : BitmapEffect { ////// Constructor /// public BevelBitmapEffect() { } ////// 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: BevelBitmapEffect.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 { ////// BevelBitmapEffectPrimitive /// public sealed partial class BevelBitmapEffect : BitmapEffect { ////// Constructor /// public BevelBitmapEffect() { } ////// 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
- TabletDevice.cs
- SimpleFieldTemplateUserControl.cs
- TemplatePagerField.cs
- Expressions.cs
- AuthenticatedStream.cs
- EdmTypeAttribute.cs
- QuaternionAnimationBase.cs
- StringOutput.cs
- StatusBarPanelClickEvent.cs
- ExpandCollapseProviderWrapper.cs
- CodeMemberField.cs
- NativeMethods.cs
- DbConnectionClosed.cs
- AttributeSetAction.cs
- MenuItem.cs
- EventWaitHandleSecurity.cs
- PeerObject.cs
- Hash.cs
- MailDefinition.cs
- SapiAttributeParser.cs
- ColorTranslator.cs
- EventProviderWriter.cs
- EmptyControlCollection.cs
- HatchBrush.cs
- EmptyElement.cs
- DataColumnPropertyDescriptor.cs
- HttpDictionary.cs
- BamlMapTable.cs
- SQLByteStorage.cs
- WebHttpElement.cs
- CaseExpr.cs
- LineInfo.cs
- Connection.cs
- RewritingSimplifier.cs
- StrongTypingException.cs
- LinqDataSourceHelper.cs
- ListBindingConverter.cs
- MergeFilterQuery.cs
- BuildProvider.cs
- XPathArrayIterator.cs
- DefaultIfEmptyQueryOperator.cs
- GetPageNumberCompletedEventArgs.cs
- ApplicationDirectory.cs
- HijriCalendar.cs
- InvalidDataException.cs
- BuildProviderCollection.cs
- NotifyCollectionChangedEventArgs.cs
- NavigatorOutput.cs
- TableLayoutStyleCollection.cs
- TextPointer.cs
- HostingEnvironmentSection.cs
- BookmarkWorkItem.cs
- LinkGrep.cs
- listitem.cs
- ReadWriteObjectLock.cs
- TransformCollection.cs
- Int32RectConverter.cs
- DodSequenceMerge.cs
- DynamicQueryableWrapper.cs
- CommonBehaviorsSection.cs
- ScrollableControl.cs
- XsdCachingReader.cs
- DataSourceProvider.cs
- GridToolTip.cs
- _ListenerRequestStream.cs
- TypeRestriction.cs
- ClientUtils.cs
- LabelTarget.cs
- WSSecureConversationFeb2005.cs
- IntellisenseTextBox.cs
- WebBaseEventKeyComparer.cs
- BasicExpandProvider.cs
- FileVersion.cs
- DataObjectMethodAttribute.cs
- TextAutomationPeer.cs
- FormatConvertedBitmap.cs
- CatalogZoneBase.cs
- BuildProvider.cs
- AttributeCollection.cs
- TransportBindingElement.cs
- LicenseException.cs
- ZipPackagePart.cs
- AddInToken.cs
- WebSysDisplayNameAttribute.cs
- SingleAnimation.cs
- ToolStripContentPanelDesigner.cs
- PageCodeDomTreeGenerator.cs
- CombinedGeometry.cs
- MemberMaps.cs
- SystemIPInterfaceProperties.cs
- StyleCollection.cs
- X509Extension.cs
- DnsPermission.cs
- SelectionRange.cs
- GeneratedCodeAttribute.cs
- SqlFlattener.cs
- DataGridViewColumnStateChangedEventArgs.cs
- ObjectMemberMapping.cs
- SamlSecurityTokenAuthenticator.cs
- ChannelProtectionRequirements.cs