moved from SVN to git

This commit is contained in:
root
2016-06-27 01:45:38 +02:00
commit 886b5e4fd6
4735 changed files with 2306248 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
namespace BeWo.Controls
{
public class ImageButton : Button
{
public static readonly DependencyProperty ImageSourceProperty;
static ImageButton()
{
ImageSourceProperty = DependencyProperty.Register("ImageSource", typeof(ImageSource), typeof(ImageButton));
}
protected override void OnRender(System.Windows.Media.DrawingContext drawingContext)
{
base.OnRender(drawingContext);
ImageSource test = this.ImageSource;
Image img = this.FindName("ButtonImage") as Image;
if (img != null)
{
img.Source = test;
}
}
public ImageSource ImageSource
{
get
{
return (ImageSource)GetValue(ImageSourceProperty);
}
set
{
SetValue(ImageSourceProperty, value);
}
}
}
}