- add stars rating control...
73c4844f
Dimitar Tsenev
committed
17 changed files
generic.xaml
/BExplorer/BetterExplorer/themes/generic.xaml+108
/BExplorer/BetterExplorer/themes/generic.xaml
Add comment 4 xmlns:local="clr-namespace:BetterExplorer"
Add comment 5 xmlns:odc="clr-namespace:Odyssey.Controls;assembly=Odyssey"
Add comment 6 xmlns:Microsoft_Windows_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero"
Add comment 7 Plus   xmlns:controls="clr-namespace:CustomControls;assembly=StarRatingControl"
Add comment 7 8 >
Add comment 8 9 <SolidColorBrush x:Key="NotTabItemNormalBackground" Color="#FFF5F5F5"/>
Add comment 9 10 <ControlTemplate x:Key="HorizontalScrollBarTemplate" TargetType="{x:Type ScrollBar}">
Add comment 890 891 </Setter>
Add comment 891 892 </Style>
Add comment 892 893
Add comment 894 Plus   <Style TargetType="{x:Type controls:Rating}">
Add comment 895 Plus   <Setter Property="ItemsPanel">
Add comment 896 Plus   <Setter.Value>
Add comment 897 Plus   <ItemsPanelTemplate>
Add comment 898 Plus   <StackPanel Orientation="Horizontal" />
Add comment 899 Plus   </ItemsPanelTemplate>
Add comment 900 Plus   </Setter.Value>
Add comment 901 Plus   </Setter>
Add comment 902 Plus   <Setter Property="Template">
Add comment 903 Plus   <Setter.Value>
Add comment 904 Plus   <ControlTemplate TargetType="{x:Type controls:Rating}">
Add comment 905 Plus   <Grid Background="Transparent">
Add comment 906 Plus   <ItemsPresenter />
Add comment 907 Plus   </Grid>
Add comment 908 Plus   </ControlTemplate>
Add comment 909 Plus   </Setter.Value>
Add comment 910 Plus   </Setter>
Add comment 911 Plus   </Style>
Add comment 912 Plus  
Add comment 913 Plus   <!--RatingItem style-->
Add comment 914 Plus   <Style TargetType="{x:Type controls:RatingItem}">
Add comment 915 Plus   <Setter Property="Template">
Add comment 916 Plus   <Setter.Value>
Add comment 917 Plus   <ControlTemplate TargetType="{x:Type controls:RatingItem}">
Add comment 918 Plus   <Grid Name="backgroundGrid">
Add comment 919 Plus   <Path x:Name="ratingPathBackGround"
Add comment 920 Plus   Data="F1M1296.83,526.473L1306.72,546.509 1328.83,549.723 1312.83,565.319 1316.61,587.34 1296.83,576.943 1277.06,587.34 1280.83,565.319 1264.83,549.723 1286.94,546.509 1296.83,526.473z"
Add comment 921 Plus   Stretch="Uniform"
Add comment 922 Plus   Fill="{Binding RatingItemBackground,RelativeSource={RelativeSource AncestorType=controls:Rating}}"
Add comment 923 Plus   RenderTransform="{Binding Path=RenderTransform, ElementName=PART_RatingPath}"
Add comment 924 Plus   RenderTransformOrigin="0.5,0.5">
Add comment 925 Plus   </Path>
Add comment 926 Plus   <Path x:Name="PART_RatingPath"
Add comment 927 Plus   Data="F1M1296.83,526.473L1306.72,546.509 1328.83,549.723 1312.83,565.319 1316.61,587.34 1296.83,576.943 1277.06,587.34 1280.83,565.319 1264.83,549.723 1286.94,546.509 1296.83,526.473z"
Add comment 928 Plus   Stretch="Uniform"
Add comment 929 Plus   RenderTransformOrigin="0.5,0.5">
Add comment 930 Plus   <Path.ToolTip>
Add comment 931 Plus   <ToolTip Content="{Binding}" />
Add comment 932 Plus   </Path.ToolTip>
Add comment 933 Plus   <Path.RenderTransform>
Add comment 934 Plus   <TransformGroup>
Add comment 935 Plus   <TransformGroup.Children>
Add comment 936 Plus   <RotateTransform Angle="0" />
Add comment 937 Plus   <ScaleTransform x:Name="PathScaleTransform"
Add comment 938 Plus   ScaleX="1"
Add comment 939 Plus   ScaleY="1" />
Add comment 940 Plus   </TransformGroup.Children>
Add comment 941 Plus   </TransformGroup>
Add comment 942 Plus   </Path.RenderTransform>
Add comment 943 Plus   </Path>
Add comment 944 Plus   </Grid>
Add comment 945 Plus   <ControlTemplate.Triggers>
Add comment 946 Plus   <Trigger Property="State"
Add comment 947 Plus   Value="Active">
Add comment 948 Plus   <Setter Property="Path.Fill"
Add comment 949 Plus   TargetName="PART_RatingPath"
Add comment 950 Plus   Value="{Binding RatingItemHighlightColor, RelativeSource={RelativeSource AncestorType=controls:Rating}}" />
Add comment 951 Plus   </Trigger>
Add comment 952 Plus   <Trigger Property="State"
Add comment 953 Plus   Value="NotActive">
Add comment 954 Plus   <Setter Property="Path.Fill"
Add comment 955 Plus   TargetName="PART_RatingPath"
Add comment 956 Plus   Value="{Binding RatingItemBackground, RelativeSource={RelativeSource AncestorType=controls:Rating}}" />
Add comment 957 Plus   </Trigger>
Add comment 958 Plus   <Trigger Property="State"
Add comment 959 Plus   Value="Pressed">
Add comment 960 Plus   <Setter Property="Path.Fill"
Add comment 961 Plus   TargetName="PART_RatingPath"
Add comment 962 Plus   Value="{Binding RatingItemMouseDownColor, RelativeSource={RelativeSource AncestorType=controls:Rating}}" />
Add comment 963 Plus   </Trigger>
Add comment 964 Plus   <Trigger Property="IsMouseOver"
Add comment 965 Plus   Value="True">
Add comment 966 Plus   <Trigger.EnterActions>
Add comment 967 Plus   <BeginStoryboard>
Add comment 968 Plus   <Storyboard>
Add comment 969 Plus   <DoubleAnimation Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[1].(ScaleTransform.ScaleX)"
Add comment 970 Plus   Storyboard.TargetName="PART_RatingPath"
Add comment 971 Plus   To="1.2"
Add comment 972 Plus   Duration="0:0:0.3" />
Add comment 973 Plus   <DoubleAnimation Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[1].(ScaleTransform.ScaleY)"
Add comment 974 Plus   Storyboard.TargetName="PART_RatingPath"
Add comment 975 Plus   To="1.2"
Add comment 976 Plus   Duration="0:0:0.3" />
Add comment 977 Plus   </Storyboard>
Add comment 978 Plus   </BeginStoryboard>
Add comment 979 Plus   </Trigger.EnterActions>
Add comment 980 Plus   <Trigger.ExitActions>
Add comment 981 Plus   <BeginStoryboard>
Add comment 982 Plus   <Storyboard>
Add comment 983 Plus   <DoubleAnimation Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[1].(ScaleTransform.ScaleX)"
Add comment 984 Plus   Storyboard.TargetName="PART_RatingPath"
Add comment 985 Plus   To="1"
Add comment 986 Plus   Duration="0:0:0.3" />
Add comment 987 Plus   <DoubleAnimation Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[1].(ScaleTransform.ScaleY)"
Add comment 988 Plus   Storyboard.TargetName="PART_RatingPath"
Add comment 989 Plus   To="1"
Add comment 990 Plus   Duration="0:0:0.3" />
Add comment 991 Plus   </Storyboard>
Add comment 992 Plus   </BeginStoryboard>
Add comment 993 Plus   </Trigger.ExitActions>
Add comment 994 Plus   </Trigger>
Add comment 995 Plus   </ControlTemplate.Triggers>
Add comment 996 Plus   </ControlTemplate>
Add comment 997 Plus   </Setter.Value>
Add comment 998 Plus   </Setter>
Add comment 999 Plus   </Style>
Add comment 1000 Plus  
Add comment 893 1001 </ResourceDictionary>
Add comment 894 1002
BetterExplorer.csproj
/BExplorer/BetterExplorer/BetterExplorer.csproj-1+5
/BExplorer/BetterExplorer/BetterExplorer.csproj
Add comment 679 <Project>{7ac63864-7638-41c4-969c-d3197ef2bed9}</Project>
Add comment 680 <Name>NotifyIconWpf</Name>
Add comment 681 </ProjectReference>
Add comment 682 Plus   <ProjectReference Include="..\..\Rating control\CustomControls\StarRatingControl.csproj">
Add comment 683 Plus   <Project>{2f36cce1-9d03-4518-9bfd-82e36ea1a64e}</Project>
Add comment 684 Plus   <Name>StarRatingControl</Name>
Add comment 685 Plus   </ProjectReference>
Add comment 682 686 <ProjectReference Include="..\..\SevenZip\SevenZip2010.csproj">
Add comment 683 687 <Project>{4960DD14-3431-47EC-B9D9-9D2730A98DC3}</Project>
Add comment 684 688 <Name>SevenZip2010</Name>
Add comment 1159 1163 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
Add comment 1160 1164 <ProjectExtensions>
Add comment 1161 1165 <VisualStudio>
Add comment 1162 Minus   <UserProperties BuildVersion_BuildVersioningStyle="None.None.None.Increment" BuildVersion_UpdateAssemblyVersion="True" BuildVersion_UpdateFileVersion="True" BuildVersion_UseGlobalSettings="True" />
Add comment 1166 Plus   <UserProperties BuildVersion_UseGlobalSettings="True" BuildVersion_UpdateFileVersion="True" BuildVersion_UpdateAssemblyVersion="True" BuildVersion_BuildVersioningStyle="None.None.None.Increment" />
Add comment 1163 1167 </VisualStudio>
Add comment 1164 1168 </ProjectExtensions>
Add comment 1165 1169 <Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />
AssemblyInfo.cs
/Rating control/CustomControls/Properties/AssemblyInfo.cs+56
/Rating control/CustomControls/Properties/AssemblyInfo.cs
Add comment 1 Plus  using System.Reflection;
Add comment 2 Plus  using System.Resources;
Add comment 3 Plus  using System.Runtime.CompilerServices;
Add comment 4 Plus  using System.Runtime.InteropServices;
Add comment 5 Plus  using System.Windows;
Add comment 6 Plus  
Add comment 7 Plus  // General Information about an assembly is controlled through the following
Add comment 8 Plus  // set of attributes. Change these attribute values to modify the information
Add comment 9 Plus  // associated with an assembly.
Add comment 10 Plus  [assembly: AssemblyTitle("CustomControls")]
Add comment 11 Plus  [assembly: AssemblyDescription("")]
Add comment 12 Plus  [assembly: AssemblyConfiguration("")]
Add comment 13 Plus  [assembly: AssemblyCompany("")]
Add comment 14 Plus  [assembly: AssemblyProduct("CustomControls")]
Add comment 15 Plus  [assembly: AssemblyCopyright("Copyright © 2014")]
Add comment 16 Plus  [assembly: AssemblyTrademark("")]
Add comment 17 Plus  [assembly: AssemblyCulture("")]
Add comment 18 Plus  
Add comment 19 Plus  // Setting ComVisible to false makes the types in this assembly not visible
Add comment 20 Plus  // to COM components. If you need to access a type in this assembly from
Add comment 21 Plus  // COM, set the ComVisible attribute to true on that type.
Add comment 22 Plus  [assembly: ComVisible(false)]
Add comment 23 Plus  
Add comment 24 Plus  //In order to begin building localizable applications, set
Add comment 25 Plus  //<UICulture>CultureYouAreCodingWith</UICulture> in your .csproj file
Add comment 26 Plus  //inside a <PropertyGroup>. For example, if you are using US english
Add comment 27 Plus  //in your source files, set the <UICulture> to en-US. Then uncomment
Add comment 28 Plus  //the NeutralResourceLanguage attribute below. Update the "en-US" in
Add comment 29 Plus  //the line below to match the UICulture setting in the project file.
Add comment 30 Plus  
Add comment 31 Plus  //[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
Add comment 32 Plus  
Add comment 33 Plus  
Add comment 34 Plus  [assembly:ThemeInfo(
Add comment 35 Plus   ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
Add comment 36 Plus   //(used if a resource is not found in the page,
Add comment 37 Plus   // or application resource dictionaries)
Add comment 38 Plus   ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
Add comment 39 Plus   //(used if a resource is not found in the page,
Add comment 40 Plus   // app, or any theme specific resource dictionaries)
Add comment 41 Plus  )]
Add comment 42 Plus  
Add comment 43 Plus  
Add comment 44 Plus  // Version information for an assembly consists of the following four values:
Add comment 45 Plus  //
Add comment 46 Plus  // Major Version
Add comment 47 Plus  // Minor Version
Add comment 48 Plus  // Build Number
Add comment 49 Plus  // Revision
Add comment 50 Plus  //
Add comment 51 Plus  // You can specify all the values or you can default the Build and Revision Numbers
Add comment 52 Plus  // by using the '*' as shown below:
Add comment 53 Plus  // [assembly: AssemblyVersion("1.0.*")]
Add comment 54 Plus  [assembly: AssemblyVersion("1.0.0.0")]
Add comment 55 Plus  [assembly: AssemblyFileVersion("1.0.0.0")]
Add comment 56 Plus  
Resources.Designer.cs
/Rating control/CustomControls/Properties/Resources.Designer.cs
/Rating control/CustomControls/Properties/Resources.Designer.cs
Resources.resx
/Rating control/CustomControls/Properties/Resources.resx
/Rating control/CustomControls/Properties/Resources.resx
Settings.Designer.cs
/Rating control/CustomControls/Properties/Settings.Designer.cs
/Rating control/CustomControls/Properties/Settings.Designer.cs
Settings.settings
/Rating control/CustomControls/Properties/Settings.settings
/Rating control/CustomControls/Properties/Settings.settings
Rating.cs
/Rating control/CustomControls/RatingStar/Implementation/Rating.cs
/Rating control/CustomControls/RatingStar/Implementation/Rating.cs
RatingItem.cs
/Rating control/CustomControls/RatingStar/Implementation/RatingItem.cs
/Rating control/CustomControls/RatingStar/Implementation/RatingItem.cs
RatingItemStateEnum.cs
/Rating control/CustomControls/RatingStar/Implementation/RatingItemStateEnum.cs
/Rating control/CustomControls/RatingStar/Implementation/RatingItemStateEnum.cs
Generic.xaml
/Rating control/CustomControls/Themes/Generic.xaml
/Rating control/CustomControls/Themes/Generic.xaml
StarRatingControl.csproj
/Rating control/CustomControls/StarRatingControl.csproj
/Rating control/CustomControls/StarRatingControl.csproj
Defaults.cs
/Shell/Defaults.cs
/Shell/Defaults.cs
Shell.csproj
/Shell/Shell.csproj
/Shell/Shell.csproj
ToolTip.xaml
/Shell/ToolTip.xaml
/Shell/ToolTip.xaml
ToolTip.xaml.cs
/Shell/ToolTip.xaml.cs
/Shell/ToolTip.xaml.cs
BExplorer.sln
/BExplorer.sln
/BExplorer.sln