Skip to content

ImageSource in C#? #90

Closed Answered by AathifMahir
eamonnalphin asked this question in Q&A
Mar 31, 2024 · 4 comments · 3 replies
Discussion options

You must be logged in to vote

@eamonnalphin I have release v2.1.5 of MauiIcons which Contains new Extension for your Use Case, As you can see in the Below Code, I Have Used MauiIcons.Material Module to Demonstrate the New Extension, You can use this extension on All of MauiIcons Modules

using MauiIcons.Core;
using MauiIcons.Material;

public class LogView : ShellContent
{
  public LogView()
  {
    Title = "Log";
    Icon = MaterialIcons.Favorite.ToImageSource();

    var swipeItem = new SwipeItem {
        IconImageSource= MaterialIcons.Favorite.ToImageSource();
    };
    var mySwipeView = new SwipeView();
    mySwipeView.RightItems = new SwipeItems{swipeItem};
  }
}

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@AathifMahir
Comment options

@eamonnalphin
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by AathifMahir
Comment options

You must be logged in to vote
1 reply
@eamonnalphin
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Enhancement New feature or request Area-Core
2 participants