web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Toggle Fill missing?
Power Apps
Answered

Toggle Fill missing?

(0) ShareShare
ReportReport
Posted on by 185

I am using a toggle in a gallery to show the status.  I have been able to set the color of the toggle "button" based on its true or false value.  However, I am setting the background of the gallery's currently selected row to dark gray.  This makes the background fill around the text dark gray as well.  I want the background around the text to be white at all times.  See me screen shot below.  The first two are not selected, the third one is.  It makes the text hard to read.  Wouldn't this normally be the "Fill" property?  I don't have a "Fill".  I have TrueFill and FalseFill which sets the color or the toggle button.

ToggleFill.jpg

Am I mising where to set this?

Categories:
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @TMLyes, it does not have a fill property to it like you suggest.

    One workaround is to put a rectangle shape underneath it and set its fill to white.  That will always give you a white background to that toggle.

  • RusselThomas Profile Picture
    4,014 on at

    Hi TML,


    The Toggle control doesn't have a standard Fill property that I'm aware of.

    The easiest way to achieve the effect you're looking for is to insert a rectangle icon, make it white and place it just behind the toggle control.

     

    Hope this helps,

     

    RT

  • RusselThomas Profile Picture
    4,014 on at

    too quick @RandyHayes 😉

  • TML Profile Picture
    185 on at

    Thanks Randy & Russel... I should have thought of that myself.  Seems weird that every control under the sun has a fill but not the toggle.  It even has a "HandleFill" which is the round circle that slides left and right.

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    I know what you mean...seems like they didn't expose that one.

     

    The GOOD news is that you can now use Components and create your own control that would have a White shape under a Toggle control.  Expose whatever properties you want and then reuse it in your App without having to add a bunch of shapes to all your toggles. Definite "Like" for Components (even though still experimental).

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 339 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 289

#3
Mohsin Ali Profile Picture

Mohsin Ali 228

Last 30 days Overall leaderboard