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
280
XamMaskedInput taking fixed width rather then adapting it for container
posted

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="*"/>

<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>




Parents Reply Children
No Data