Skip to content

Commit

Permalink
2.0.45 - Small fix in the ContentPage implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
adospace committed Jul 24, 2024
1 parent b9c4850 commit 699718f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
env:
Solution_Name: ./src/MauiReactor.Build.sln
TemplatePack_Name: ./src/MauiReactor.TemplatePack/MauiReactor.TemplatePack.csproj
Version: 2.0.44
Version: 2.0.45

steps:
- name: Checkout
Expand Down
33 changes: 17 additions & 16 deletions src/MauiReactor/ContentPage.partial.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,8 @@ public ContentPage(string title)
: base(title)
{

}
}

public partial class ContentPage
{
public ContentPage(string title)
: base(title)
{

}

public ContentPage(VisualNode content)
{
_internalChildren.Add(content);
}

}

protected override void OnAddChild(VisualNode widget, BindableObject childControl)
{
Validate.EnsureNotNull(NativeControl);
Expand All @@ -49,6 +35,21 @@ protected override void OnRemoveChild(VisualNode widget, BindableObject childCon
}
}

public partial class ContentPage
{
public ContentPage(string title)
: base(title)
{

}

public ContentPage(VisualNode content)
{
_internalChildren.Add(content);
}

}

public partial class Component
{
public static ContentPage ContentPage(string title)
Expand Down

0 comments on commit 699718f

Please sign in to comment.