単純なイベントを持つクラスがありますが、イベントが発生すると、イベントパラメーターに応じて TextBlock.Text を変更するサブスクライブメソッドは何もしません。なぜこれが起こっているのか分かりませんか?おそらく非常に単純なことですが、答えを見つけることができませんでした。
<!-- this is the event of my WordHelper class -->
public delegate void WordHelperHandler(string attempt);
public event WordHelperHandler WordParsed;
<!-- this is excerpt from MainPage class -->
public MainPage()
{
InitializeComponent();
helper = new WordHelper();
helper.WordParsed += SetText;
helper.Load(); //this method calls the event
}
public void SetText(string text)
{
PageTitle.Text = text;
}