We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I implemented NumberBox in my application that is set up to work in Dark Mode. However, NumberBox did not respect the theme.
Specifying ThemeManager.RequestedTheme on the control itself can be used as a workaround.
Bug <ui:NumberBox Header="Clients to start" Value="{Binding NumberOfClientsToStart, Mode=TwoWay}" InputScope="Number" SpinButtonPlacementMode="Inline" Text="Clients to start"/>
<ui:NumberBox Header="Clients to start" Value="{Binding NumberOfClientsToStart, Mode=TwoWay}" InputScope="Number" SpinButtonPlacementMode="Inline" Text="Clients to start"/>
Workaround <ui:NumberBox Header="Clients to start" Value="{Binding NumberOfClientsToStart, Mode=TwoWay}" InputScope="Number" SpinButtonPlacementMode="Inline" Text="Clients to start" ui:ThemeManager.RequestedTheme="Dark"/>
<ui:NumberBox Header="Clients to start" Value="{Binding NumberOfClientsToStart, Mode=TwoWay}" InputScope="Number" SpinButtonPlacementMode="Inline" Text="Clients to start" ui:ThemeManager.RequestedTheme="Dark"/>
The text was updated successfully, but these errors were encountered:
I met the same problem. @dostjh Additionally, VS would prompt a binding error like that:
Sorry, something went wrong.
This appears to also happen for TextBlock elements.
No branches or pull requests
I implemented NumberBox in my application that is set up to work in Dark Mode. However, NumberBox did not respect the theme.
Specifying ThemeManager.RequestedTheme on the control itself can be used as a workaround.
Bug
<ui:NumberBox Header="Clients to start" Value="{Binding NumberOfClientsToStart, Mode=TwoWay}" InputScope="Number" SpinButtonPlacementMode="Inline" Text="Clients to start"/>
Workaround
<ui:NumberBox Header="Clients to start" Value="{Binding NumberOfClientsToStart, Mode=TwoWay}" InputScope="Number" SpinButtonPlacementMode="Inline" Text="Clients to start" ui:ThemeManager.RequestedTheme="Dark"/>
The text was updated successfully, but these errors were encountered: