Selection style

7 posts, 0 answers
  1. Christie Admin
    Christie Admin avatar
    239 posts
    Member since:
    Aug 2013

    Posted 20 Apr 2015 Link to this post

    Hi,

     I'm using the lastest version of Telerik and I also use the Office2013 theme. Actually, I create a custom UserControl which contain a RadScheduleView and I have some properties for different purpose. With the Office2013 theme, the highlighted items are not clearly visible on a laptop that's why I would like to know if it's possible to have a border of different color?!? At the same time, I would like to offer a property like "BorderSelectionColor".

     I would like to cover the following situation:

         - During a drag and drop operation, I would like to highligh + change the border color of the targeted appointments or slots cover by the source appointments

         - I actually implemented a keyboard navigation pattern, the user can use the arrow keys to navigate through the slots or the appointements so I would like to highlight + change the border color of the slot or the appoinment where I am. The navigation mechanisim was already implemented but the highlight mechanisim not.

     

    Thank's

    Alain

  2. Kalin
    Admin
    Kalin avatar
    1209 posts

    Posted 23 Apr 2015 Link to this post

    Hi Alain,

    If you need to modify the color of the selected Appointment/s you can use the approaches explained in this forum. However as I not sure if I understand you correctly - I will ask you to share an image demonstrating the exact case and the needed result.

    I'm looking forward to hearing from you.

    Regards,
    Kalin
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
  3. UI for WPF is Visual Studio 2017 Ready
  4. Christie Admin
    Christie Admin avatar
    239 posts
    Member since:
    Aug 2013

    Posted 23 Apr 2015 in reply to Kalin Link to this post

    Hi Kalin,

     screenshot was attached...

    Alain

  5. Christie Admin
    Christie Admin avatar
    239 posts
    Member since:
    Aug 2013

    Posted 24 Apr 2015 Link to this post

    Hi Kalin,

     2 others screenshot...

     

    Alain

  6. Masha
    Admin
    Masha avatar
    355 posts

    Posted 27 Apr 2015 Link to this post

    Hello Alain,

    In order to modify the mouse over  state of Appointment Item you need to modify both control templates ( AppointmentItemHorizontalControlTemplate and AppointmentItemVerticalControlTemplate) of AppointmentItemBase style. You should do this trough AppointmentStyleSelector property of RadScheduleView.

    Regarding the question to change the background during a drag and drop operation or resize one you need to modify DragDropHighlightStyle or ResizeHighlightStyle.

    I've prepared a sample project where the above approach is demonstrated.

    I hope it helps.

    Regards,
    Masha
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
  7. Christie Admin
    Christie Admin avatar
    239 posts
    Member since:
    Aug 2013

    Posted 27 Apr 2015 in reply to Masha Link to this post

    Hi Masha,

     Thank's for your demo, I appreciate and it was verry usefull :)

     One other thing is, when I drag one or more appointments over, if the dragged appointments is over an appointment or a specialslot during the drag'n drop operation, I would like to change the border color of the overlapped appointments/specialslots...

    Thank's

    Alain

  8. Masha
    Admin
    Masha avatar
    355 posts

    Posted 28 Apr 2015 Link to this post

    Hello Alain,

    I'm afraid this scenario is not supported in the current version of RadScheduleView.
    DragVisula style of the appointment has opacity and this color opacity  is the only color difference when appointments are overlapping by dragged area. You can play with colors and opacity of the DragDropHighlightStyle  to achieve the desired results.

    Let me know if you have any further questions.

    Regards,
    Masha
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
Back to Top
UI for WPF is Visual Studio 2017 Ready