IReadOnlyExtensions
Wisej.Web.Markup.IReadOnlyExtensions
Namespace: Wisej.Web.Markup
Assembly: Wisej.Framework (4.0.0.0)
Adds fluent markup extension methods to the IReadOnly implementation.
public class IReadOnlyExtensions
Methods
OnReadOnlyChanged<TReadOnly>(target, action)

Attaches an action to be executed when the ReadOnlyChanged event is raised.
Parameter
Type
Description
Returns: TReadOnly. The target object, allowing for method chaining.
This extension method allows you to easily attach an action to the ReadOnlyChanged event of an object.
myReadOnlyObject.OnReadOnlyChanged(obj => AlertBox.Show("ReadOnly state changed."));
ReadOnly<TReadOnly>(target, value)

Sets the read-only status of the specified target object.
Returns: TReadOnly. The target object with the updated read-only status.
This extension method allows you to set the read-only status of an object that implements the IReadOnly interface.
var myObject = new MyReadOnlyObject();
myObject.ReadOnly(false);
Last updated
Was this helpful?