3
3
using System . Windows ;
4
4
using System . Windows . Controls ;
5
5
using System . Windows . Input ;
6
+ using System . Windows . Shell ;
6
7
7
8
namespace UnityLauncherPro
8
9
{
@@ -22,16 +23,24 @@ public MainWindow()
22
23
23
24
void Start ( )
24
25
{
26
+ // make window resizable (didnt work within xaml..)
27
+ WindowChrome Resizable_BorderLess_Chrome = new WindowChrome ( ) ;
28
+ Resizable_BorderLess_Chrome . GlassFrameThickness = new Thickness ( 0 ) ;
29
+ Resizable_BorderLess_Chrome . CornerRadius = new CornerRadius ( 0 ) ;
30
+ Resizable_BorderLess_Chrome . CaptionHeight = 1.0 ;
31
+ WindowChrome . SetWindowChrome ( this , Resizable_BorderLess_Chrome ) ;
32
+
33
+
25
34
// test data
26
35
dataGrid . Items . Clear ( ) ;
27
36
for ( int i = 0 ; i < 6 ; i ++ )
28
37
{
29
- dataGrid . Items . Add ( new Project { Title = "asdf" + i , Version = "5000" , Path = "A:/" , Modified = DateTime . Now , Arguments = "" , GITBranch = "-" } ) ;
38
+ dataGrid . Items . Add ( new Project { Title = "asdf" + i , Version = "5000" , Path = "A:/" , Modified = DateTime . Now , Arguments = "" , GITBranch = "-" } ) ;
30
39
dataGrid . Items . Add ( new Project { Title = "asdf asd" , Version = "2" , Path = "C:/" , Modified = DateTime . Now , Arguments = "" , GITBranch = "-" } ) ;
31
- dataGrid . Items . Add ( new Project { Title = "kuykkyu" + i * 2 , Version = "23.23.23" , Path = "8,1" , Modified = DateTime . Now , Arguments = "" , GITBranch = "-" } ) ;
40
+ dataGrid . Items . Add ( new Project { Title = "kuykkyu" + i * 2 , Version = "23.23.23" , Path = "8,1" , Modified = DateTime . Now , Arguments = "" , GITBranch = "-" } ) ;
32
41
dataGrid . Items . Add ( new Project { Title = "RT435y" , Version = "3333" , Path = "X:/" , Modified = DateTime . Now , Arguments = "" , GITBranch = "-" } ) ;
33
42
dataGrid . Items . Add ( new Project { Title = "asdf" , Version = "5000" , Path = "A:/" , Modified = DateTime . Now , Arguments = "" , GITBranch = "-" } ) ;
34
- dataGrid . Items . Add ( new Project { Title = "asdf asd" + i * 3 , Version = "2" , Path = "C:/" , Modified = DateTime . Now , Arguments = "" , GITBranch = "-" } ) ;
43
+ dataGrid . Items . Add ( new Project { Title = "asdf asd" + i * 3 , Version = "2" , Path = "C:/" , Modified = DateTime . Now , Arguments = "" , GITBranch = "-" } ) ;
35
44
dataGrid . Items . Add ( new Project { Title = "kuykkyu" , Version = "23.23.23" , Path = "8,1" , Modified = DateTime . Now , Arguments = "" , GITBranch = "-" } ) ;
36
45
}
37
46
0 commit comments