Initial commit

This commit is contained in:
2014-04-30 17:33:21 -04:00
commit f965f46fb3
33 changed files with 2949 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
namespace Common.Wpf.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; }
}
}
}