Exchange the star with custom symbol?
Hi,
is it possible to exchange the star symbol in SfRating control with a custom symbol, for example a circle?
Best regards
Marcus
SIGN IN To post a reply.
5 Replies
SM
Sugapriya Mariappan
Syncfusion Team
August 27, 2015 04:09 AM UTC
Hi Marcus,
Thank you for contacting Syncfusion support
We have prepared a sample which tries to meet your requirement. In the sample we have changed the Data for the Path by editing the style of the SfRatingItem
Please download the sample from the below link
Sample link:SfRatingSample_(2)
Please let us know if you have any concern
Regards,
M.Sugapriya
Thank you for contacting Syncfusion support
We have prepared a sample which tries to meet your requirement. In the sample we have changed the Data for the Path by editing the style of the SfRatingItem
Please download the sample from the below link
Sample link:SfRatingSample_(2)
Please let us know if you have any concern
Regards,
M.Sugapriya
MK
Marcus Köny
September 2, 2015 07:21 PM UTC
Hi,
thank you for the quick response. I am much later now...
I had to port the sample to "Desktop WPF" and I now get a Nullpointer Exception when leaving with the mouse. (Stack trace at the end of thsi reply).
The modifications I made are attached as file.( Second part)
I am shure something ist still wrong with the handler. I made some experiment, but could not find it out.
Best regards
Marcus
The stack trace is the following:
bei Syncfusion.Windows.Controls.Input.SfRating.UpdateVisualStates()
bei Syncfusion.Windows.Controls.Input.SfRating.OnMouseLeftButtonUp(MouseButtonEventArgs e)
bei System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)
bei System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
bei System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
bei System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
bei System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
bei System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
bei System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
bei System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
bei System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
bei System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
bei System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
bei System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
bei System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
bei System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
bei System.Windows.Input.InputManager.ProcessStagingArea()
bei System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
bei System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
bei System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
bei System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
bei System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
bei MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
bei MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
bei MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
bei System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
bei MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
bei MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
bei System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
bei System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
bei System.Windows.Threading.Dispatcher.Run()
bei System.Windows.Application.RunDispatcher(Object ignore)
bei System.Windows.Application.RunInternal(Window window)
bei System.Windows.Application.Run(Window window)
bei System.Windows.Application.Run()
bei IlaraSchmerz.App.Main() in d:\Ilara\Ilara2\Software\Ilara2\Ilara2\IlaraSchmerz\obj\Debug\App.g.cs:Zeile 0.
bei System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
bei System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
bei Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
bei System.Threading.ThreadHelper.ThreadStart_Context(Object state)
bei System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
bei System.Threading.ThreadHelper.ThreadStart()
Attachment: WPFControls_d239034e.zip
thank you for the quick response. I am much later now...
I had to port the sample to "Desktop WPF" and I now get a Nullpointer Exception when leaving with the mouse. (Stack trace at the end of thsi reply).
The modifications I made are attached as file.( Second part)
I am shure something ist still wrong with the handler. I made some experiment, but could not find it out.
Best regards
Marcus
The stack trace is the following:
bei Syncfusion.Windows.Controls.Input.SfRating.UpdateVisualStates()
bei Syncfusion.Windows.Controls.Input.SfRating.OnMouseLeftButtonUp(MouseButtonEventArgs e)
bei System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)
bei System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
bei System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
bei System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
bei System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
bei System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
bei System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
bei System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
bei System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
bei System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
bei System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
bei System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
bei System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
bei System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
bei System.Windows.Input.InputManager.ProcessStagingArea()
bei System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
bei System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
bei System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
bei System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
bei System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
bei MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
bei MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
bei MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
bei System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
bei MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
bei MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
bei System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
bei System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
bei System.Windows.Threading.Dispatcher.Run()
bei System.Windows.Application.RunDispatcher(Object ignore)
bei System.Windows.Application.RunInternal(Window window)
bei System.Windows.Application.Run(Window window)
bei System.Windows.Application.Run()
bei IlaraSchmerz.App.Main() in d:\Ilara\Ilara2\Software\Ilara2\Ilara2\IlaraSchmerz\obj\Debug\App.g.cs:Zeile 0.
bei System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
bei System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
bei Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
bei System.Threading.ThreadHelper.ThreadStart_Context(Object state)
bei System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
bei System.Threading.ThreadHelper.ThreadStart()
Attachment: WPFControls_d239034e.zip
SM
Sugapriya Mariappan
Syncfusion Team
September 3, 2015 12:06 PM UTC
Hi Marcus,
Sorry for the inconvenience caused.
On analyzing your source code which you have sent in the last update, we found that the LinearClipper is removed from the template of the SfRatingItem.We have processed the LinearClipper in the Source code, so you have faced this NullException. You can avoid this exception by adding the LinearClipper in the SfRatingItem Template.
We have modified the sample and you can download the same from the below link
Sample link : SfRatingWPFSample
Please try our solution and also let us know if you need a patch for this fix? So that we would provide assistance according to your reply.
Please let us know if you have any other concern,
Regards,
M.Sugapriya
Sorry for the inconvenience caused.
On analyzing your source code which you have sent in the last update, we found that the LinearClipper is removed from the template of the SfRatingItem.We have processed the LinearClipper in the Source code, so you have faced this NullException. You can avoid this exception by adding the LinearClipper in the SfRatingItem Template.
We have modified the sample and you can download the same from the below link
Sample link : SfRatingWPFSample
Please try our solution and also let us know if you need a patch for this fix? So that we would provide assistance according to your reply.
Please let us know if you have any other concern,
Regards,
M.Sugapriya
MK
Marcus Köny
September 4, 2015 07:16 PM UTC
Hi,
thank you for your great support!
It's working perfectly!
Best regards
Marcus Köny
thank you for your great support!
It's working perfectly!
Best regards
Marcus Köny
SM
Sugapriya Mariappan
Syncfusion Team
September 7, 2015 04:00 AM UTC
Hi Marcus,
Thank you for your update.
Please let us know if you need any other assistance
Regards,
M.Sugapriya
Thank you for your update.
Please let us know if you need any other assistance
Regards,
M.Sugapriya
SIGN IN To post a reply.
- 5 Replies
- 2 Participants
-
MK Marcus Köny
- Aug 26, 2015 12:29 PM UTC
- Sep 7, 2015 04:00 AM UTC