question

93457098 avatar image
0 Votes"
93457098 asked Viorel-1 answered

Objects have not a color fill

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

[1]: /answers/storage/attachments/81129-vs2019-01.jpg

[2]: /answers/storage/attachments/81059-vs2019-02.jpg

vs-generalvs-debugging
vs2019-01.jpg (61.2 KiB)
vs2019-02.jpg (28.1 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

Viorel-1 avatar image
0 Votes"
Viorel-1 answered

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>
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.