This is a migrated thread and some comments may be shown as answers.

Changing Color schemes and Background images

7 Answers 84 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Rajesh
Top achievements
Rank 1
Rajesh asked on 14 Mar 2012, 06:08 AM
Are following changes possible
To change color of :  (please view the attached image)
1. View Selector which is currently black
2. Date Header which is currently grayish
3. Task color

To change background of a occurrence of a Task, like in a recurrence task if some occurrences have been completed then there background will be different than those which yet to be started/completed. Similarly for Non - recurrence tasks

If above changes are possible please provide some code to accomplish them

Thanks

7 Answers, 1 is accepted

Sort by
0
Dani
Telerik team
answered on 15 Mar 2012, 10:01 AM
Hi Rajesh,

Please, find attached a project that will help you cope with the needed customizations. Search for NOTE to check explanational notes.

1) The NavigationHeader background is easily changed by changing a single brush
2) This element is part of the TimeRuler and is rendered as a GoToDayButton. See attachment for more details.
3) What you need is to use a custom AppointmentStyleSelector. In your selector provide a separate appointment style for recurring appointments. Please, check this help article for more details on the AppointmentStyleSelector.

I hope this will be helpful.

Kind regards,
Dani
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Rajesh
Top achievements
Rank 1
answered on 16 Mar 2012, 11:58 AM
Hi, 
Thanks for your quick reply,

Problem now i am experiencing is that when i am using Expression Blend and its feature Edit a copy for RadScheduleView's Template

When that resource is applied, the Buttons on the Navigation Header have been lost

Please find the attached snapshot for details
Note : i have not yet made any changes in the Resource which i have got from Blend
0
Dani
Telerik team
answered on 20 Mar 2012, 05:36 PM
Hello Rajesh,

We were able to reproduce the issue and we will strive to provide a fix for this design-time issue as early as we can.
Although ListBoxItems are not visible, the xaml code is still availble for customization. For now,  I would suggest that you use apply changes in code. You can also use the attached resource dictionary for your customizations. It contains the latest style for the RadScheduleView control.

Let me know if you need any help using the resources.

Regards,
Dani
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Rajesh
Top achievements
Rank 1
answered on 21 Mar 2012, 06:44 AM
Hi,

I was trying to attach the given resource file in my Project, but it shows many errors when i start to build it
And i am not able to attach a Zip file to this post, so that i could have showed my sample project

I placed the given resource file in the previous project given by you, but there also i am getting same build errors

Do i have to add some files/references to build this resource file

Current Telerik ref added in project are :
"Telerik.Windows.Controls.dll" "Telerik.Windows.Controls.Input.dll" "Telerik.Windows.Controls.Navigation.dll" "Telerik.Windows.Controls.ScheduleView.dll" "Telerik.Windows.Data.dll" 

I have added the snapshot of the build errors

Note : I am using .NET 3.5 binaries
0
Dani
Telerik team
answered on 21 Mar 2012, 09:46 AM
Hi Rajesh,

You should change the local namespace.

If it points to:
xmlns:local="clr-namespace:Telerik.Windows.Controls"

you should change that to:
xmlns:local="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.ScheduleView"

I hope this will solve the issue.

Greetings,
Dani
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Rajesh
Top achievements
Rank 1
answered on 02 Apr 2012, 07:18 AM
HI,

Sorry for the late reply,

Many of the errors were fixed the fix given by you, Thanks,
But I am still getting one error, so I am still blocked

Error 1 The tag 'VisualStateManager.VisualStateGroups' does not exist in XML namespace 'http://schemas.microsoft.com/winfx/2006/xaml/presentation'. Line 980 Position 8. C:\Users\chittooril\Documents\Visual Studio 2010\Projects\RadControlsWpfApp_ScheduleView\RadControlsWpfApp_ScheduleView\ResourceDictionary.xaml 980 8 RadControlsWpfApp_ScheduleView

Above error has been copied from Visual Studio

Thanks
0
Accepted
Dani
Telerik team
answered on 03 Apr 2012, 08:20 AM
Hi Rajesh,

VisualStateGroups were introduced in version 4.0 for WPF. I guess you are using WPF3.5. If so, you can use the dictionary attached. It contains the same styling information for WPF3.5.

I hope this will be helpful.

Greetings,
Dani
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
ScheduleView
Asked by
Rajesh
Top achievements
Rank 1
Answers by
Dani
Telerik team
Rajesh
Top achievements
Rank 1
Share this question
or