c# - Log View Grid in WPF -
First of all I am new to WPF and MVVM so it is a simple question I
I WPF I'm making a log viewer for an application, and I have a grid of connected titles that you can click and can be expanded to show the log text as part of the grid, as well as adjust the text You can move all other rows to the line.
What is the best way to accomplish this? Is there a control already present? Do I Need to Create My Custom Control?
you RowsDetailsTemplate
Grid:
< Code> & lt; Data Grid Grid Ro = "1" Margin = "4,0,4,4" Otogrentek columns = "false" Aitmssors = "{Binding few Aitmsssors}" CanUserAddRows = "False" AlternatingRowBackground = "# FFCED9FF" RowDetailsTemplate = "{StaticResource gridDetilsTemplate}" & Gt; & Lt; DataGrid.Columns & gt; & Lt; DataGridTextColumnBinding = "{Binding Some Values}" Header = "Some Text" IsReadOnly = "True" /> ... and & lt; / DataGrid.Columns & gt; & Lt; / Data grid & gt;
and template dictionary resources of its parent (can be the original dictionary resources, or you can write directly to the template grid):
< Code> & lt; Window.Resources & gt; & Lt; Datamapplet X: Key = "GridDetTemplate" & gt; & Lt; Border Border Brush = "black" Bordertikliknes = "1,0,1,1" Margin = "2,0,2,2" Kornrradia = "0,0,3,3" padding = "4,0,0, 0 "& Gt; & Lt; Text block text = "{binary some value}" /> & Lt; / Border & gt; & Lt; / DataTemplate & gt;
I think this is important for you, a grid line description. Hope that works
Comments
Post a Comment