Comments (15)
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.
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.
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.
For SplitButton, I was imagining something like this:
from microsoft-ui-xaml.
I tried using ButtonRevealStyle, but this does not show the dropdown indicator.
from microsoft-ui-xaml.
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:
from microsoft-ui-xaml.
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.
@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.
🎉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.
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.
🎉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.
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.
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.
I will look into the third bug.
from microsoft-ui-xaml.
🎉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)
- Can't deploy app: DEP1700: The recipe file "...\xxx.build.appxrecipe" does not exist.
- The TextBox component renders abnormally HOT 1
- Bug: Second item in sub menu is selected first when using arrow key navigationBug title HOT 2
- Xaml Islands issue on drag and drop / reorder HOT 2
- Acrylic Brush is disabled when ShouldConstrainToRootBound set to false in Flyouts and Popups HOT 1
- WinUI library projects throws Markup.XamlParseException: The text associated with this error code could not be found. HOT 1
- Acrylic Brush doesn't work in combobox HOT 2
- Window.Visible property throws when window is closed HOT 1
- Ink on InkCanvas flashes when Ink Canvas (or parent control) is enabled or disabled HOT 3
- Is the sub-process listed in Task Manager always the name of the csproj? HOT 1
- `TextBlock.LineHeight` behaves unexpectedly HOT 4
- Memory leaks in unpackaged C++-Desktop-App HOT 3
- WASDK Nuget Package cannot be installed if there is no internet connection! HOT 1
- NavigationBackButtonNormalStyle is wrong when used directly
- NavigationView causes exception on destruct while debugging
- Cannot create a new WinUI 3 app and target .NET 8 HOT 5
- Standard window icons invisible when ExtendsContentIntoTitleBar is set and accent color for title bars is used
- Massive lag when dragging a WinUI3 window HOT 2
- InfoBadge information is not centered
- Button cuts the content at some scaling levels
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from microsoft-ui-xaml.