XamlOptionalChanges.Lock Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.