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
2915
Hide the display section of XamDateTimeEditor
posted

Hi,

    I have placed a XamDateTimeEditor inside a button, so that I want to select a date when the calendar is shown after I click the button. Once I select the date,however, the selected date is displayed in the button itself. Can this part of the XamDateTimeEditor be hidden so that I don't want it to be displayed in that control itself?

Here is the illustration of what happens as I click the button and select the date. 

Parents
  • 17559
    posted

    Hello arpita123,

     

    I have been looking into your issue and I can suggest you just hide the containers that display the date part of the editor. You can do this by  setting a style for both CardPanel and SimpleTextBlock that are placed inside the editor:

            <Button  Height="30" HorizontalAlignment="Left" Margin="378,111,0,0" Name="button1" VerticalAlignment="Top" Width="75" Click="button1_Click" >
                <Button.Content>
                    <igEditors:XamDateTimeEditor  Height="28"  Name="dtEditor"    >
                        <igEditors:XamDateTimeEditor.Resources>
                            <Style TargetType="{x:Type igWindows:CardPanel}">
                                <Setter Property="Visibility" Value="Collapsed"/>
                            </Style>
                            <Style TargetType="{x:Type igWindows:SimpleTextBlock}">
                                <Setter Property="Visibility" Value="Collapsed"/>
                            </Style>
                           
                        </igEditors:XamDateTimeEditor.Resources>
                        </igEditors:XamDateTimeEditor>
                </Button.Content>
            </Button>
    

     

     

    If you have any additional questions on this matter please feel free to ask.

Reply Children
No Data