From 105b0f981ebb8e0aec3eb5d631b60d582fb166a6 Mon Sep 17 00:00:00 2001 From: liufei Date: Fri, 14 May 2021 17:28:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MainWindow.xaml | 6 ++++-- MainWindow.xaml.cs | 16 ++++++++++++++++ 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/MainWindow.xaml b/MainWindow.xaml index 53760ee..a0c6e6c 100644 --- a/MainWindow.xaml +++ b/MainWindow.xaml @@ -99,10 +99,12 @@ - + - + diff --git a/MainWindow.xaml.cs b/MainWindow.xaml.cs index 55a7737..f82626d 100644 --- a/MainWindow.xaml.cs +++ b/MainWindow.xaml.cs @@ -10,6 +10,8 @@ using System.IO; using System.Windows; using System.Windows.Controls; using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Effects; using System.Windows.Media.Imaging; namespace GeekDesk @@ -27,6 +29,20 @@ namespace GeekDesk { InitializeComponent(); loadData(); + //Border border = new Border(); + //VisualBrush brush = new VisualBrush(); + //brush.Visual = test; + //brush.Stretch = Stretch.Uniform; + //border.Background = brush; + //border.Effect = new BlurEffect() + //{ + // Radius = 80, + // RenderingBias = RenderingBias.Performance + //}; + //border.Margin = new Thickness(-this.Margin.Left, -this.Margin.Top, 0, 0); + //this.ClipToBounds = true; + //this.Children.Clear(); + //this.Children.Add(border); //this.DataContext = mainModel; //menu.Items = mainModel; //System.Diagnostics.Process.Start(@"D:\SoftWare\WeGame\wegame.exe");