-
Notifications
You must be signed in to change notification settings - Fork 667
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
Add DropDownButtonRevealStyle #70
Comments
Yup, totally agree. This seems to be an oversight. @chigy @kikisaints could you see about getting a comp for this? I don't know when our team would be able to get to this, but we would welcome a contribution for this. |
Actually, since DropDownButton's template is based on button, simply doing this: <DropDownButton Content="Email" Style="{ThemeResource ButtonRevealStyle}"/> Will give you full Reveal on the DropDownButton. However, for clarity's sake, I'd suggest we add something like this to generic.xaml: <Style TargetType="DropDownButton" x:Key="DropDownButtonRevealStyle" BasedOn="{StaticResource ButtonRevealStyle}"/> @jevansaks I don't believe a comp is necessary, as testing out the ButtonRevealStyle on the DropDownButton gives the desired results and can be viewed today - but let me know if you feel otherwise. |
I forgot to call out that I think we should also do a SplitButton reveal style along with this. For DropDownButton, yes, the fix may be simple -- but it still needs to be done. :) |
I tried using ButtonRevealStyle, but this does not show the dropdown indicator. |
Ah! So you are correct, @lhak. For your immediate remedy then, you can do this: <DropDownButton Style="{ThemeResource ButtonRevealStyle}">
<DropDownButton.Content>
<StackPanel Orientation="Horizontal">
<TextBlock
Text="Email"
VerticalAlignment="Center"/>
<TextBlock
x:Name="ChevronTextBlock"
Grid.Column="1"
FontFamily="Segoe MDL2 Assets"
FontSize="12"
Text=""
VerticalAlignment="Center"
Margin="6,0,0,0"
AutomationProperties.AccessibilityView="Raw"/>
</StackPanel>
</DropDownButton.Content>
<DropDownButton.Flyout>
<MenuFlyout Placement="Bottom">
<MenuFlyoutItem Text="Send"/>
<MenuFlyoutItem Text="Reply"/>
<MenuFlyoutItem Text="Reply All"/>
</MenuFlyout>
</DropDownButton.Flyout>
</DropDownButton> But @jevansaks, here's a prototype comp for DropDownButtonStyle: |
Thank you for the suggestion. I actually need to put this button into a commandbar so I have used some similar code in a retemplated AppBarButton. Still, an official AppBarDropDownButton control would be great (see #172). |
🎉This issue was addressed in #1211, which has now been successfully released as Handy links: |
It seems that the added style is incomplete and lacks the dropdown indicator. It also does not show up in the intellisense box. |
🎉This issue was addressed in #1316, which has now been successfully released as Handy links: |
I tested the updated package but I still see some issues (the first two might be limitations of Visual Studio):
|
Thanks! Yes, the first two are limitations of visual studio. Could you file those via the "send feedback" in VS? The third one seems like a bug. @chingucoding @kaiguo can you take a look? |
I will look into the third bug. |
🎉This issue was addressed in #1316, which has now been successfully released as Handy links: |
Proposal: Add DropDownButtonRevealStyle
Summary
Add a reveal style for the DropDownButton control.
Rationale
There are currently reveal styles for many controls of the platform. However, there is one missing for the DropDownButton control. It would be nice if such a style could be added to WinUI.
Functional Requirements
The style should have a similar design to the current ButtonRevealStyle/AppBarButtonRevealStyle styles.
Usage Examples
Detailed Feature Design
Open Questions
The text was updated successfully, but these errors were encountered: