Skip to content
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

Hotfix DataGrid row conditional foreground #1939

Conversation

spaccabit
Copy link

if you used style like this:

        <Style x:Key="WareTypeRow"
               BasedOn="{StaticResource MetroDataGridRow}"
               TargetType="DataGridRow">
            <Style.Triggers>
                <DataTrigger Binding="{Binding Expelled}" Value="True">
                    <Setter Property="Foreground" Value="Red" />
                </DataTrigger>
            </Style.Triggers>
            <Setter Property="Control.Foreground" Value="{DynamicResource BlackBrush}" />
            <Setter Property="FrameworkElement.Margin" Value="0" />
        </Style>
...
       <DataGrid RowStyle="{StaticResource WareTypeRow}" ...>
          ...
       </DataGrid/>

the style is not applied.

@punker76 punker76 mentioned this pull request Jun 25, 2015
@punker76
Copy link
Member

@spaccabit thx, the fix will be published by #2004

@punker76 punker76 closed this Jun 25, 2015
@spaccabit spaccabit deleted the hotfix/MetroDataGridRow_Conditional_Foreground branch June 26, 2015 12:35
@spaccabit spaccabit restored the hotfix/MetroDataGridRow_Conditional_Foreground branch June 26, 2015 12:35
@spaccabit spaccabit deleted the hotfix/MetroDataGridRow_Conditional_Foreground branch June 26, 2015 12:36
@punker76 punker76 added this to the 1.2.0 milestone Jun 29, 2015
@punker76 punker76 self-assigned this Jun 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants