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
- UserValidatedEventArgs.cs
- Rule.cs
- DynamicExpression.cs
- ContractDescription.cs
- ControlPropertyNameConverter.cs
- AutomationEvent.cs
- PngBitmapEncoder.cs
- QuestionEventArgs.cs
- OleDbConnection.cs
- _ProxyChain.cs
- DataGridViewRowCollection.cs
- DataBindingHandlerAttribute.cs
- RoutedUICommand.cs
- StringArrayConverter.cs
- ServiceModelPerformanceCounters.cs
- BoolLiteral.cs
- ConnectionManagementElement.cs
- ClientUriBehavior.cs
- NamespaceDecl.cs
- InvalidateEvent.cs
- BaseParser.cs
- MenuEventArgs.cs
- QueryAccessibilityHelpEvent.cs
- RuntimeArgumentHandle.cs
- Oid.cs
- WorkflowInstance.cs
- Matrix3D.cs
- DockPatternIdentifiers.cs
- ConsoleKeyInfo.cs
- WorkflowMessageEventHandler.cs
- List.cs
- AccessViolationException.cs
- DocumentAutomationPeer.cs
- RegexRunnerFactory.cs
- LayoutTable.cs
- SqlClientPermission.cs
- TreeNodeStyleCollection.cs
- FormViewCommandEventArgs.cs
- TakeOrSkipWhileQueryOperator.cs
- DropAnimation.xaml.cs
- IfAction.cs
- AppDomainEvidenceFactory.cs
- DataGridTable.cs
- DbDataAdapter.cs
- StorageConditionPropertyMapping.cs
- StylusPoint.cs
- DbProviderSpecificTypePropertyAttribute.cs
- ConsoleEntryPoint.cs
- InputBuffer.cs
- HttpCookiesSection.cs
- ActivityCodeGenerator.cs
- JsonFormatGeneratorStatics.cs
- WorkflowTimerService.cs
- Tokenizer.cs
- RawStylusActions.cs
- CookieParameter.cs
- TableLayoutPanelCodeDomSerializer.cs
- DataBoundControlHelper.cs
- Effect.cs
- InternalMappingException.cs
- Debug.cs
- SynchronizationLockException.cs
- DataGridViewHitTestInfo.cs
- TextBreakpoint.cs
- FontFamily.cs
- TranslateTransform3D.cs
- DynamicValidator.cs
- RotationValidation.cs
- SqlDataSourceRefreshSchemaForm.cs
- ProfilePropertyNameValidator.cs
- SelectionItemPattern.cs
- QilReplaceVisitor.cs
- BinaryObjectWriter.cs
- CompilerErrorCollection.cs
- MultiBinding.cs
- PropertyValueUIItem.cs
- StylusButtonCollection.cs
- XmlObjectSerializerWriteContext.cs
- XmlIterators.cs
- SiteIdentityPermission.cs
- TypeInfo.cs
- ExpressionBinding.cs
- UnlockInstanceCommand.cs
- CodeTypeMemberCollection.cs
- WebPartConnectionsCloseVerb.cs
- FixedTextBuilder.cs
- BindingCollection.cs
- BoolLiteral.cs
- streamingZipPartStream.cs
- DataGridParentRows.cs
- EditCommandColumn.cs
- SqlCacheDependencyDatabaseCollection.cs
- GenericsNotImplementedException.cs
- TemplateControlParser.cs
- QuerySettings.cs
- securitymgrsite.cs
- Tile.cs
- CollaborationHelperFunctions.cs
- TrackBarRenderer.cs
- COAUTHINFO.cs