Browse Source

fixes: Renamed StartupScreen to StartupScreenIndex

pull/6074/head
Giuseppe Lippolis 5 years ago
parent
commit
fa133444c4
  1. 2
      samples/ControlCatalog/MainWindow.xaml.cs
  2. 4
      src/Avalonia.Diagnostics/Diagnostics/DevToolsOptions.cs
  3. 2
      src/Avalonia.Diagnostics/Diagnostics/ViewModels/MainViewModel.cs

2
samples/ControlCatalog/MainWindow.xaml.cs

@ -19,7 +19,7 @@ namespace ControlCatalog
this.InitializeComponent();
this.AttachDevTools(new Avalonia.Diagnostics.DevToolsOptions()
{
StartupScreen = 1,
StartupScreenIndex = 1,
});
//Renderer.DrawFps = true;
//Renderer.DrawDirtyRects = Renderer.DrawFps = true;

4
src/Avalonia.Diagnostics/Diagnostics/DevToolsOptions.cs

@ -24,8 +24,8 @@ namespace Avalonia.Diagnostics
public Size Size { get; set; } = new Size(1280, 720);
/// <summary>
/// Get or set the startup screen number where the DevTools window will be displayed.
/// Get or set the startup screen index where the DevTools window will be displayed.
/// </summary>
public int? StartupScreen { get; set; }
public int? StartupScreenIndex { get; set; }
}
}

2
src/Avalonia.Diagnostics/Diagnostics/ViewModels/MainViewModel.cs

@ -218,7 +218,7 @@ namespace Avalonia.Diagnostics.ViewModels
public void SetOptions(DevToolsOptions options)
{
StartupScreenIndex = options.StartupScreen;
StartupScreenIndex = options.StartupScreenIndex;
}
}
}

Loading…
Cancel
Save