Image on Button?
Posted: 17 Jun 2019, 13:18
I'm looking at creating icons on buttons using textures
but I don't want to replace the existing background
is that possible?
My current code snippet, but it replaces the background of the entire button. is there an overlay or a content control that accepts images?
my goal is to replicate this 
but I don't want to replace the existing background
is that possible?
My current code snippet, but it replaces the background of the entire button. is there an overlay or a content control that accepts images?
Code: Select all
BottomDock.Children.Add(new Button
{
Content = "test",
Height = BottomStack.Height,
MinWidth = 40,
Background = new Noesis.ImageBrush
{
ImageSource = source,
Stretch = Stretch.Uniform
}
});