-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Fox Border margin issue * Auto-format source code --------- Co-authored-by: GitHub Actions Autoformatter <[email protected]>
- Loading branch information
1 parent
660784f
commit 2b823f8
Showing
4 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
src/Controls/samples/Controls.Sample/Pages/Core/BorderGalleries/Borderless.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<ContentPage | ||
xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
x:Class="Maui.Controls.Sample.Pages.Borderless" | ||
BackgroundColor="Yellow" | ||
Title="Border without Stroke"> | ||
<ContentPage.Resources> | ||
<ResourceDictionary> | ||
|
||
<Style x:Key="BorderlessStyle" TargetType="Border"> | ||
<Setter Property="StrokeThickness" Value="0" /> | ||
</Style> | ||
|
||
</ResourceDictionary> | ||
</ContentPage.Resources> | ||
<ContentPage.Content> | ||
<Grid | ||
RowDefinitions="*,*" | ||
RowSpacing="0"> | ||
<Border | ||
Background="Pink" | ||
Style="{StaticResource BorderlessStyle}" /> | ||
<Border | ||
Grid.Row="1" | ||
Background="Red" | ||
Style="{StaticResource BorderlessStyle}" /> | ||
</Grid> | ||
</ContentPage.Content> | ||
</ContentPage> |
12 changes: 12 additions & 0 deletions
12
src/Controls/samples/Controls.Sample/Pages/Core/BorderGalleries/Borderless.xaml.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using Microsoft.Maui.Controls; | ||
|
||
namespace Maui.Controls.Sample.Pages | ||
{ | ||
public partial class Borderless : ContentPage | ||
{ | ||
public Borderless() | ||
{ | ||
InitializeComponent(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters