-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #91 from Strypper/90-bug-cake-build-missing-proper…
…ty-and-app-bar-buttons [Bug]: cake build missing property and app bar buttons
- Loading branch information
Showing
6 changed files
with
134 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
17 changes: 17 additions & 0 deletions
17
src/Features/Gallery/Pages/Syncfusion/SfBadgeView/SfBadgeViewControlInfo.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,17 @@ | ||
using Syncfusion.Maui.Core; | ||
|
||
namespace MAUIsland.Gallery.Syncfusion; | ||
class SfBadgeViewControlInfo : IControlInfo | ||
{ | ||
public string ControlName => nameof(SfBadgeView); | ||
public string ControlRoute => typeof(SfBadgeViewPage).FullName; | ||
public ImageSource ControlIcon => new FontImageSource() | ||
{ | ||
FontFamily = FontNames.FluentSystemIconsRegular, | ||
Glyph = FluentUIIcon.Ic_fluent_mail_alert_24_regular | ||
}; | ||
public string ControlDetail => "Badges are used to notify users of new or unread messages, notifications, or the status of something."; | ||
public string GitHubUrl => $"https://github.com/Strypper/mauisland/tree/main/src/Features/Gallery/Pages/Syncfusion/{ControlName}"; | ||
public string DocumentUrl => $"https://help.syncfusion.com/maui/badge-view/overview"; | ||
public string GroupName => ControlGroupInfo.SyncfusionControls; | ||
} |
64 changes: 64 additions & 0 deletions
64
src/Features/Gallery/Pages/Syncfusion/SfBadgeView/SfBadgeViewPage.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,64 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<app:BasePage | ||
x:Class="MAUIsland.SfBadgeViewPage" | ||
xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
xmlns:app="clr-namespace:MAUIsland" | ||
Title="SfBadgeView" | ||
Padding="10" | ||
x:DataType="app:SfBadgeViewPageViewModel"> | ||
|
||
<app:BasePage.ToolbarItems> | ||
<ToolbarItem | ||
Command="{x:Binding OpenUrlCommand}" | ||
CommandParameter="{x:Binding ControlInformation.GitHubUrl}" | ||
IconImageSource="github.png" | ||
Text="Source code" /> | ||
<ToolbarItem | ||
Command="{x:Binding OpenUrlCommand}" | ||
CommandParameter="{x:Binding ControlInformation.DocumentUrl}" | ||
IconImageSource="syncfusion_logo.png" | ||
Text="Original Document" /> | ||
</app:BasePage.ToolbarItems> | ||
|
||
<app:BasePage.Resources> | ||
|
||
<x:String x:Key="PropertiesListHeader"> | ||
SfBadgeView defines the following properties: | ||
</x:String> | ||
|
||
<x:String x:Key="PropertiesListFooter"> | ||
These properties are backed by BindableProperty objects, which means that they can be targets of data bindings, and styled. | ||
</x:String> | ||
|
||
<x:Array x:Key="PropertiesItemsSource" Type="{x:Type x:String}"> | ||
<x:String> | ||
<![CDATA[ | ||
<strong style="color:blue">Color</strong>, of type <strong style="color:blue">Color </strong>, value that defines the color of the ActivityIndicator. | ||
]]> | ||
</x:String> | ||
<x:String> | ||
<![CDATA[ | ||
<strong style="color:blue">IsRunning</strong>, of type <strong style="color:blue">bool</strong>,value that indicates whether the ActivityIndicator should be visible and animating, or hidden. The default value of this property is false, which indicates that the ActivityIndicator isn't visible. | ||
]]> | ||
</x:String> | ||
</x:Array> | ||
|
||
|
||
</app:BasePage.Resources> | ||
|
||
<ScrollView> | ||
<VerticalStackLayout Spacing="20"> | ||
<Frame Style="{x:StaticResource DocumentContentFrameStyle}"> | ||
<Label Text="{x:Binding ControlInformation.ControlDetail}" /> | ||
</Frame> | ||
<Frame Style="{x:StaticResource DocumentContentFrameStyle}"> | ||
<CollectionView | ||
Footer="{x:StaticResource PropertiesListFooter}" | ||
Header="{x:StaticResource PropertiesListHeader}" | ||
ItemsSource="{x:StaticResource PropertiesItemsSource}" | ||
Style="{x:StaticResource PropertiesListStyle}" /> | ||
</Frame> | ||
</VerticalStackLayout> | ||
</ScrollView> | ||
</app:BasePage> |
12 changes: 12 additions & 0 deletions
12
src/Features/Gallery/Pages/Syncfusion/SfBadgeView/SfBadgeViewPage.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 @@ | ||
namespace MAUIsland; | ||
public partial class SfBadgeViewPage : IControlPage | ||
{ | ||
#region [CTor] | ||
public SfBadgeViewPage(SfBadgeViewPageViewModel vm) | ||
{ | ||
InitializeComponent(); | ||
|
||
BindingContext = vm; | ||
} | ||
#endregion | ||
} |
26 changes: 26 additions & 0 deletions
26
src/Features/Gallery/Pages/Syncfusion/SfBadgeView/SfBadgeViewPageViewModel.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,26 @@ | ||
namespace MAUIsland; | ||
public partial class SfBadgeViewPageViewModel : NavigationAwareBaseViewModel | ||
{ | ||
#region [CTor] | ||
public SfBadgeViewPageViewModel( | ||
IAppNavigator appNavigator | ||
) : base(appNavigator) | ||
{ | ||
} | ||
#endregion | ||
|
||
#region [Properties] | ||
[ObservableProperty] | ||
IControlInfo controlInformation; | ||
#endregion | ||
|
||
#region [Overrides] | ||
protected override void OnInit(IDictionary<string, object> query) | ||
{ | ||
base.OnInit(query); | ||
|
||
ControlInformation = query.GetData<IControlInfo>(); | ||
|
||
} | ||
#endregion | ||
} |
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