Initial commit

This commit is contained in:
2023-04-07 14:55:19 -04:00
commit dedffd77a1
11 changed files with 1158 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
namespace ChrisKaczor.Wpf.Controls.Toolbar
{
public partial class ImageButton
{
public ImageButton()
{
InitializeComponent();
Loaded += HandleImageButtonLoaded;
}
void HandleImageButtonLoaded(object sender, RoutedEventArgs e)
{
if (Style == null && Parent is ToolBar)
{
Style = (Style) FindResource(ToolBar.ButtonStyleKey);
}
}
public ImageSource ImageSource
{
get { return image.Source; }
set { image.Source = value; }
}
}
}