Styles and image format support

Bars for Avalonia Forum

Posted 19 hours ago by kevin casey
Version: 25.2.0
Avatar

I'm evaluating some of the pro controls.

Native AOT support

In the documentation it says if native AOT support is needed, that you must explicitly include the styles, however there doesn't seem to be a specific include for the bars components.
Here is the documentation I'm referring to: https://www.actiprosoftware.com/docs/controls/avalonia/troubleshooting
I had to include all to get the bars to work:
<actipro:ModernTheme Includes="All">

We may use these controls in iOS as well, which requires AOT. I haven't tested it yet, but maybe the documentation just needs to be updated to support the bars component?

Image format support

If I wanted to specify a font icon or SVG file, is that supported?



Comments (1)

Posted 14 hours ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Thank you for evaluating our pro controls!

For the AOT documentation, you are correct that the topic was not updated to include the newer Bars and Docking assemblies.  The following could be used for those assemblies and our documentation will be updated for the next release to properly reflect that.  Thank you for bringing this to our attention.

<!-- When using Pro components from Bars library -->
<StyleInclude Source="avares://ActiproSoftware.Avalonia.Bars/Themes/Common.axaml"/>

<!-- When using Pro components from Docking library -->
<StyleInclude Source="avares://ActiproSoftware.Avalonia.Docking/Themes/Common.axaml"/>

When working with the ModernTheme includes, you should only need to use "All" for the includes if you are also using the styles for native ColorPicker or DataGrid.  Otherwise, you should be able to use "Pro".  Are you saying it did not work for you when you just used "Pro"?  If you previously did not explicitly set the includes to "All" or "Pro" it is expected it would not have worked since the additional styles would not have been loaded, but should have worked with either "All" or "Pro".  Please let us know.

For SVG images (or any other image type), you can use those.  Since the core Avalonia UI framework does not directly support SVG and you have to take a dependency on 3rd party packages to get support, we are not able to directly support SVG without also taking the same 3rd party depencency.  Our IconPresenter was specifically designed to be open-ended so that custom images types could be supported.  Please take a look at the documentation for our IconPresenter class for more details.  It has a section that specifically discusses adding support for custom icon data like SVG.

Since you mention working with iOS, I do want to mention that we primary test our controls on desktop platforms and have not extensively tested on iOS.


Actipro Software Support

Add Comment

Please log in to a validated account to post comments.