From a191d4a909faba2f00aa2d978c51cc8e00b4e9bb Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Tue, 9 Aug 2022 21:27:30 +0200 Subject: [PATCH] Added the icon component --- I18N Commander/UI MAUI/Components/Icon.razor | 1 + I18N Commander/UI MAUI/Components/Icon.razor.cs | 15 +++++++++++++++ I18N Commander/UI MAUI/_Imports.razor | 1 + 3 files changed, 17 insertions(+) create mode 100644 I18N Commander/UI MAUI/Components/Icon.razor create mode 100644 I18N Commander/UI MAUI/Components/Icon.razor.cs diff --git a/I18N Commander/UI MAUI/Components/Icon.razor b/I18N Commander/UI MAUI/Components/Icon.razor new file mode 100644 index 0000000..3ae9ae5 --- /dev/null +++ b/I18N Commander/UI MAUI/Components/Icon.razor @@ -0,0 +1 @@ +@this.AltText \ No newline at end of file diff --git a/I18N Commander/UI MAUI/Components/Icon.razor.cs b/I18N Commander/UI MAUI/Components/Icon.razor.cs new file mode 100644 index 0000000..8bd9d5c --- /dev/null +++ b/I18N Commander/UI MAUI/Components/Icon.razor.cs @@ -0,0 +1,15 @@ +using Microsoft.AspNetCore.Components; + +namespace UI_MAUI.Components; + +public partial class Icon : ComponentBase +{ + [Parameter] + public string Filename { get; set; } = string.Empty; + + [Parameter] + public string AltText { get; set; } = string.Empty; + + [Parameter] + public ushort Size { get; set; } = 35; +} \ No newline at end of file diff --git a/I18N Commander/UI MAUI/_Imports.razor b/I18N Commander/UI MAUI/_Imports.razor index f91d724..a01cd8e 100644 --- a/I18N Commander/UI MAUI/_Imports.razor +++ b/I18N Commander/UI MAUI/_Imports.razor @@ -6,3 +6,4 @@ @using Microsoft.JSInterop @using UI_MAUI @using UI_MAUI.Shared +@using UI_MAUI.Components; \ No newline at end of file