mirror of
https://github.com/VitalickS/BrightSharp.Toolkit.git
synced 2026-03-23 03:11:15 +00:00
Ver 2.0. Fixes and improvements.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using BrightSharp.Converters;
|
||||
using Diagrams;
|
||||
using System;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
|
||||
@@ -15,6 +16,7 @@ namespace BrightSharp.Ui.Tests
|
||||
{
|
||||
InitializeComponent();
|
||||
SelectionBehavior.Attach(innerCanvas);
|
||||
//ThemeManager.Theme = ColorThemes.DarkBlue;
|
||||
tb.Text = ThemeManager.Theme.ToString();
|
||||
}
|
||||
|
||||
@@ -46,11 +48,11 @@ namespace BrightSharp.Ui.Tests
|
||||
private void DataGrid_AutoGeneratedColumns(object sender, EventArgs e)
|
||||
{
|
||||
var dg = (DataGrid)sender;
|
||||
var stringHelper = new StringHelpConverter();
|
||||
foreach (var col in dg.Columns)
|
||||
{
|
||||
col.Header = stringHelper.Convert(col.Header, null, "SpaceBetweenCaps", null);
|
||||
col.Header = Regex.Replace(col.Header.ToString(), "([a-z])([A-Z])", "$1 $2");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user