My earlier post re. replacing Switch with SfCheckbox was inaccurate and after more digging I've found the issue is related to the SfCheckbox not obeying the Width="AUTO" when in a grid layout.
Referring to screenshot below the first two lines (A & B) show some controls in a grid with first the ColumnDefinitions having "*" width so spaced evenly and then second with "AUTO" so spaced minimum with last "*" taking up rest as expected.
Then in the next two lines (C & D) the Switch(s) are replaced with SfCheckbox(s) and the first with "*" works as expected spaced evenly but in the second with "AUTO" the first SfCheckbox takes up most/all of the rest of space so not respecting the "AUTO"
Is this a bug with the SfCheckbox control? Or am I missing something?
Thanks for any help
Derek
Trouble with sreenshot so here's XAML and result
<Grid x:Name="gridA">
<Entry x:Name="al1" Grid.Column="0" Text="A1" />
<Switch x:Name="as1" Grid.Column="1" />
<Entry x:Name="al2" Grid.Column="2" Text="A2" />
<Switch x:Name="as2" Grid.Column="3" />
<Entry x:Name="al3" Grid.Column="4" Text="A3" />
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
Grid.ColumnDefinitions>
Grid>
<Grid x:Name="gridB">
<Entry x:Name="bl1" Grid.Column="0" Text="B1" />
<Switch x:Name="bs1" Grid.Column="1" />
<Entry x:Name="bl2" Grid.Column="2" Text="B2" />
<Switch x:Name="bs2" Grid.Column="3" />
<Entry x:Name="bl3" Grid.Column="4" Text="B3" />
<Grid.ColumnDefinitions>
<ColumnDefinition Width="AUTO" />
<ColumnDefinition Width="AUTO" />
<ColumnDefinition Width="AUTO" />
<ColumnDefinition Width="AUTO" />
<ColumnDefinition Width="*" />
Grid.ColumnDefinitions>
Grid>
<Grid x:Name="gridC">
<Entry x:Name="cl1" Grid.Column="0" Text="C1" />
<sync:SfCheckBox x:Name="cs1" Grid.Column="1" Text="CC1"/>
<Entry x:Name="cl2" Grid.Column="2" Text="C2" />
<sync:SfCheckBox x:Name="cs2" Grid.Column="3" Text="CC2"/>
<Entry x:Name="cl3" Grid.Column="4" Text="C3" />
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
Grid.ColumnDefinitions>
Grid>
<Grid x:Name="gridD">
<Entry x:Name="dl1" Grid.Column="0" Text="D1" />
<sync:SfCheckBox x:Name="ds1" Grid.Column="1" Text="DD1"/>
<Entry x:Name="dl2" Grid.Column="2" Text="D2" />
<sync:SfCheckBox x:Name="ds2" Grid.Column="3" Text="DD2"/>
<Entry x:Name="dl3" Grid.Column="4" Text="D3" />
<Grid.ColumnDefinitions>
<ColumnDefinition Width="AUTO" />
<ColumnDefinition Width="AUTO" />
<ColumnDefinition Width="AUTO" />
<ColumnDefinition Width="AUTO" />
<ColumnDefinition Width="*" />
Grid.ColumnDefinitions>
Grid>
