次のコード スニペットは、システム例外をスローします。
TextBlock selectionText = new TextBlock();
selectionText.IsTextSelectionEnabled = true;
selectionText.Text = "Hello world";
selectionText.Foreground = new SolidColorBrush(global::Windows.UI.Color.FromArgb(255, 255, 0, 0));
selectionText.SelectAll();
私のコードで何が間違っていますか?
前もって感謝します