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
255
how to styled monthCalendar in XamDateTimeEditor
posted

hi all,

i have infragistics editor(DateTimeEditor), i want to hide the tday button of the Monthcaledar COntrol which is dropdown after click dropdown button.

more over is it possible that i can attach a seperate XamMOnthcalendar to my XamDateTimeEditor.

 

regards,

Laki

Parents
No Data
Reply
  • 54937
    Offline posted

    To change properties on the xamMonthCalendar used by the xamDateTimeEditor you could just add a style targeting the xamMonthCalendar to the grid's resources; be careful not to put it higher if you are setting the Theme property since that will put a resourcedictionary with the styles for wpf, editors and dp in the resources chain of the datapresenter.

    e.g.

    <igDP:XamDataPresenter.Resources>
        <Style TargetType="{x:Type igEditors:XamMonthCalendar}">
            <Setter Property="TodayButtonVisibility" Value="Collapsed" />
    </Style>

    I'm not sure what you mean by attaching a separate xamMonthCalendar. You can retemplate the xamDateTimeEditor to contain a different or modified xamMonthCalendar - the default template just has a xamMonthCalendar in a Popup.

Children