Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / MS / Internal / Controls / CustomCategoryAttribute.cs / 1 / CustomCategoryAttribute.cs
using System; using System.ComponentModel; using MS.Internal; using System.Windows; using System.Diagnostics; using System.Globalization; namespace System.Windows { ////// Attribute which specifies additional category strings which can be localized: /// Accessibility, Content, Navigation. /// internal sealed class CustomCategoryAttribute : CategoryAttribute { internal CustomCategoryAttribute(string name) : base(name) { Debug.Assert("Content".Equals(name, StringComparison.InvariantCulture) || "Accessibility".Equals(name, StringComparison.InvariantCulture) || "Navigation".Equals(name, StringComparison.InvariantCulture)); } protected override string GetLocalizedString(string value) { // Return a localized version of the custom category if (String.Compare(value, "Content", StringComparison.Ordinal) == 0) return SR.Get(SRID.DesignerMetadata_CustomCategory_Content); else if(String.Compare(value, "Accessibility", StringComparison.Ordinal) == 0) return SR.Get(SRID.DesignerMetadata_CustomCategory_Accessibility); else /*if(String.Compare(value, "Navigation", StringComparison.Ordinal) == 0)*/ return SR.Get(SRID.DesignerMetadata_CustomCategory_Navigation); } } } // 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
- BitmapEffectGeneralTransform.cs
- XmlAttributeAttribute.cs
- DSACryptoServiceProvider.cs
- FlowchartDesigner.xaml.cs
- BasicCommandTreeVisitor.cs
- MapPathBasedVirtualPathProvider.cs
- LocationFactory.cs
- OptimalTextSource.cs
- MiniAssembly.cs
- MediaSystem.cs
- BigIntegerStorage.cs
- _UriSyntax.cs
- SkipQueryOptionExpression.cs
- OdbcError.cs
- AttributeCollection.cs
- ParallelDesigner.cs
- ClientType.cs
- WeakReference.cs
- log.cs
- COM2ExtendedUITypeEditor.cs
- CmsInterop.cs
- PersonalizationProviderHelper.cs
- ClipboardProcessor.cs
- StorageMappingFragment.cs
- DocumentDesigner.cs
- XmlEntityReference.cs
- InvalidFilterCriteriaException.cs
- DeclaredTypeElement.cs
- ServerIdentity.cs
- LexicalChunk.cs
- AutomationPatternInfo.cs
- AppliedDeviceFiltersDialog.cs
- PolygonHotSpot.cs
- ComEventsSink.cs
- SafeNativeMethods.cs
- BuildDependencySet.cs
- MasterPageParser.cs
- PoisonMessageException.cs
- PenContexts.cs
- InlineUIContainer.cs
- XmlNodeChangedEventManager.cs
- EncoderNLS.cs
- DbSetClause.cs
- HyperLinkStyle.cs
- Interlocked.cs
- ExtensibleClassFactory.cs
- ZipIOCentralDirectoryFileHeader.cs
- AppSettingsReader.cs
- Math.cs
- UpdateCompiler.cs
- UseAttributeSetsAction.cs
- basenumberconverter.cs
- ValueProviderWrapper.cs
- DBCSCodePageEncoding.cs
- ClientScriptManager.cs
- baseaxisquery.cs
- ValidationRule.cs
- KeyMatchBuilder.cs
- PerformanceCounterPermissionEntry.cs
- ValueSerializerAttribute.cs
- GifBitmapDecoder.cs
- ScrollProviderWrapper.cs
- SmtpFailedRecipientsException.cs
- SecureUICommand.cs
- EntityDataSourceSelectedEventArgs.cs
- TemplateColumn.cs
- UserInitiatedRoutedEventPermissionAttribute.cs
- LayoutTable.cs
- GridEntryCollection.cs
- _HeaderInfo.cs
- PackageDigitalSignatureManager.cs
- ReadOnlyAttribute.cs
- StateInitializationDesigner.cs
- TemplateComponentConnector.cs
- CodeGen.cs
- IntPtr.cs
- ImageInfo.cs
- XmlSchemaElement.cs
- FormsAuthenticationTicket.cs
- HWStack.cs
- UpdatePanel.cs
- DataChangedEventManager.cs
- Vector3DConverter.cs
- xmlglyphRunInfo.cs
- DataMemberConverter.cs
- ListDictionary.cs
- ExceptionUtil.cs
- XmlRootAttribute.cs
- CommandLineParser.cs
- SoapException.cs
- AnyAllSearchOperator.cs
- LinkClickEvent.cs
- ValidationManager.cs
- MgmtConfigurationRecord.cs
- XmlSchemaComplexType.cs
- DocumentSignatureManager.cs
- DataShape.cs
- HttpModuleAction.cs
- RuntimeHandles.cs
- WhitespaceRuleLookup.cs