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

Custom Appointment problem

4 Answers 178 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
PaulH
Top achievements
Rank 1
PaulH asked on 11 Apr 2011, 10:23 AM
I'm trialing the Silverlight controls in particular the RadScheduleView and it does pretty much everything we want. I have a need for a custom appointment and have been following through the documentation sample but I am hitting a problem in Blend 4 when trying to get the EditAppointmentDialogStyle. If I select to create a new resource Blend registers a "Catastrophic Failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))" and the style it drops for me is just the following:

<Style x:Key="Style1" TargetType="telerik:SchedulerDialog">
    <Setter>
        <Setter.Value>
            <SolidColorBrush Color="Black"/>
        </Setter.Value>
    </Setter>
    <Setter>
        <Setter.Value>
            <System:Double>560</System:Double>
        </Setter.Value>
    </Setter>
    <Setter>
        <Setter.Value>
            <System:UInt32>0</System:UInt32>
        </Setter.Value>
    </Setter>
    <Setter>
        <Setter.Value>
            <ControlTemplate TargetType="telerik:SchedulerDialog"/>
        </Setter.Value>
    </Setter>
    <Setter>
        <Setter.Value>
            <DataTemplate/>
        </Setter.Value>
    </Setter>
    <Setter>
        <Setter.Value>
            <DataTemplate/>
        </Setter.Value>
    </Setter>
</Style>

Clearly this is wrong. I have had this problem consistently so I created a new RadControls Silverlight Application selecting just the RadScheduleView (which selected the other items necessary from the list such as Controls, Input and Navigation. I then simply dragged a RadScheduleView onto the MainPage.xaml and selected to Create a new Resource for the EditAppointmentDialogStyle and I get exactly the same. Am I missing something???

Also, something which may possibly have a bearing on this, when I create the new RadControls Project I notice in the list of controls that the RichTextBoxUI and Documents items have a yellow exclamation against them saying that the .VisualStudio.Design assemblies can't be found. I am using the very latest release of the Silverlight controls.

Any help would be greatly appreciated. If someone could simply provide me with the default style for the EditAppointmentDialogStyle that would solve my immediate problem.

4 Answers, 1 is accepted

Sort by
0
PaulH
Top achievements
Rank 1
answered on 11 Apr 2011, 11:37 AM
I've now found that I don't need to use the custom appointments for my immediate need as I can add a resource type with a list of entities and that will give me what I need. I would still like to know why I am unable to get the custom appointment edit dialog style as per the documentation sample because I am sure I am going to need it before I complete the current project.
0
Accepted
Dani
Telerik team
answered on 14 Apr 2011, 11:31 AM
Hello Paul,

The unability to generate the EditAppointmentStyle from Expresison Blend is a known issue and at this stage it requires some more fixes on behalf of Blend.

For now, you can get the EditAppointmentDialogStyle using one of the following two methods:
  • Get EditAppointmentDialogStyle source code from installation folder  
    In the RadControls installation folder on your pc, go to Themes folder and select the theme that you use in your application. Drill down to find the ScheduleView.xaml file in that directory. From this resource dictionary you can extract the EditAppointmentDialogStyle and any needed resources that it uses.

  • Get EditAppointmentDialogStyle source code from RadScheduleView template  
    Generate first the RadScheduleView template from Expression Blend ( Edit Template > Edit a Copy). Search for the EditAppointmentDialogStyleand copy the style together with all needed resources that it uses.

    I hope you will find this useful. If you are unable to find the style or if you need any further help, please let me know.

    Greetings,

    Dani
    the Telerik team

     

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Mirko
Top achievements
Rank 1
answered on 11 Oct 2011, 08:59 PM
Hi Dani,
i have found a problem with the generation of the control template, when i have select a different theme >(in my case the Expression_Dark theme) via xaml. Now it generate a blank controltemplate.

BR
Mirko
0
Dani
Telerik team
answered on 13 Oct 2011, 04:30 PM
Hello Mirko,

You can only generate the default Office Black theme of RadScheduleView from Expression Blend. Generating other themes is currently not supported.

Can you please , share more details on the steps you take to generate the Expression Dark theme xaml resources?

Best wishes,
Dani
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Tags
ScheduleView
Asked by
PaulH
Top achievements
Rank 1
Answers by
PaulH
Top achievements
Rank 1
Dani
Telerik team
Mirko
Top achievements
Rank 1
Share this question
or