mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 19:26:39 +02:00
Add keyboard manager settings ui[Part-1] (#1979)
* Added view and data models for keyboard remapper settings page * Added intial UI of Keyboard manager settings page * Fixed Sln file configs * Resolve UI changes PR comments * Added UId for UI elements * Moved Ui strings to resx * resolve stylecop warnings * Fixed missing tag from resx file
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
// Copyright (c) Microsoft Corporation
|
||||
// The Microsoft Corporation licenses this file to you under the MIT license.
|
||||
// See the LICENSE file in the project root for more information.
|
||||
|
||||
using Microsoft.PowerToys.Settings.UI.Helpers;
|
||||
|
||||
namespace Microsoft.PowerToys.Settings.UI.ViewModels
|
||||
{
|
||||
public class KeyboardManagerViewModel : Observable
|
||||
{
|
||||
public KeyboardManagerViewModel()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
// Copyright (c) Microsoft Corporation
|
||||
// The Microsoft Corporation licenses this file to you under the MIT license.
|
||||
// See the LICENSE file in the project root for more information.
|
||||
|
||||
using System.Collections.ObjectModel;
|
||||
|
||||
namespace Microsoft.PowerToys.Settings.UI.ViewModels
|
||||
{
|
||||
// Dummy data model for the UI. Will be removed moving forward.
|
||||
public class RemapKeysModel : ObservableCollection<Keys>
|
||||
{
|
||||
public RemapKeysModel()
|
||||
{
|
||||
this.Add(new Keys { From = "A", To = "B" });
|
||||
this.Add(new Keys { From = "B", To = "A" });
|
||||
this.Add(new Keys { From = "Ctrl", To = "Shift" });
|
||||
this.Add(new Keys { From = "Shift", To = "Ctrl" });
|
||||
this.Add(new Keys { From = "A", To = "B" });
|
||||
this.Add(new Keys { From = "B", To = "B" });
|
||||
this.Add(new Keys { From = "Ctrl", To = "Shift" });
|
||||
this.Add(new Keys { From = "Shift", To = "Ctrl" });
|
||||
}
|
||||
}
|
||||
|
||||
public class Keys
|
||||
{
|
||||
public string From { get; set; }
|
||||
|
||||
public string To { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user