using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
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 RainmeterStudio.Rainmeter;
namespace RainmeterStudio.Editor.SkinDesigner.Controls
{
///
/// Interaction logic for MeterControl.xaml
///
public partial class MeterControl : UserControl
{
private Skin _skin;
///
/// Gets or sets the skin being edited
///
public Skin Skin
{
get
{
return Skin;
}
set
{
_skin = value;
Reset();
}
}
///
/// Gets an enumerable with the meter items
///
public IEnumerable Items { get { return Skin.Meters; } }
///
/// Gets a collection with the currently selected items
///
public ObservableCollection SelectedItems { get; private set; }
///
/// Gets or sets the currently selected item
///
public Meter SelectedItem { get; set; }
///
/// Gets or sets the selected item index
///
public int SelectedIndex { get; set; }
///
/// Initializes the meter control
///
public MeterControl()
{
InitializeComponent();
Loaded += MeterControl_Loaded;
}
void MeterControl_Loaded(object sender, RoutedEventArgs e)
{
//AdornerLayer.GetAdornerLayer(ellipse).Add(new SelectAdorner(ellipse));
}
private void Reset()
{
}
}
}