"convertor on imagesource - convert image to grayscale" Code Answer


although you can do it with a converter, there is a much better option: using a shader effect. you'll find an implementation of a greyscaleeffect on this page.

<style x:key="grayedifnotlogged" targettype="image">
        <datatrigger binding="{binding statusinfo.islogged}" value="false">
            <setter property="effect">
                    <fx:grayscaleeffect />


<image source="..." style="{staticresource grayedifnotlogged}" />
By Highly Irregular on September 16 2022

Answers related to “convertor on imagesource - convert image to grayscale”

Only authorized users can answer the Search term. Please sign in first, or register a free account.