Hello Sridevi,
Attached find a more complex solution that uses the dockingmanager.
If you look in DockingAdapterViewModel, on line 40 your will find the method below.
private void PopulateDockingAdapterCollection()
{
DockingAdapter = new ObservableCollection();
// Add models obtained from DI container.
DockingAdapter.Add(_sFTextInputLayoutTestViewModel);
// comment out the 2 lines below and the height difference in the SfTextInputLayout will dissappear.
DockingAdapter.Add(_contactsListViewModel);
DockingAdapter.Add(_contactsTreeViewModel);
}
If you comment out line 48 and 49, the height of the SFTextInputLayout with SfMaskedEdit control will look fine. However, If you include these two usercontrols - or even just one of them - in the DockingManager, then the
SFTextInputLayout with SfMaskedEdit control in the
SFTextInputLayoutTestView, will take a different height at runtime,
compared to the other SFTextInputLayout controls that do not have a SfMaskedEdit field on that demo page. Both usercontrols that you can comment out, have no SFTextInputLayout on them, nor a SfMaskedEdit. I therefore do not understand how adding these usercontrols affect the content display of my _sFTextInputLayoutTestViewModel.
An example of an SFTextInputLayout control that differ in size with the 2 extra usercontrols loaded in the DockingAdapterViewModel is located in SFMVVM.Views.SFTextInputLayoutTestView.xaml lines 182-212. The SFTextInputLayout with the SfMaskedEdit inside will be different in Height from the SFTextInputLayout with the combobox inside, displayed next to it.
Should you any questions about my demo, let me know.
Thanks in advance.
Niels van Strien
The demo uses .Net5, Caliburn Micro, DockingManager. I use this project to test WPF controls of SyncFusion so there is more stuff in there than strictly needed for this demo alone.
Attachment:
2021_05_25_SyncfusionControlsDemo_da51f56.7z