Skip to content

Commit 0691b36

Browse files
committed
minor cleanup of ScottPlot example
1 parent ee8e185 commit 0691b36

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/CSharpMarkup.WinUI.Examples/WinUICsMarkupExamples.Presentation/Core/GlobalUsings.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@
3535
global using UI = Microsoft.UI;
3636
global using UIBindable = Microsoft.UI.Xaml.Data.BindableAttribute;
3737
global using UIControls = Microsoft.UI.Xaml.Controls;
38-
global using SpLib = ScottPlot;
39-
global using SpUI = ScottPlot.WinUI;
38+
global using UIScottPlot = ScottPlot.WinUI;
4039

4140
// - Non-view types, e.g. enums, don't need a UI prefix because they are not mirrored as types in the CSharpMarkup namespaces
4241
global using BindingMode = Microsoft.UI.Xaml.Data.BindingMode;

src/CSharpMarkup.WinUI.Examples/WinUICsMarkupExamples.Presentation/Example/ScottPlotPage.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public void BuildUI() => Content (
1616
AppBarButton() .Icon("Images/forward") .Bind(vm?.ForwardCommand)
1717
) .Grid_Row(Row.Header),
1818

19-
WinUIPlot() .Invoke(ExampleGraph)
19+
WinUIPlot() .Invoke(ExampleGraph)
2020
.Grid_Row(Row.Body) .HVStretch()
2121
)
2222
);

src/CSharpMarkup.WinUI.Examples/WinUICsMarkupExamples.Presentation/Example/ScottPlotPage.logic.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ public sealed partial class ScottPlotPage : BasePage<ScottPlotViewModel>, IBuild
77
{
88
public ScottPlotPage() => BuildUI();
99

10-
void ExampleGraph(SpUI.WinUIPlot plot)
10+
void ExampleGraph(UIScottPlot.WinUIPlot plot)
1111
{
1212
plot.Plot.Title("Example Graph");
1313
plot.Plot.Add.Signal(Generate.Sin(51));

0 commit comments

Comments
 (0)