I have the following code:
var cellButton = new Button( ) { Background = new SolidColorBrush(
Colors.Transparent ), BorderThickness = new Thickness( 0 ) };
Then I have a stackpanel
var stack = new StackPanel( ) { Orientation = Orientation.Vertical,
VerticalAlignment= VerticalAlignment.Stretch, HorizontalAlignment=
HorizontalAlignment.Stretch };
cellButton.Content = stack;
The button is the problem here. This seems to have no affect at all, am I doing something wrong? I can still see the default Boder and Default background(Gray) of the button. I even tried to change the color to something else, nothing.
So as you can see I had to strecht the stackpanel horizontal and vertical to overtake the buttons background as a dirty solution, but I can still see the border of the button.
opacityto 0?