This repository has been archived by the owner on Sep 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #52 from julien-wff/feat-more-buttons
feat: more buttons
- Loading branch information
Showing
23 changed files
with
366 additions
and
7 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 @@ | ||
<UserControl x:Class="EasyGUI.Controls.Buttons.DeleteButton" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:resx="clr-namespace:EasyGUI.Resources" | ||
xmlns:buttons="clr-namespace:EasyGUI.Controls.Buttons" | ||
mc:Ignorable="d" | ||
d:DesignHeight="50" d:DesignWidth="150"> | ||
<buttons:BaseButton ButtonText="{x:Static resx:Strings.DeleteButton_Delete}" | ||
Click="Button_OnClick" | ||
ButtonColor="{StaticResource RedBrush}" | ||
ButtonIcon="/Assets/Icons/trash-outline.png"/> | ||
</UserControl> |
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,18 @@ | ||
using System.Windows; | ||
|
||
namespace EasyGUI.Controls.Buttons; | ||
|
||
public partial class DeleteButton | ||
{ | ||
public DeleteButton() | ||
{ | ||
InitializeComponent(); | ||
} | ||
|
||
public event RoutedEventHandler? Click; | ||
|
||
private void Button_OnClick(object sender, RoutedEventArgs e) | ||
{ | ||
Click?.Invoke(this, e); | ||
} | ||
} |
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 @@ | ||
<UserControl x:Class="EasyGUI.Controls.Buttons.DiscardButton" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:resx="clr-namespace:EasyGUI.Resources" | ||
xmlns:buttons="clr-namespace:EasyGUI.Controls.Buttons" | ||
mc:Ignorable="d" | ||
d:DesignHeight="50" d:DesignWidth="150"> | ||
<buttons:BaseButton ButtonText="{x:Static resx:Strings.DiscardButton_Discard}" | ||
Click="Button_OnClick" | ||
ButtonColor="{StaticResource RedBrush}" | ||
ButtonIcon="/Assets/Icons/close-circle-outline.png"/> | ||
</UserControl> |
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,18 @@ | ||
using System.Windows; | ||
|
||
namespace EasyGUI.Controls.Buttons; | ||
|
||
public partial class DiscardButton | ||
{ | ||
public DiscardButton() | ||
{ | ||
InitializeComponent(); | ||
} | ||
|
||
public event RoutedEventHandler? Click; | ||
|
||
private void Button_OnClick(object sender, RoutedEventArgs e) | ||
{ | ||
Click?.Invoke(this, e); | ||
} | ||
} |
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 @@ | ||
<UserControl x:Class="EasyGUI.Controls.Buttons.PauseButton" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:buttons="clr-namespace:EasyGUI.Controls.Buttons" | ||
xmlns:resx="clr-namespace:EasyGUI.Resources" | ||
mc:Ignorable="d" | ||
d:DesignHeight="50" d:DesignWidth="150"> | ||
<buttons:BaseButton ButtonText="{x:Static resx:Strings.PauseButton_Pause}" | ||
Click="Button_OnClick" | ||
ButtonColor="{StaticResource OrangeBrush}" | ||
ButtonIcon="/Assets/Icons/pause-circle-outline.png" /> | ||
</UserControl> |
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,18 @@ | ||
using System.Windows; | ||
|
||
namespace EasyGUI.Controls.Buttons; | ||
|
||
public partial class PauseButton | ||
{ | ||
public PauseButton() | ||
{ | ||
InitializeComponent(); | ||
} | ||
|
||
public event RoutedEventHandler? Click; | ||
|
||
private void Button_OnClick(object sender, RoutedEventArgs e) | ||
{ | ||
Click?.Invoke(this, e); | ||
} | ||
} |
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 @@ | ||
<UserControl x:Class="EasyGUI.Controls.Buttons.ResumeButton" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:resx="clr-namespace:EasyGUI.Resources" | ||
xmlns:buttons="clr-namespace:EasyGUI.Controls.Buttons" | ||
mc:Ignorable="d" | ||
d:DesignHeight="50" d:DesignWidth="150"> | ||
<buttons:BaseButton ButtonText="{x:Static resx:Strings.ResumeButton_Resume}" | ||
Click="Button_OnClick" | ||
ButtonColor="{StaticResource GreenBrush}" | ||
ButtonIcon="/Assets/Icons/play-circle-outline.png"/> | ||
</UserControl> |
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,18 @@ | ||
using System.Windows; | ||
|
||
namespace EasyGUI.Controls.Buttons; | ||
|
||
public partial class ResumeButton | ||
{ | ||
public ResumeButton() | ||
{ | ||
InitializeComponent(); | ||
} | ||
|
||
public event RoutedEventHandler? Click; | ||
|
||
private void Button_OnClick(object sender, RoutedEventArgs e) | ||
{ | ||
Click?.Invoke(this, e); | ||
} | ||
} |
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
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
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
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
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
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
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
Oops, something went wrong.