Custom Appointment problem

5 posts, 1 answers
  1. PaulH
    PaulH avatar
    26 posts
    Member since:
    Mar 2011

    Posted 11 Apr 2011 Link to this post

    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.
  2. PaulH
    PaulH avatar
    26 posts
    Member since:
    Mar 2011

    Posted 11 Apr 2011 Link to this post

    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.
  3. DevCraft banner
  4. Answer
    Dani
    Admin
    Dani avatar
    848 posts

    Posted 14 Apr 2011 Link to this post

    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
  5. Mirko
    Mirko avatar
    2 posts
    Member since:
    Nov 2010

    Posted 11 Oct 2011 Link to this post

    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
  6. Dani
    Admin
    Dani avatar
    848 posts

    Posted 13 Oct 2011 Link to this post

    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 >>
Back to Top
DevCraft banner