-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
DataGridNumericUpDownColumn foreground color #2434
Comments
Which version of MahApps do you use. |
<ma:DataGridNumericUpDownColumn
Header="{lex:Loc Key=QTY}"
Minimum="1"
Binding="{Binding Quantity,UpdateSourceTrigger=PropertyChanged,StringFormat=N2}"
HeaderStyle="{StaticResource _right_aligned_header}">
<ma:DataGridNumericUpDownColumn.CellStyle>
<Style TargetType="DataGridCell" BasedOn="{StaticResource {x:Type DataGridCell}}">
<Setter Property="ma:NumericUpDown.IsReadOnly" Value="{Binding IsBundleProduct}"/>
</Style>
</ma:DataGridNumericUpDownColumn.CellStyle>
</ma:DataGridNumericUpDownColumn> Using latest source. |
How is _right_aligned_header defined? |
<DataGrid.Resources>
<Style x:Key="_right_aligned_header" TargetType="DataGridColumnHeader" BasedOn="{StaticResource MetroDataGridColumnHeader}">
<Setter Property="HorizontalContentAlignment" Value="Right" />
</Style>
<Style x:Key="_left_aligned_header" TargetType="DataGridColumnHeader" BasedOn="{StaticResource MetroDataGridColumnHeader}">
<Setter Property="HorizontalContentAlignment" Value="Left"/>
</Style>
</DataGrid.Resources> |
Ok, the error is in following code: <Style TargetType="DataGridCell" BasedOn="{StaticResource {x:Type DataGridCell}}">
<Setter Property="ma:NumericUpDown.IsReadOnly" Value="{Binding IsBundleProduct}"/>
</Style> Just change |
@GAMP Is this still an issue for you? |
|
It seems that the default style of the Here's what Snoop shows for a cell in a normal And here's what Snoop shows for a cell in a I'll keep poking around and see what if I can find a way to get the |
Still an issue |
@GAMP It's never too late to fix Issues :-D This is now fixed and available in 1.5.0 |
When selected font color is not changed as on other text elements.
The text was updated successfully, but these errors were encountered: