XamlOptionalChanges.Lock Method

Definition

Locks optional XAML changes so that no further changes can be enabled or disabled.

public:
 static bool Lock();
 static bool Lock();
public static bool Lock();
function lock()
Public Shared Function Lock () As Boolean

Returns

Boolean

bool

true if the changes were successfully locked; otherwise, false.

Remarks

After this method is called, EnableChange and DisableChange will return false. XAML initialization also locks changes automatically.

Applies to

See also