Skip to content

IconSource pointing to C:// #129

@mcash95

Description

@mcash95

Working with TaskBarIcon in .net Maui. The component works just fine when i define the full path of the .ico file, but not when defining the relative path.

Image

the location of the file in the project ^

<tb:TaskbarIcon 
    x:Key="TrayIcon"
    IconSource="\Resources\AppIcon\dotnet_bot.ico"
    ToolTipText="THSApp">
</tb:TaskbarIcon>

things ive tried:

Absolute path: C://{full path here}/Resources/AppIcon/dotnet_bot.ico <--- works
Relative path: {shown above} <---does not work
Pack uri: pack://application:,,,/Resources/AppIcon/dotnet_bot.ico <-- does not work

Any thoughts would be appreciated! Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions