I am using XMI for displaying time. Its width is not adjusting according to container column of grid, which is effecting our display. It is taking width as 140 and is fixed. Below is the code snippet. Can you please suggest how can we make its width adjustable so that it takes space as per container.
<Grid>
<Grid.ColumnDefinitions >
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Label Grid.Column="0" Grid.Row="0" HorizontalAlignment="Right" Content="Field1"/>
<TextBox Grid.Column="1" Grid.Row="0" ></TextBox>
<Label Grid.Column="2" Grid.Row="0" HorizontalAlignment="Right" Content="Field2"/>
<TextBox Grid.Column="3" Grid.Row="0" ></TextBox>
<Label Grid.Column="0" Grid.Row="1" HorizontalAlignment="Right" Content="Field3"/>
<ig:XamMaskedInput Margin="2" Grid.Column="1" Grid.Row="1" Mask="hh:mm" />
<Label Grid.Column="2" Grid.Row="1" HorizontalAlignment="Right" Content="Field4"/>
<TextBox Grid.Column="3" Grid.Row="1" ></TextBox>
</Grid>
Hello Tarun,Thank you for the code snippet.I have been looking into your issue in regards to XamMaskedInput taking fixed width and I was not able to reproduce it. Nothing currently is affecting the input’s width to be fixed.Would you please modify the sample application I have provided so the issue is reproduced and send it back to me? Having this information will help me further investigate this matter for you.Looking forward for your reply.
Some other theme was overriding xammaskedinput's style, I corrected that.
Thanks anyways.
Hello Tarun,
Thank you for your feedback.I am glad to know, you were able to you achieve the functionality you were looking for. If you require any further assistance on this matter, please do not hesitate to ask.