Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: Make DefaultAppBarButtonStyle.Width a resource or a property #9403

Open
Poker-sang opened this issue Mar 5, 2024 · 1 comment
Open
Labels
feature proposal New feature proposal team-Controls Issue for the Controls team

Comments

@Poker-sang
Copy link

Proposal: Make DefaultAppBarButtonStyle.Width resource or a property

Summary

I would like to change the width of AppBarButton that collapsed label. But it is hard to get it.

Rationale

Now in the AppBarButton_themeresources.xaml:

<Setter Property="Width" Value="68" />

I have to do this to change the default width:

var resource = (Style)Resources["DefaultAppBarButtonStyle"];
resource.Setters[7] = new Setter(FrameworkElement.WidthProperty, 45);

The thing gets easier when it is a static resource or a property.

@Poker-sang Poker-sang added the feature proposal New feature proposal label Mar 5, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Mar 5, 2024
@Poker-sang Poker-sang changed the title Proposal: Make DefaultAppBarButtonStyle.Width a resource or a property Proposal: Make DefaultAppBarButtonStyle.Width a resource or a property Mar 5, 2024
Copy link

github-actions bot commented Mar 5, 2024

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one. Thank you!

Open similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@bpulliam bpulliam removed the needs-triage Issue needs to be triaged by the area owners label Mar 22, 2024
@bpulliam bpulliam added the team-Controls Issue for the Controls team label May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature proposal New feature proposal team-Controls Issue for the Controls team
Projects
None yet
Development

No branches or pull requests

2 participants