Skip to content

Commit

Permalink
remove xaml
Browse files Browse the repository at this point in the history
  • Loading branch information
heftymouse committed Jun 6, 2024
1 parent bd3bd7e commit 5aae362
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

namespace Files.App.UserControls.StatusCenter
{
public sealed partial class SpeedGraph : UserControl
public sealed partial class SpeedGraph : Control
{
public ObservableCollection<Vector2> Points
{
Expand Down Expand Up @@ -43,10 +43,13 @@ public ObservableCollection<Vector2> Points

public SpeedGraph()
{
this.InitializeComponent();
// TODO: unhook
this.SizeChanged += OnSizeChanged;
this.Unloaded += UserControl_Unloaded;
this.ActualThemeChanged += UserControl_ActualThemeChanged;
}

private void UserControl_SizeChanged(object sender, SizeChangedEventArgs e)
private void OnSizeChanged(object sender, SizeChangedEventArgs e)
{
if (initialized)
return;
Expand Down
12 changes: 0 additions & 12 deletions src/Files.App/UserControls/StatusCenter/SpeedGraph.xaml

This file was deleted.

0 comments on commit 5aae362

Please sign in to comment.