I'm using C# and WPF in Surface programming, now I have an Image object, but failed to use as the background as a Button object...Here is some related code:
using System.Windows.Media.Imaging;
using System.Drawing;
using Microsoft.Surface;
using Microsoft.Surface.Presentation;
using Microsoft.Surface.Presentation.Controls;
using Microsoft.Surface.Presentation.Input;
Image image = Image.FromFile(someFile);
SurfaceButton button1 = new SurfaceButton();
Now how to do this? I've succeeded in displaying an image using ImageBrush, but this time I just want to use the Image image itself.