Change the opacity of the Parent only

Jassim Al Rahma 1,616 Reputation points
2023-04-17T14:53:25.4233333+00:00

Hi, In the below screenshot, I have a StackHolder with opacity is set to 0.5 but the problem is it also sets the opacity of all the controls inside it to the same opacity How can I ensure that the controls inside the Stackholder will keep the default value which is 1? 39D39634-A609-49C4-A0D4-3C60858FF0E9_4_5005_c

Thanks, Jassim

Developer technologies | .NET | .NET MAUI
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Jassim Al Rahma 1,616 Reputation points
    2023-04-17T21:12:54.0166667+00:00

    I found this solution. Thanks to ChatGPT

    GridMemberDetails.BackgroundColor = new Color(0, 0, 0, 0.5f);
    
    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.