Files
desktop-edge-win/DesktopEdge/MenuItem.xaml.cs
T
2020-07-08 14:27:22 -04:00

57 lines
1.1 KiB
C#

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 {
/// <summary>
/// Interaction logic for MenuItem.xaml
/// </summary>
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) {
}
}
}