Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1465
How to set LogicalDayOffset in xaml
posted

Hi,

 

I am trying to set the logicaloffset day as follows:

<ig:ScheduleSettings LogicalDayOffset="{Binding DayOffset}">

 public TimeSpan DayOffset

        {

get { return _dayOffset; }

set  _dayOffset =value;

            RaisePropertyChanged("DayOffset");   }

        }

 

where DayOffset is a Timespan property on my viewmodel. But this does not work, the LogicalDayOffset is a get,set property so I am not sure why this does not work.

 

Any help will be appreciated.

 

Parents
No Data
Reply
  • 35319
    posted

    Hello Anne,

     

    I have been looking into your issue and in order to bind the ‘LogicalDayOffset’ property you need to make the following binding :

     

    <local:VM x:Key="vm"/>

     

     

    LogicalDayOffset="{Binding Source={StaticResource vm},Path= DayOffset}"

     

     

    Let me know, if you need any further assistance on this matter.

Children