diff --git a/src/Avalonia.Diagnostics/Diagnostics/Convetions.cs b/src/Avalonia.Diagnostics/Diagnostics/Conventions.cs
similarity index 80%
rename from src/Avalonia.Diagnostics/Diagnostics/Convetions.cs
rename to src/Avalonia.Diagnostics/Diagnostics/Conventions.cs
index b41755f239..9091b83ba2 100644
--- a/src/Avalonia.Diagnostics/Diagnostics/Convetions.cs
+++ b/src/Avalonia.Diagnostics/Diagnostics/Conventions.cs
@@ -1,11 +1,8 @@
using System;
-using System.Reflection;
-using Avalonia.Controls;
-using Avalonia.VisualTree;
namespace Avalonia.Diagnostics
{
- static class Convetions
+ internal static class Conventions
{
public static string DefaultScreenshotsRoot =>
System.IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyPictures, Environment.SpecialFolderOption.Create),
diff --git a/src/Avalonia.Diagnostics/Diagnostics/DevToolsOptions.cs b/src/Avalonia.Diagnostics/Diagnostics/DevToolsOptions.cs
index 5672641602..0558284142 100644
--- a/src/Avalonia.Diagnostics/Diagnostics/DevToolsOptions.cs
+++ b/src/Avalonia.Diagnostics/Diagnostics/DevToolsOptions.cs
@@ -36,11 +36,11 @@ namespace Avalonia.Diagnostics
public bool ShowImplementedInterfaces { get; set; } = true;
///
- /// Allow to customizze SreenshotHandler
+ /// Allow to customize SreenshotHandler
///
/// Default handler is
public IScreenshotHandler ScreenshotHandler { get; set; }
- = Convetions.DefaultScreenshotHandler;
+ = Conventions.DefaultScreenshotHandler;
///
/// Gets or sets whether DevTools should use the dark mode theme
diff --git a/src/Avalonia.Diagnostics/Diagnostics/Screenshots/FilePickerHandler.cs b/src/Avalonia.Diagnostics/Diagnostics/Screenshots/FilePickerHandler.cs
index 4153d2d38c..cfd7f9acf1 100644
--- a/src/Avalonia.Diagnostics/Diagnostics/Screenshots/FilePickerHandler.cs
+++ b/src/Avalonia.Diagnostics/Diagnostics/Screenshots/FilePickerHandler.cs
@@ -40,7 +40,7 @@ namespace Avalonia.Diagnostics.Screenshots
/// The default root folder is [Environment.SpecialFolder.MyPictures]/Screenshots.
///
public string ScreenshotsRoot { get; }
- = Convetions.DefaultScreenshotsRoot;
+ = Conventions.DefaultScreenshotsRoot;
///
/// SaveFilePicker Title
diff --git a/src/Avalonia.Diagnostics/Diagnostics/ViewModels/MainViewModel.cs b/src/Avalonia.Diagnostics/Diagnostics/ViewModels/MainViewModel.cs
index 9e8a5d8d9b..1cdebaae01 100644
--- a/src/Avalonia.Diagnostics/Diagnostics/ViewModels/MainViewModel.cs
+++ b/src/Avalonia.Diagnostics/Diagnostics/ViewModels/MainViewModel.cs
@@ -96,7 +96,9 @@ namespace Avalonia.Diagnostics.ViewModels
changed = false;
}
if (changed)
- RaiseAndSetIfChanged(ref _shouldVisualizeDirtyRects, value);
+ {
+ RaiseAndSetIfChanged(ref _shouldVisualizeDirtyRects, value);
+ }
}
}
@@ -331,7 +333,7 @@ namespace Avalonia.Diagnostics.ViewModels
private set => RaiseAndSetIfChanged(ref _showImplementedInterfaces , value);
}
- public void ToggleShowImplementedInterfaces(object parametr)
+ public void ToggleShowImplementedInterfaces(object parameter)
{
ShowImplementedInterfaces = !ShowImplementedInterfaces;
if (Content is TreePageViewModel viewModel)
@@ -340,15 +342,15 @@ namespace Avalonia.Diagnostics.ViewModels
}
}
- public bool ShowDettailsPropertyType
+ public bool ShowDetailsPropertyType
{
get => _showPropertyType;
private set => RaiseAndSetIfChanged(ref _showPropertyType , value);
}
- public void ToggleShowDettailsPropertyType(object paramter)
+ public void ToggleShowDetailsPropertyType(object parameter)
{
- ShowDettailsPropertyType = !ShowDettailsPropertyType;
+ ShowDetailsPropertyType = !ShowDetailsPropertyType;
}
}
}
diff --git a/src/Avalonia.Diagnostics/Diagnostics/Views/ControlDetailsView.xaml b/src/Avalonia.Diagnostics/Diagnostics/Views/ControlDetailsView.xaml
index a426b387f7..bf595d82a3 100644
--- a/src/Avalonia.Diagnostics/Diagnostics/Views/ControlDetailsView.xaml
+++ b/src/Avalonia.Diagnostics/Diagnostics/Views/ControlDetailsView.xaml
@@ -19,7 +19,7 @@