//constructor public SoundButton() { InitializeComponent(); this.Image.Source = ImageSourcer.GetSound(this.state); }
private void _changeState() { this.state = !this.state; this.Image.Source = ImageSourcer.GetSound(this.state); }