1
Vote

Call detach buttons BEFORE set DataContext to Null

description

<p>When you set DataContext on Bar to null then button OnTextChanged firing with empty value and there is exception that &quot;text can not be null&quot;. So i think you need to remove buttons first from AppBar and then clear the DataContext.</p>

comments