Skip to content

Commit 68a463f

Browse files
committed
fix handlers
1 parent 39db235 commit 68a463f

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
using Microsoft.Maui.Handlers;
2+
using PlatformButtonView = object;
3+
4+
namespace MauiContentButton;
5+
6+
// All the code in this file is included in all platforms.
7+
public partial class ContentButtonHandler : ViewHandler<IContentButton, PlatformButtonView>
8+
{
9+
protected override PlatformButtonView CreatePlatformView() => new();
10+
11+
private static void MapPadding(IContentButtonHandler handler, IContentButton view) { }
12+
13+
private static void MapStrokeThickness(IContentButtonHandler handler, IContentButton view) { }
14+
15+
private static void MapStrokeColor(IContentButtonHandler handler, IContentButton view) { }
16+
17+
private static void MapCornerRadius(IContentButtonHandler handler, IContentButton view) { }
18+
19+
private static void MapContent(IContentButtonHandler handler, IContentButton view) { }
20+
}

Maui.ContentButton/Maui.ContentButton.csproj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,11 @@
4141

4242
<ItemGroup>
4343
<PackageReference Include="Microsoft.Maui.Controls" Version="8.0.90" />
44-
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All"/>
44+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
4545
</ItemGroup>
4646

47+
<ItemGroup Condition="'$(TargetFramework)' != 'net8.0'">
48+
<Compile Remove="**\**\*.standard.cs" Exclude="$(DefaultItemExcludes);$(DefaultExcludesInProjectFolder)" />
49+
<None Include="**\**\*.standard.cs" Exclude="$(DefaultItemExcludes);$(DefaultExcludesInProjectFolder)" />
50+
</ItemGroup>
4751
</Project>

0 commit comments

Comments
 (0)