Eabei.UI/Music/LocalMusic.xaml.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using Eabei.Events;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using static Eabei.Events.EventsBus;
namespace Eabei.UI.Music
{
/// <summary>
/// LocalMusic.xaml 的交互逻辑
/// </summary>
public partial class LocalMusic : UserControl, System.ComponentModel.INotifyPropertyChanged
{
public LocalMusic()
{
EventsBus.Instance.Subscribe<Model.Events.LocalMusicCountEvent>(LocalMusic_FuncCallback);
InitializeComponent();
this.DataContext = this;
}
private string _localMusicText = "本地歌曲(0)";
public string LocalMusicText
{
get => _localMusicText;
set
{
_localMusicText = value;
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("LocalMusicText"));
}
}
public bool IsClickLocalMusic
{
get
{
return (bool)GetValue(IsClickLocalMusicProperty);
}
set
{
SetValue(IsClickLocalMusicProperty, value);
}
}
public static readonly DependencyProperty IsClickLocalMusicProperty = DependencyProperty.RegisterAttached("IsClickLocalMusic", typeof(bool), typeof(LocalMusic), new PropertyMetadata(false));
public event PropertyChangedEventHandler PropertyChanged;
后面还有 7 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
