--- a/client/src/Iri.Modernisation.Controls/View/ClickMenu/ClickMenuItem.xaml.cs Mon Nov 23 10:17:33 2009 +0100
+++ b/client/src/Iri.Modernisation.Controls/View/ClickMenu/ClickMenuItem.xaml.cs Mon Nov 23 14:46:38 2009 +0100
@@ -10,15 +10,30 @@
namespace Iri.Modernisation.Controls.View
{
- public partial class ClickMenuItem : ContentControl
-
+ public enum ClickMenuItemOrientation { Up = 90, Down = 126 }
+ public partial class ClickMenuItem : UserControl
{
- /*
+
public ImageSource ImageSource {
get { return imgItem.Source; }
set { imgItem.Source = value; }
}
- */
+
+ public ClickMenuItemOrientation Orientation
+ {
+ get { return (ClickMenuItemOrientation)GetValue(OrientationProperty); }
+ set {
+ SetValue(OrientationProperty, value);
+ path78339.RenderTransform = new RotateTransform() {Angle=(double)value };
+ }
+ }
+
+ // Using a DependencyProperty as the backing store for Orientation. This enables animation, styling, binding, etc...
+ public static readonly DependencyProperty OrientationProperty =
+ DependencyProperty.Register("Orientation", typeof(ClickMenuItemOrientation), typeof(ClickMenuItem), new PropertyMetadata(ClickMenuItemOrientation.Up));
+
+
+
public String Title { get; set; }