Skip to content

Commit

Permalink
[iOS] Fix Button image sizing and layout (#22476)
Browse files Browse the repository at this point in the history
  • Loading branch information
tj-devel709 authored Aug 27, 2024
1 parent 1b00140 commit 588eece
Show file tree
Hide file tree
Showing 92 changed files with 2,261 additions and 188 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
ContentLayout="Right" TextColor="White" Background="Black"
ImageSource="settings.png" Text="settings" />
<Label
Text="Click To Change Positionng"
Text="Click To Change Positioning"
Style="{StaticResource Headline}"/>
<Button
x:Name="positionChange" ContentLayout="Top" TextColor="White" Background="Black"
Expand Down Expand Up @@ -245,6 +245,20 @@
<Button
Text="End"
HorizontalOptions="End" />
<Label
Text="Slide to change the Border Width:"
Style="{StaticResource Headline}"/>
<Button
Text="BorderWidth Changing"
ImageSource="settings.png"
HorizontalOptions="Center"
BackgroundColor="Green"
BorderWidth="{Binding Source={x:Reference BorderWidthSlider}, Path=Value}" />
<Slider
x:Name="BorderWidthSlider"
Minimum="0"
Maximum="100"
Value ="0"/>
</VerticalStackLayout>
</ScrollView>
</views:BasePage.Content>
Expand Down
1 change: 1 addition & 0 deletions src/Controls/src/Core/Button/Button.Mapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public partial class Button
ButtonHandler.Mapper.ReplaceMapping<Button, IButtonHandler>(nameof(ContentLayout), MapContentLayout);
#if IOS
ButtonHandler.Mapper.ReplaceMapping<Button, IButtonHandler>(nameof(Padding), MapPadding);
ButtonHandler.Mapper.ReplaceMapping<Button, IButtonHandler>(nameof(BorderWidth), MapBorderWidth);
#endif
#if WINDOWS
ButtonHandler.Mapper.ReplaceMapping<Button, IButtonHandler>(nameof(ImageSource), MapImageSource);
Expand Down
Loading

0 comments on commit 588eece

Please sign in to comment.