Giter VIP home page Giter VIP logo

Comments (15)

jevansaks avatar jevansaks commented on May 22, 2024

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.

from microsoft-ui-xaml.

kikisaints avatar kikisaints commented on May 22, 2024

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.

from microsoft-ui-xaml.

jevansaks avatar jevansaks commented on May 22, 2024

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. :)

from microsoft-ui-xaml.

kikisaints avatar kikisaints commented on May 22, 2024

For SplitButton, I was imagining something like this:
splitbutton_reveal

from microsoft-ui-xaml.

lhak avatar lhak commented on May 22, 2024

I tried using ButtonRevealStyle, but this does not show the dropdown indicator.

from microsoft-ui-xaml.

kikisaints avatar kikisaints commented on May 22, 2024

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="&#xE70D;"
            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:
dropdownbutton_revealgif

from microsoft-ui-xaml.

lhak avatar lhak commented on May 22, 2024

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).

from microsoft-ui-xaml.

chigy avatar chigy commented on May 22, 2024

@lhak - Sounds like you were able to workaround it for now. And I thank you for opening the issue in the Windows UI Library repo. That's the right place for the feedback. Let me know if there is anything that you still need (other than the support which will be tracked with #172).

from microsoft-ui-xaml.

msft-github-bot avatar msft-github-bot commented on May 22, 2024

🎉This issue was addressed in #1211, which has now been successfully released as Microsoft.UI.Xaml v2.2.190830001.:tada:

Handy links:

from microsoft-ui-xaml.

lhak avatar lhak commented on May 22, 2024

It seems that the added style is incomplete and lacks the dropdown indicator. It also does not show up in the intellisense box.

from microsoft-ui-xaml.

msft-github-bot avatar msft-github-bot commented on May 22, 2024

🎉This issue was addressed in #1316, which has now been successfully released as Microsoft.UI.Xaml v2.2.190917002.:tada:

Handy links:

from microsoft-ui-xaml.

lhak avatar lhak commented on May 22, 2024

I tested the updated package but I still see some issues (the first two might be limitations of Visual Studio):

  • The intellisense context menu in Visual Studio does not offer this as a style for the DropDownButton
  • Jumping to the style definition with F12 does not work
  • When the control is disabled the text of the button is grayed out, but the dropdown symbol is not

from microsoft-ui-xaml.

jevansaks avatar jevansaks commented on May 22, 2024

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?

from microsoft-ui-xaml.

marcelwgn avatar marcelwgn commented on May 22, 2024

I will look into the third bug.

from microsoft-ui-xaml.

msft-github-bot avatar msft-github-bot commented on May 22, 2024

🎉This issue was addressed in #1316, which has now been successfully released as Microsoft.UI.Xaml v2.3.191007001-prerelease.:tada:

Handy links:

from microsoft-ui-xaml.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.