Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / UIPropertyMetadata.cs / 1 / UIPropertyMetadata.cs
using MS.Utility; using System; using System.Collections.Generic; using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; namespace System.Windows { ////// Metadata for supported UI features /// public class UIPropertyMetadata : PropertyMetadata { ////// UI metadata construction /// public UIPropertyMetadata() : base() { } ////// UI metadata construction /// /// Default value of property public UIPropertyMetadata(object defaultValue) : base(defaultValue) { } ////// UI metadata construction /// /// Called when the property has been changed public UIPropertyMetadata(PropertyChangedCallback propertyChangedCallback) : base(propertyChangedCallback) { } ////// UI metadata construction /// /// Default value of property /// Called when the property has been changed public UIPropertyMetadata(object defaultValue, PropertyChangedCallback propertyChangedCallback) : base(defaultValue, propertyChangedCallback) { } ////// UI metadata construction /// /// Default value of property /// Called when the property has been changed /// Called on update of value public UIPropertyMetadata(object defaultValue, PropertyChangedCallback propertyChangedCallback, CoerceValueCallback coerceValueCallback) : base(defaultValue, propertyChangedCallback, coerceValueCallback) { } ////// UI metadata construction /// /// Default value of property /// Called when the property has been changed /// Called on update of value /// Should animation be prohibited? public UIPropertyMetadata(object defaultValue, PropertyChangedCallback propertyChangedCallback, CoerceValueCallback coerceValueCallback, bool isAnimationProhibited) : base(defaultValue, propertyChangedCallback, coerceValueCallback) { WriteFlag(MetadataFlags.UI_IsAnimationProhibitedID, isAnimationProhibited); } ////// Creates a new instance of this property metadata. This method is used /// when metadata needs to be cloned. After CreateInstance is called the /// framework will call Merge to merge metadata into the new instance. /// Deriving classes must override this and return a new instance of /// themselves. /// internal override PropertyMetadata CreateInstance() { return new UIPropertyMetadata(); } ////// Set this to true for a property for which animation should be /// prohibited. This should not be set unless there are very strong /// technical reasons why a property can not be animated. In the /// vast majority of cases, a property that can not be properly /// animated means that the property implementation contains a bug. /// public bool IsAnimationProhibited { get { return ReadFlag(MetadataFlags.UI_IsAnimationProhibitedID); } set { if (Sealed) { throw new InvalidOperationException(SR.Get(SRID.TypeMetadataCannotChangeAfterUse)); } WriteFlag(MetadataFlags.UI_IsAnimationProhibitedID, value); } } } } // 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
- VBCodeProvider.cs
- SQLBytesStorage.cs
- DateTimeStorage.cs
- ResourcePart.cs
- PageAdapter.cs
- WarningException.cs
- ShaderEffect.cs
- SymmetricKey.cs
- PersonalizationDictionary.cs
- LockCookie.cs
- EventLogQuery.cs
- DbConnectionFactory.cs
- DateTimeSerializationSection.cs
- HtmlInputHidden.cs
- SecurityMode.cs
- GeneralTransform3DTo2DTo3D.cs
- CreateUserWizardDesigner.cs
- PerfService.cs
- XmlExpressionDumper.cs
- TemplateNameScope.cs
- XhtmlBasicControlAdapter.cs
- IncrementalHitTester.cs
- PointAnimationClockResource.cs
- CustomError.cs
- MessageAction.cs
- ButtonChrome.cs
- ContractComponent.cs
- ManagementScope.cs
- CodeAttributeArgumentCollection.cs
- DiagnosticTraceSource.cs
- NetworkInformationPermission.cs
- RegexFCD.cs
- RIPEMD160Managed.cs
- SafeNativeMethods.cs
- CalendarDateRangeChangingEventArgs.cs
- Header.cs
- XPathNodeInfoAtom.cs
- ChannelManager.cs
- SqlConnectionPoolProviderInfo.cs
- XMLUtil.cs
- RequestBringIntoViewEventArgs.cs
- ReflectPropertyDescriptor.cs
- VisualBrush.cs
- SqlRecordBuffer.cs
- WsiProfilesElementCollection.cs
- SRef.cs
- MLangCodePageEncoding.cs
- PropertyChangingEventArgs.cs
- TextElementCollectionHelper.cs
- ValueUtilsSmi.cs
- LinqDataSourceDeleteEventArgs.cs
- ImageCodecInfoPrivate.cs
- GuidelineSet.cs
- Relationship.cs
- LogLogRecordEnumerator.cs
- DecoratedNameAttribute.cs
- Rect3D.cs
- CreateParams.cs
- RevocationPoint.cs
- SiteIdentityPermission.cs
- HiddenField.cs
- OdbcEnvironment.cs
- DataGridTable.cs
- ApplicationSettingsBase.cs
- ReadOnlyDataSource.cs
- CompiledQuery.cs
- Property.cs
- TdsParserStateObject.cs
- PrtCap_Base.cs
- HighlightComponent.cs
- ProtocolsSection.cs
- PlanCompilerUtil.cs
- FolderBrowserDialog.cs
- CryptoStream.cs
- SemanticBasicElement.cs
- UdpTransportSettings.cs
- ComponentSerializationService.cs
- ImportDesigner.xaml.cs
- XmlCustomFormatter.cs
- DetailsViewInsertEventArgs.cs
- AutomationEventArgs.cs
- ToolTipAutomationPeer.cs
- loginstatus.cs
- MouseActionConverter.cs
- SmiRecordBuffer.cs
- DropShadowEffect.cs
- BaseValidator.cs
- ResourceType.cs
- Win32Interop.cs
- ToolStripSettings.cs
- Nullable.cs
- LinkDescriptor.cs
- CultureTable.cs
- XmlWrappingReader.cs
- TextDecorations.cs
- XmlTextWriter.cs
- ResourceCategoryAttribute.cs
- TypeBuilderInstantiation.cs
- autovalidator.cs
- IOThreadScheduler.cs