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.
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.
I was just wondering did you have a chance to try my suggestion. If you still need any assistance on the matter, please do not hesitate to ask.