Objects have not a color fill

2021-03-24T11:01:24.397+00:00

Hi!
I have a problem. My application has many objects end they have a color fill. But I can't see it in Designer. When I start my play all objects have only white color. Why? What do I have to do? Please see any screenshots.
Best regards, Alexander

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,184 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
1,004 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Viorel 118K Reputation points
    2021-03-24T12:30:30.857+00:00

    It seems that your objects do not have a background. Try something like this:

     <Canvas . . . .>
       <Canvas.Background>
          <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
             <GradientStop Color="Black" Offset="0"/>
             <GradientStop Color="White" Offset="1"/>
          </LinearGradientBrush>
       </Canvas.Background>
    </Canvas>
    
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.