# HG changeset patch # User Matthieu Totet # Date 1258983998 -3600 # Node ID 2482ddb44cb68dd5fdfa8da11e3293256e59af1d # Parent de7ba61f66c7b3adeb9c245c7b44fc142b813a2a ClickMenuItem modification : path rotation & image display diff -r de7ba61f66c7 -r 2482ddb44cb6 client/src/Iri.Modernisation.Controls/View/ClickMenu/ClickMenu.xaml --- a/client/src/Iri.Modernisation.Controls/View/ClickMenu/ClickMenu.xaml Mon Nov 23 10:17:33 2009 +0100 +++ b/client/src/Iri.Modernisation.Controls/View/ClickMenu/ClickMenu.xaml Mon Nov 23 14:46:38 2009 +0100 @@ -16,10 +16,10 @@ - - - - + + + + \ No newline at end of file diff -r de7ba61f66c7 -r 2482ddb44cb6 client/src/Iri.Modernisation.Controls/View/ClickMenu/ClickMenuItem.xaml --- a/client/src/Iri.Modernisation.Controls/View/ClickMenu/ClickMenuItem.xaml Mon Nov 23 10:17:33 2009 +0100 +++ b/client/src/Iri.Modernisation.Controls/View/ClickMenu/ClickMenuItem.xaml Mon Nov 23 14:46:38 2009 +0100 @@ -1,48 +1,25 @@ - - - - - - - - - - - - - - - - + x:Class="Iri.Modernisation.Controls.View.ClickMenuItem" MouseEnter="MouseEnter" MouseLeftButtonUp="UserControl_MouseLeftButtonUp" Background="Transparent" RenderTransformOrigin="0.5,0.5"> - - - - - - - - - \ No newline at end of file + + + + + + + + + + + + + + + + \ No newline at end of file diff -r de7ba61f66c7 -r 2482ddb44cb6 client/src/Iri.Modernisation.Controls/View/ClickMenu/ClickMenuItem.xaml.cs --- 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; } diff -r de7ba61f66c7 -r 2482ddb44cb6 client/src/Iri.Modernisation.Controls/View/ClickMenu/ClickMenuPanelAnnoter.xaml --- a/client/src/Iri.Modernisation.Controls/View/ClickMenu/ClickMenuPanelAnnoter.xaml Mon Nov 23 10:17:33 2009 +0100 +++ b/client/src/Iri.Modernisation.Controls/View/ClickMenu/ClickMenuPanelAnnoter.xaml Mon Nov 23 14:46:38 2009 +0100 @@ -12,33 +12,12 @@ - + + + - - - - - - - - - - - - - - - - - - - - - - - - - + + \ No newline at end of file diff -r de7ba61f66c7 -r 2482ddb44cb6 client/src/Iri.Modernisation.Controls/View/ClickMenu/ClickMenuPanelContextualiser.xaml --- a/client/src/Iri.Modernisation.Controls/View/ClickMenu/ClickMenuPanelContextualiser.xaml Mon Nov 23 10:17:33 2009 +0100 +++ b/client/src/Iri.Modernisation.Controls/View/ClickMenu/ClickMenuPanelContextualiser.xaml Mon Nov 23 14:46:38 2009 +0100 @@ -8,48 +8,15 @@ x:Class="Iri.Modernisation.Controls.View.ClickMenuPanelContextualiser" Height="56" Width="80"> - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + \ No newline at end of file diff -r de7ba61f66c7 -r 2482ddb44cb6 client/src/Iri.Modernisation.Styles/Iri.Modernisation.Styles.csproj --- a/client/src/Iri.Modernisation.Styles/Iri.Modernisation.Styles.csproj Mon Nov 23 10:17:33 2009 +0100 +++ b/client/src/Iri.Modernisation.Styles/Iri.Modernisation.Styles.csproj Mon Nov 23 14:46:38 2009 +0100 @@ -14,6 +14,7 @@ false true true + 3.0.1927.0 true