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
- Type.cs
- DecoderNLS.cs
- ProjectedWrapper.cs
- PkcsUtils.cs
- AdapterDictionary.cs
- DefaultTraceListener.cs
- DbCommandTree.cs
- TopClause.cs
- NameSpaceEvent.cs
- SoapSchemaImporter.cs
- DoubleAnimationClockResource.cs
- AttributeUsageAttribute.cs
- TextEditorLists.cs
- OutputWindow.cs
- TextSpan.cs
- EventLogPropertySelector.cs
- SystemIPv6InterfaceProperties.cs
- MetafileHeaderWmf.cs
- MsmqIntegrationBinding.cs
- SimpleFileLog.cs
- ItemCheckedEvent.cs
- DataListItemEventArgs.cs
- SystemThemeKey.cs
- HandlerWithFactory.cs
- HtmlWindowCollection.cs
- CheckBox.cs
- XamlBrushSerializer.cs
- RouteCollection.cs
- EmptyEnumerator.cs
- Axis.cs
- SqlMultiplexer.cs
- QueryGeneratorBase.cs
- FlowLayoutPanel.cs
- CommonBehaviorsSection.cs
- TemplateInstanceAttribute.cs
- BamlResourceSerializer.cs
- LinqDataSourceUpdateEventArgs.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- DataGridTablesFactory.cs
- GlobalProxySelection.cs
- XmlSchemaValidator.cs
- EventHandlerList.cs
- GPPOINTF.cs
- CredentialManagerDialog.cs
- ToolBar.cs
- HtmlSelect.cs
- BindingExpressionBase.cs
- FullTextState.cs
- SettingsProviderCollection.cs
- TextChange.cs
- VolatileEnlistmentState.cs
- Int32Storage.cs
- TextTreeRootNode.cs
- SqlUDTStorage.cs
- ChtmlTextWriter.cs
- PersonalizationStateInfo.cs
- ColorIndependentAnimationStorage.cs
- HwndMouseInputProvider.cs
- MetadataArtifactLoaderComposite.cs
- Menu.cs
- Visual.cs
- ListViewGroup.cs
- ListMarkerLine.cs
- SchemaType.cs
- RuleRef.cs
- DocumentSequenceHighlightLayer.cs
- FontUnitConverter.cs
- BitmapEffectRenderDataResource.cs
- ToolStripScrollButton.cs
- TraceSection.cs
- DictionaryBase.cs
- BezierSegment.cs
- CurrentChangingEventManager.cs
- NumberFunctions.cs
- AliasGenerator.cs
- SystemWebSectionGroup.cs
- Version.cs
- CultureSpecificCharacterBufferRange.cs
- _Events.cs
- XPathConvert.cs
- MessageAction.cs
- ExpressionBuilderCollection.cs
- DataGridCell.cs
- FixedDocumentPaginator.cs
- DataGridTablesFactory.cs
- InternalTypeHelper.cs
- PartialClassGenerationTask.cs
- SafeTimerHandle.cs
- TextParaClient.cs
- GridViewDeletedEventArgs.cs
- Table.cs
- BinHexDecoder.cs
- ListBoxAutomationPeer.cs
- RelatedImageListAttribute.cs
- NativeMethods.cs
- PropertyInfoSet.cs
- ClientOperationFormatterProvider.cs
- FilterEventArgs.cs
- recordstatefactory.cs
- ObjectStateManager.cs