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 / Change of Borderthickn...
Power Apps
Answered

Change of Borderthickness Delays

(0) ShareShare
ReportReport
Posted on by 39

Hello to all.

In the canvas app I'm trying to create, I have three buttons, and I want those buttons' border thickness changed according to the variable value applied to each button.

for example, Onselect property of ButtonA is...

 

Set(VariableA,1);

 

and Borderthickness property is...

 

If(VariableA=1,5,0)

 

Same in ButtonB,C, with VariableB,C.

 

When I select ButtonA, the borderthickness which suppose to be 5 doesn't make any change, however, when I click somewhere else on the screen (blank area of the app screen, I mean), the border of thickness 5 appears around the ButtonA.

 

 

Since clicking ButtonA after changing Onselect property into...

 

 

Set(VariableA,0);

 

 

the border disappears without clicking somewhere else, I thought it instantly change thickness without selecting(clicking) somewhere else... but is this normal in any case?

I tried to google but couldn't get any info about this kind of situation, and I'm wondering if any of you know the reason or whether this is usual in the PowerApps or if something is wrong with my coding.

 

Thanks in advance for your help!

(Sorry if this post is difficult to read... I'm not good at an explanation...)

Categories:
I have the same question (0)
  • Verified answer
    zmorek Profile Picture
    3,272 on at

    Is there a chance that the FocusedBorderThickness is obscuring the BorderThickness until selecting something other than the button?

  • turtle21 Profile Picture
    39 on at

    Thank you for your reply.

    You are right!

    I checked FocusedBorderThickness, which was 0, and changed it to the same as BorderThickness, and now it perfectly works!!

    Now I can understand why....it was focused until I click somewhere else so the border was thickness 0, and by clicking I changed the button from "focused" to "unfocused"...

     

    Thank you so much for your comment! I really appreciated it!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 860

#2
Valantis Profile Picture

Valantis 548

#3
Haque Profile Picture

Haque 417

Last 30 days Overall leaderboard