xaml - WPF Datagrid Style Selected Row -


I have a wpf 4.5 application in which the user controls a datagrid, I have created a style for the datagrid in blend but when I have your vs 2012, I am making a copy of the style in the project so it is not working properly.

Looks like the original style in Blend:

blend datagrid style

Please select the color of the text in the selected row (green) and the padding around the text box which is being edited

Now it is the same style that resembles Visual Studio 2012 Is:

VS Datagrid Style

Highlights from the selected row The text that is made is the same color as the background (it's making this invisible), and I'm not Can

  & lt; Style target type = "{x: type data grid cell}" gt;  

Change the textbox border or margin to match this style style. & Lt; Setter Property = "FocusVijual Style" Value = "{x: Faucet}" /> & Lt; Setter Estates = "Template" & gt; & Lt; Setter.Value & gt; & Lt; ControlTemplate TargetType = "{x: type data grid cell}" & gt; & Lt; Border x: name = "border" borderbrush = "transparent" borderticness = "1" background = "transparent" snaptvideo pixels = "true" margin = "15,10,15,10" & gt; & Lt; ContentPresenter name = "cell content" SnapsToDevicePixels = "True" /> & Lt; / Border & gt; & Lt; ControlTemplate.Triggers & gt; & Lt; Trigger Property = "Iceded" value = "true" & gt; & Lt; Setter property = "foreground" value = "green" /> & Lt; / Catalyst & gt; & Lt; Trigger Property = "IsKeyboardFocusWithin" value = "true" & gt; & Lt; Setter Property = "Borderbrush" TargetName = "border" Value = "# FFD8D8D8" /> & Lt; / Catalyst & gt; & Lt; /ControlTemplate.Triggers> & Lt; / ControlTemplate & gt; & Lt; /Setter.Value> & Lt; / Setter & gt; & Lt; / Style & gt;

So you can see that marking the deer as foreground color works in the mix, but there is no visual studio. I think it's the color of a system that overrides the trigger, but how can I be sure how to track it.

Anyone please correct the problem of this genre, select the selected row text color and text box border / margin.

Hello my style Tried and changed the foreground color to green on my machine ... but if it does not work in your DevEnvironment, you can try to override the systemroller for selected-line text!

Remove your style and trigger

  & lt; Solid codebrush x: key = "{x: Static system calculators. Highlight textbrushes}" color = "green" />    

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -