Skip to content

Commit f999541

Browse files
Update Microsoft.Toolkit.Uwp.SampleApp/SamplePages/TextToolbar/TextToolbarPage.xaml.cs
Co-authored-by: Michael Hawker MSFT (XAML Llama) <24302614+michael-hawker@users.noreply.github.com>
1 parent 834531c commit f999541

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Microsoft.Toolkit.Uwp.SampleApp/SamplePages/TextToolbar/TextToolbarPage.xaml.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,7 @@ private void UseRichTextFormatter()
106106
return;
107107
}
108108

109-
var formatter = new RichTextFormatter();
110-
_toolbar.Formatter = formatter;
109+
_toolbar.Formatter = new RichTextFormatter();
111110
}
112111

113112
private void UseMarkDownFormatter()
@@ -203,4 +202,4 @@ private void EditZone_TextChanged(object sender, RoutedEventArgs e)
203202

204203
private int DemoCounter { get; set; } = 0;
205204
}
206-
}
205+
}

0 commit comments

Comments
 (0)