ReadOnlyText - класс

Определяет для контролов, содержащих текст, свойство IsReadOnly, эмулирующее режим "ReadOnly" в таких контролах, как TextBox. При этом не изменяется цвет фона контрола, цвет (видимость) каретки и контекстное меню, такие изменения может потребоваться выполнить отдельно через стили.

Definition

Пространство имён: Tessa.UI.Behaviors
Сборка: Tessa.UI (в Tessa.UI.dll) Версия: 4.0.4
C#
public sealed class ReadOnlyText : Behavior<UIElement>
Inheritance
Object    DispatcherObject    DependencyObject    Freezable    LinkedFreezable    Behavior    BehaviorUIElement    ReadOnlyText

Конструкторы

ReadOnlyTextИнициализирует новый экземпляр класса ReadOnlyText

Свойства

AssociatedObject
(Унаследован от BehaviorT)
CanFreezeGets a value that indicates whether the object can be made unmodifiable.
(Унаследован от Freezable)
DependencyObjectTypeGets the DependencyObjectType that wraps the CLR type of this instance.
(Унаследован от DependencyObject)
DispatcherGets the Dispatcher this DispatcherObject is associated with.
(Унаследован от DispatcherObject)
IsFrozenGets a value that indicates whether the object is currently modifiable.
(Унаследован от Freezable)
IsReadOnly Признак того, что режим "только для чтения" активирован.
IsSealedGets a value that indicates whether this instance is currently sealed (read-only).
(Унаследован от DependencyObject)

Методы

CheckAccessDetermines whether the calling thread has access to this DispatcherObject.
(Унаследован от DispatcherObject)
ClearValue(DependencyProperty)Clears the local value of a property. The property to be cleared is specified by a DependencyProperty identifier.
(Унаследован от DependencyObject)
ClearValue(DependencyPropertyKey)Clears the local value of a read-only property. The property to be cleared is specified by a DependencyPropertyKey.
(Унаследован от DependencyObject)
CloneCreates a modifiable clone of the Freezable, making deep copies of the object's values. When copying the object's dependency properties, this method copies expressions (which might no longer resolve) but not animations or their current values.
(Унаследован от Freezable)
CloneCoreMakes the instance a clone (deep copy) of the specified Freezable using base (non-animated) property values.
(Унаследован от Freezable)
CloneCurrentValueCreates a modifiable clone (deep copy) of the Freezable using its current values.
(Унаследован от Freezable)
CloneCurrentValueCoreMakes the instance a modifiable clone (deep copy) of the specified Freezable using current property values.
(Унаследован от Freezable)
CoerceValueCoerces the value of the specified dependency property. This is accomplished by invoking any CoerceValueCallback function specified in property metadata for the dependency property as it exists on the calling DependencyObject.
(Унаследован от DependencyObject)
CreateInstanceInitializes a new instance of the Freezable class.
(Унаследован от Freezable)
CreateInstanceCore
(Переопределяет FreezableCreateInstanceCore)
EqualsDetermines whether a provided DependencyObject is equivalent to the current DependencyObject.
(Унаследован от DependencyObject)
FreezeMakes the current object unmodifiable and sets its IsFrozen property to .
(Унаследован от Freezable)
FreezeCoreMakes the Freezable object unmodifiable or tests whether it can be made unmodifiable.
(Унаследован от Freezable)
GetAsFrozenCreates a frozen copy of the Freezable, using base (non-animated) property values. Because the copy is frozen, any frozen sub-objects are copied by reference.
(Унаследован от Freezable)
GetAsFrozenCoreMakes the instance a frozen clone of the specified Freezable using base (non-animated) property values.
(Унаследован от Freezable)
GetCurrentValueAsFrozenCreates a frozen copy of the Freezable using current property values. Because the copy is frozen, any frozen sub-objects are copied by reference.
(Унаследован от Freezable)
GetCurrentValueAsFrozenCoreMakes the current instance a frozen clone of the specified Freezable. If the object has animated dependency properties, their current animated values are copied.
(Унаследован от Freezable)
GetHashCodeGets a hash code for this DependencyObject.
(Унаследован от DependencyObject)
GetLocalValueEnumeratorCreates a specialized enumerator for determining which dependency properties have locally set values on this DependencyObject.
(Унаследован от DependencyObject)
GetRequiredType
(Унаследован от BehaviorT)
GetRequiredTypeCount
(Унаследован от BehaviorT)
GetValueReturns the current effective value of a dependency property on this instance of a DependencyObject.
(Унаследован от DependencyObject)
InvalidatePropertyRe-evaluates the effective value for the specified dependency property.
(Унаследован от DependencyObject)
OnAttached
(Переопределяет BehaviorOnAttached)
OnChangedCalled when the current Freezable object is modified.
(Унаследован от Freezable)
OnDetaching
(Переопределяет BehaviorOnDetaching)
OnFreezablePropertyChanged(DependencyObject, DependencyObject)Ensures that appropriate context pointers are established for a DependencyObjectType data member that has just been set.
(Унаследован от Freezable)
OnFreezablePropertyChanged(DependencyObject, DependencyObject, DependencyProperty)This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.
(Унаследован от Freezable)
OnPropertyChangedOverrides the DependencyObject implementation of OnPropertyChanged(DependencyPropertyChangedEventArgs) to also invoke any Changed handlers in response to a changing dependency property of type Freezable.
(Унаследован от Freezable)
ReadLocalValueReturns the local value of a dependency property, if it exists.
(Унаследован от DependencyObject)
ReadPreambleEnsures that the Freezable is being accessed from a valid thread. Inheritors of Freezable must call this method at the beginning of any API that reads data members that are not dependency properties.
(Унаследован от Freezable)
SetCurrentValueSets the value of a dependency property without changing its value source.
(Унаследован от DependencyObject)
SetValue(DependencyProperty, Object)Sets the local value of a dependency property, specified by its dependency property identifier.
(Унаследован от DependencyObject)
SetValue(DependencyPropertyKey, Object)Sets the local value of a read-only dependency property, specified by the DependencyPropertyKey identifier of the dependency property.
(Унаследован от DependencyObject)
ShouldSerializePropertyReturns a value that indicates whether serialization processes should serialize the value for the provided dependency property.
(Унаследован от DependencyObject)
VerifyAccessEnforces that the calling thread has access to this DispatcherObject.
(Унаследован от DispatcherObject)
WritePostscriptRaises the Changed event for the Freezable and invokes its OnChanged method. Classes that derive from Freezable should call this method at the end of any API that modifies class members that are not stored as dependency properties.
(Унаследован от Freezable)
WritePreambleVerifies that the Freezable is not frozen and that it is being accessed from a valid threading context. Freezable inheritors should call this method at the beginning of any API that writes to data members that are not dependency properties.
(Унаследован от Freezable)

События

ChangedOccurs when the Freezable or an object it contains is modified.
(Унаследован от Freezable)

Поля

См. также