Maui Hot Reload and Styles do not work
Lloyd Sheen
1,476
Reputation points
Ok I have a simple Style. It just applies a Margin to the type of control (no Key on Style).
<Style TargetType="{Type VerticalStackLayout}">
<Setter Property="Margin" Value="0,0,0,150"/>
</Style>
Execute the app in emulator. Look at the XAML Live Preview. Then apply a change to the Value.
I have gotten so many errors when I change the value. The latest is
Java.Lang.NoSuchMethodError: 'no non-static method "Landroidx/cardview/widget/CardView;.getScrollCaptureHint()I"'
The above error occurred when doing a simple change to one of the numeric values in the Margin.