Skip to content

Commit c80e154

Browse files
committed
Applied PR feedback.
1 parent 5b2af56 commit c80e154

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Microsoft.Toolkit.Uwp.SampleApp/SamplePages/TextToolbar/TextToolbarCode.bind

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ private void EditZone_TextChanged(object sender, Windows.UI.Xaml.RoutedEventArgs
1818

1919
private void UseCustomFormatter()
2020
{
21-
var formatter = new SampleFormatter();
22-
Toolbar.Formatter = formatter;
21+
Toolbar.Formatter = new SampleFormatter();
2322
}
2423

2524
private int DemoCounter { get; set; } = 0;

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,7 @@ private void UseCustomFormatter()
126126
return;
127127
}
128128

129-
var formatter = new SampleFormatter();
130-
_toolbar.Formatter = formatter;
129+
_toolbar.Formatter = new SampleFormatter();
131130
}
132131

133132
private void AddCustomButton()

0 commit comments

Comments
 (0)