I'd like to change the IsPressed state of a ToggleButton via C#. Unfortunately i get the message that says "The property or indexer 'ButtonBase.IsPressed' cannot be used in the context....". 

Is there a way to set it via C# code?

[Screen capture of example](https://i.stack.imgur.com/x9NWz.jpg)