in

C1 Community

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

How to change EditAppointmentDialog title

Last post 05-30-2008 4:25 PM by C1_IrinaP. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 05-30-2008 1:36 PM

    How to change EditAppointmentDialog title

    EditAppointmentDialog could be modified, but I could not find a way to change the window title. By default the title is "Appointment", sometimes it is "Event". I would use the scheduler to schedule tasks not appointments, so I would like to change the title accordingly. 

    Filed under:
  • 05-30-2008 4:25 PM In reply to

    Re: How to change EditAppointmentDialog title

    Window Title is determined by the next construction in default EditAppointmentTemplate: 

       <c1sched:PropertyBridge Target="{Binding Title,
          RelativeSource={RelativeSource AncestorType={x:Type c1sched:DialogContentControl}},
          Mode=OneWayToSource}">
        <c1sched:PropertyBridge.Source>
         <MultiBinding Mode="OneWay"
           Converter="{x:Static c1sched:AppointmentToStringMultiConverter.Default}">
          <Binding Path="Subject" />
          <Binding Path="AllDayEvent" />
         </MultiBinding>
        </c1sched:PropertyBridge.Source>
       </c1sched:PropertyBridge>

    the AppointmentToStringMultiConverter composes the window title from appointment Subject and AllDayEvent properties. To change this behavior, replace PropertyBridge.Source by your content. For example:

       <c1sched:PropertyBridge Target="{Binding Title,
          RelativeSource={RelativeSource AncestorType={x:Type c1sched:DialogContentControl}},
          Mode=OneWayToSource}">
        <c1sched:PropertyBridge.Source>
          <Binding Path="Subject" />
        </c1sched:PropertyBridge.Source>
       </c1sched:PropertyBridge>

     


     

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