using System; using System.Collections.Generic; 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; namespace ZitiDesktopEdge { /// /// Interaction logic for MenuItem.xaml /// public partial class MenuItem : UserControl { private string _label = ""; private string _icon = ""; public string Label { get { return _label; } set { this._label = value; MainLabel.Content = this._label; } } public string Icon { get { return _icon; } set { this._icon = value; MainSource.Source = new BitmapImage(new Uri(this._icon, UriKind.Relative)); } } public MenuItem() { InitializeComponent(); } private void UserControl_MouseEnter(object sender, MouseEventArgs e) { } private void UserControl_MouseLeave(object sender, MouseEventArgs e) { } } }