자주 사용되는 메소드들
자주 사용되는 메소드들
자주 사용되는 메소드들
자주 사용되는 메소드들
static void SetButtonText(ToggleButton button, string text) { ILogical textBlock = button.GetLogicalDescendants().First(x => x is TextBlock); if (textBlock != null && textBlock is TextBlock block) { block.Text = text; } }