in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

Scrollbar in Month view of Schedule control and theme for C1DateTimePicker

Last post 06-18-2008 5:07 AM by duydoan. 6 replies.
Page 1 of 1 (7 items)
Sort Posts: Previous Next
  • 06-16-2008 2:01 PM

    Scrollbar in Month view of Schedule control and theme for C1DateTimePicker

    C1DateTimePicker: there's no theme key to set like the others, have to customize.

    C1Schedule: in MonthView, VerticalScrollBar doesn't get implicit Scrollbar template setting in application.
    I have a custom scrollbar and set as implicit style for the whole application but it doesn't affect MonthView, particularly with Office2007.Black theme, WeekView and DayView are OK.

  • 06-16-2008 3:28 PM In reply to

    Re: Scrollbar in Month view of Schedule control and theme for C1DateTimePicker

    > C1DateTimePicker: there's no theme key to set like the others, have to customize.
    C1DateTimePicker has the same base class as C1MonthCalendar and C1MultiMonthCalendar. You
    can use the same theme keys for all these controls.

    > C1Schedule: in MonthView, VerticalScrollBar doesn't get implicit Scrollbar template
    > setting in application.
    > I have a custom scrollbar and set as implicit style for the whole application but it
    > doesn't affect MonthView, particularly with Office2007.Black theme, WeekView and DayView
    > are OK.
    All default themes use C1SchedulerScrollBar in a MonthView. Set the same style for
    C1SchedulerScrollBar as for standard scrollbar.
  • 06-17-2008 1:13 AM In reply to

    Re: Scrollbar in Month view of Schedule control and theme for C1DateTimePicker

    C1Schedule scrollbar:

    Thanks Irina, but i'm not quite clear about your answer. I haven't touched any setting for scrollbars of DayView, WeekView, they're just get implicit scrollbar style as expected, but MonthView doesn't. How can i set for this for MonthView.
     

    I have Default scrollbar style for whole application named ScrollBar_BlackGFlat and set as implicit style in global scope like this 
    <Style TargetType="{x:Type ScrollBar}" BasedOn="{StaticResource ScrollBar_BlackFlat}"/>

    DayView, WeekView took this style properly without extra setting, what i'm meaning is why not MonthView. Do we have to set this for MonthView separatedly?

  • 06-17-2008 2:56 AM In reply to

    Re: Scrollbar in Month view of Schedule control and theme for C1DateTimePicker

    DayView and WeekView styles use standard ScrollBar control. But MonthView style uses C1SchedulerScrollBar control (you can see that in a source xaml).

    In WPF, when you set the default style for the control, it is not applied to inherited controls. So, in order to apply your default style to C1SchedulerScrollBar, you should set default style for C1SchedulerScrollBar explicitely. It should look something like that:

    <Style TargetType="{x:Type c1sched:C1SchedulerScrollBar}" BasedOn="{StaticResource ScrollBar_BlackFlat}"/>

     

  • 06-17-2008 4:07 AM In reply to

    Re: Scrollbar in Month view of Schedule control and theme for C1DateTimePicker

    I see. Thank you.

    BTW, do you have any idea that Gantt chart will be integrated into C1 WPF suite?

  • 06-18-2008 3:38 AM In reply to

    Re: Scrollbar in Month view of Schedule control and theme for C1DateTimePicker

     It's already possible to create Gantt chart with C1WPFChart. This is sample code.

     <my:C1Chart Margin="0" Name="c1Chart1"
                xmlns:sys="clr-namespace:System;assembly=mscorlib">
      <my:C1Chart.Resources>
        <x:Array x:Key="start" Type="sys:DateTime" >
          <sys:DateTime>2008-6-1</sys:DateTime>
          <sys:DateTime>2008-6-4</sys:DateTime>
          <sys:DateTime>2008-6-2</sys:DateTime>
        </x:Array>
        <x:Array x:Key="end" Type="sys:DateTime">
          <sys:DateTime>2008-6-10</sys:DateTime>
          <sys:DateTime>2008-6-12</sys:DateTime>
          <sys:DateTime>2008-6-15</sys:DateTime>
        </x:Array>
      </my:C1Chart.Resources>
      <my:C1Chart.Data>
        <my:ChartData>
          <my:ChartData.Renderer>
            <my:Renderer2D Inverted="True" ColorScheme="Point"/>
          </my:ChartData.Renderer>
          <my:ChartData.ItemNames>Task1 Task2 Task3</my:ChartData.ItemNames>
          <my:HighLowSeries HighValuesSource="{StaticResource end}"
                            LowValuesSource="{StaticResource start}"/>
        </my:ChartData>
      </my:C1Chart.Data>
      <my:C1Chart.View>
        <my:ChartView>
          <my:ChartView.AxisX>
            <my:Axis IsTime="True" AnnoFormat="d"/>
          </my:ChartView.AxisX>
        </my:ChartView>
      </my:C1Chart.View>
    </my:C1Chart>

  • 06-18-2008 5:07 AM In reply to

    Re: Scrollbar in Month view of Schedule control and theme for C1DateTimePicker

    Wow, i will try this. Thank you very much.

     

Page 1 of 1 (7 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.