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
- BatchStream.cs
- State.cs
- IpcManager.cs
- TrackingRecord.cs
- DataControlFieldsEditor.cs
- BuildProvider.cs
- Internal.cs
- EnumType.cs
- DesignerVerbCollection.cs
- SoapWriter.cs
- ImmutablePropertyDescriptorGridEntry.cs
- RegisteredArrayDeclaration.cs
- TreeViewEvent.cs
- UnrecognizedAssertionsBindingElement.cs
- FlagsAttribute.cs
- EventBookmark.cs
- DesignerVerbCollection.cs
- RemotingSurrogateSelector.cs
- RunWorkerCompletedEventArgs.cs
- PersistenceProviderElement.cs
- WeakReferenceList.cs
- TextAction.cs
- UrlAuthorizationModule.cs
- Int32AnimationBase.cs
- sqlser.cs
- Thickness.cs
- cache.cs
- ToolStripComboBox.cs
- DefaultExpression.cs
- FlowDocumentScrollViewer.cs
- _BasicClient.cs
- SoapMessage.cs
- ExceptionHandlers.cs
- BulletedListEventArgs.cs
- KerberosRequestorSecurityToken.cs
- BindValidator.cs
- WindowsAuthenticationEventArgs.cs
- ContentElementAutomationPeer.cs
- MemoryStream.cs
- TimeoutException.cs
- LifetimeManager.cs
- GeneralTransformCollection.cs
- XsltException.cs
- WindowProviderWrapper.cs
- CoreSwitches.cs
- __Filters.cs
- ModuleBuilderData.cs
- EnumBuilder.cs
- ZeroOpNode.cs
- peernodeimplementation.cs
- QilExpression.cs
- FileEnumerator.cs
- MultiTrigger.cs
- TransformPatternIdentifiers.cs
- CompoundFileDeflateTransform.cs
- XmlCollation.cs
- DataGridViewTextBoxColumn.cs
- User.cs
- EntitySet.cs
- PasswordTextNavigator.cs
- sqlstateclientmanager.cs
- ConvertersCollection.cs
- GridViewDeletedEventArgs.cs
- Error.cs
- WmlPageAdapter.cs
- Delegate.cs
- DesignerObject.cs
- PageContent.cs
- AsnEncodedData.cs
- AlternationConverter.cs
- SecurityException.cs
- PermissionListSet.cs
- TreeView.cs
- Policy.cs
- ToolBarTray.cs
- MailAddress.cs
- TreeNodeEventArgs.cs
- ObjectNotFoundException.cs
- AtomServiceDocumentSerializer.cs
- X509Utils.cs
- DataSourceSelectArguments.cs
- ToolStripProgressBar.cs
- ComUdtElementCollection.cs
- ReadOnlyPermissionSet.cs
- TrackingLocationCollection.cs
- storepermission.cs
- ResponseBodyWriter.cs
- BorderGapMaskConverter.cs
- ResourceDictionary.cs
- Int64AnimationBase.cs
- EmptyControlCollection.cs
- DataGridViewImageCell.cs
- InputLanguage.cs
- WindowShowOrOpenTracker.cs
- PartitionResolver.cs
- BuiltInExpr.cs
- SqlColumnizer.cs
- ContentElement.cs
- PathFigure.cs
- PersistenceTypeAttribute.cs