コード例 #1
0
 public Playlists(bool adding = false)
 {
     InitializeComponent();
     WindowBlur.SetIsEnabled(this, true);
     MouseDown += Window_MouseDown;
     Populate_Playlists(adding);
 }
コード例 #2
0
 public GPlaylists()
 {
     InitializeComponent();
     WindowBlur.SetIsEnabled(this, true);
     MouseDown += Window_MouseDown;
     Populate_Playlists();
 }
コード例 #3
0
ファイル: TopSongs.xaml.cs プロジェクト: novatorem/Melodify
 public TopSongs()
 {
     InitializeComponent();
     WindowBlur.SetIsEnabled(this, true);
     MouseDown += Window_MouseDown;
     Populate_Songs();
 }
コード例 #4
0
 public UserInfo()
 {
     InitializeComponent();
     WindowBlur.SetIsEnabled(this, true);
     MouseDown += Window_MouseDown;
     Populate_Intro();
     Populate_Genre();
     Populate_Artists();
 }
コード例 #5
0
ファイル: WindowBlur.cs プロジェクト: novatorem/Melodify
 private static void OnIsEnabledChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
 {
     if (d is Window window)
     {
         if (true.Equals(e.OldValue))
         {
             GetWindowBlur(window)?.Detach();
             window.ClearValue(WindowBlurProperty);
         }
         if (true.Equals(e.NewValue))
         {
             var blur = new WindowBlur();
             blur.Attach(window);
             window.SetValue(WindowBlurProperty, blur);
         }
     }
 }
コード例 #6
0
 public MainMenu()
 {
     InitializeComponent();
     WindowBlur.SetIsEnabled(this, true);
     MouseDown += Window_MouseDown;
 }
コード例 #7
0
ファイル: WindowBlur.cs プロジェクト: novatorem/Melodify
 public static void SetWindowBlur(DependencyObject element, WindowBlur value)
 {
     element.SetValue(WindowBlurProperty, value);
 }