You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you add an TextBox (probably any control) in an AvaloniaView, as in the MauiSample in this repo, it does not stretch.
The same TextBox in a "pure" Avalonia project always stretches to the full parent width.
It always adjusts the width to the initial text width.
If you try this in Windows (with the latest commit in this repo), it does stretch, but not to the full width.
Is this a known issue and is there a workaround?
I've just ran out of ideas to workaround this, except setting a fixed Width.
If you add an TextBox (probably any control) in an AvaloniaView, as in the MauiSample in this repo, it does not stretch.
The same TextBox in a "pure" Avalonia project always stretches to the full parent width.
It always adjusts the width to the initial text width.
If you try this in Windows (with the latest commit in this repo), it does stretch, but not to the full width.
Is this a known issue and is there a workaround?
I've just ran out of ideas to workaround this, except setting a fixed Width.
I've made a test repository while testing this and tried to remove all other reasons that stretching did not work.
https://github.com/emilsteen/AvaloniaMauiHybridControlWidth
TextBox in Avalonia
TextBox in Avalonia.Maui
Short TextBox in Avalonia.Maui
AvaloniaView width in Avalonia.Maui
TextBox in Avalonia.Maui on Windows