33using System . Windows ;
44using System . Windows . Controls ;
55using System . Windows . Input ;
6+ using System . Windows . Shell ;
67
78namespace UnityLauncherPro
89{
@@ -22,16 +23,24 @@ public MainWindow()
2223
2324 void Start ( )
2425 {
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+
2534 // test data
2635 dataGrid . Items . Clear ( ) ;
2736 for ( int i = 0 ; i < 6 ; i ++ )
2837 {
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 = "-" } ) ;
3039 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 = "-" } ) ;
3241 dataGrid . Items . Add ( new Project { Title = "RT435y" , Version = "3333" , Path = "X:/" , Modified = DateTime . Now , Arguments = "" , GITBranch = "-" } ) ;
3342 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 = "-" } ) ;
3544 dataGrid . Items . Add ( new Project { Title = "kuykkyu" , Version = "23.23.23" , Path = "8,1" , Modified = DateTime . Now , Arguments = "" , GITBranch = "-" } ) ;
3645 }
3746
0 commit comments