--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/client/src/Iri.Modernisation.Controls/View/ClickMenu/ClickMenuItem.xaml.cs Wed Nov 18 15:30:31 2009 +0100
@@ -0,0 +1,72 @@
+using System;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Documents;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Shapes;
+
+namespace Iri.Modernisation.Controls.View
+{
+ public partial class ClickMenuItem : ContentControl
+
+ {
+ /*
+ public ImageSource ImageSource {
+ get { return imgItem.Source; }
+ set { imgItem.Source = value; }
+ }
+ */
+
+
+ public String Title { get; set; }
+
+ public event EventHandler<ClickMenuItemHooverEventArgs> ClickMenuItemHooverSelected;
+ public event EventHandler<ClickMenuItemSelectedEventArgs> ClickMenuItemSelected;
+ public ClickMenuItem()
+ {
+ // Required to initialize variables
+ InitializeComponent();
+ }
+
+ private void MouseEnter(object sender, System.Windows.Input.MouseEventArgs e)
+ {
+ OnEnter();
+
+ }
+
+ private void OnEnter()
+ {
+ if (ClickMenuItemHooverSelected != null)
+ {
+ this.ClickMenuItemHooverSelected(this, new ClickMenuItemHooverEventArgs());
+ }
+ }
+
+
+
+ private void UserControl_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
+ {
+ if (ClickMenuItemSelected != null)
+ {
+ this.ClickMenuItemSelected(this, new ClickMenuItemSelectedEventArgs());
+ }
+ }
+
+ }
+ public class ClickMenuItemSelectedEventArgs : EventArgs
+ {
+ }
+ public class ClickMenuItemHooverEventArgs : EventArgs
+ {
+
+ public ClickMenuItemHooverEventArgs()
+ {
+
+ }
+
+
+ }
+}
\ No newline at end of file