-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
637b055
commit e202812
Showing
8 changed files
with
151 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
src/OneWare.UniversalFpgaProjectSystem/Fpga/Gui/FpgaGuiElement.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
namespace OneWare.UniversalFpgaProjectSystem.Fpga.Gui; | ||
|
||
public class FpgaGuiElement | ||
{ | ||
public string? Type { get; set; } | ||
|
||
public int X { get; set; } | ||
|
||
public int Y { get; set; } | ||
} |
10 changes: 10 additions & 0 deletions
10
...re.UniversalFpgaProjectSystem/ViewModels/FpgaGuiElements/FpgaGuiElementButtonViewModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using OneWare.UniversalFpgaProjectSystem.Fpga.Gui; | ||
|
||
namespace OneWare.UniversalFpgaProjectSystem.ViewModels.FpgaGuiElements; | ||
|
||
public class FpgaGuiElementButtonViewModel : FpgaGuiElementViewModelBase | ||
{ | ||
public FpgaGuiElementButtonViewModel(FpgaGuiElement element) : base(element) | ||
{ | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...Ware.UniversalFpgaProjectSystem/ViewModels/FpgaGuiElements/FpgaGuiElementViewModelBase.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using CommunityToolkit.Mvvm.ComponentModel; | ||
using OneWare.UniversalFpgaProjectSystem.Fpga.Gui; | ||
|
||
namespace OneWare.UniversalFpgaProjectSystem.ViewModels.FpgaGuiElements; | ||
|
||
public class FpgaGuiElementViewModelBase : ObservableObject | ||
{ | ||
public FpgaGuiElement Element { get; } | ||
|
||
public FpgaGuiElementViewModelBase(FpgaGuiElement element) | ||
{ | ||
Element = element; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
src/OneWare.UniversalFpgaProjectSystem/Views/FpgaGuiElements/FpgaGuiElementButtonView.axaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<UserControl xmlns="https://github.com/avaloniaui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:fpgaGuiElements="clr-namespace:OneWare.UniversalFpgaProjectSystem.ViewModels.FpgaGuiElements" | ||
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" | ||
x:Class="OneWare.UniversalFpgaProjectSystem.Views.FpgaGuiElements.FpgaGuiElementButtonView" x:DataType="fpgaGuiElements:FpgaGuiElementButtonViewModel"> | ||
<Button Height="10" Width="10" Background="Red"/> | ||
</UserControl> |
13 changes: 13 additions & 0 deletions
13
...neWare.UniversalFpgaProjectSystem/Views/FpgaGuiElements/FpgaGuiElementButtonView.axaml.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using Avalonia; | ||
using Avalonia.Controls; | ||
using Avalonia.Markup.Xaml; | ||
|
||
namespace OneWare.UniversalFpgaProjectSystem.Views.FpgaGuiElements; | ||
|
||
public partial class FpgaGuiElementButtonView : UserControl | ||
{ | ||
public FpgaGuiElementButtonView() | ||
{ | ||
InitializeComponent(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters