xamarin/Xamarin.Forms

[Bug] Slider ThumbImageSource: Binding not working for Glyph

オープン

#6,532 opened on 2019/06/14

 (2 件のコメント) (3 件のリアクション) (0 人の担当者)C# (1,926 件のフォーク)batch import
e/2 :clock2:good first issuehackathonhelp wantedi/lowinactivet/bug :bug:up-for-grabs

Repository metrics

Stars
 (5,644 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

Description

The value binded into

            <Slider.ThumbImageSource>             
                <FontImageSource FontFamily="{DynamicResource MaterialFontFamily}"
                             Glyph="{Binding IconFont}"
                             Size="38"
                             Color="Red" />            
            </Slider.ThumbImageSource>          

is ignored. If you use explicit value for Glyph it works

            <Slider.ThumbImageSource>             
                <FontImageSource FontFamily="{DynamicResource MaterialFontFamily}"
                             Glyph="&#xf11f;"
                             Size="38"
                             Color="Red" />            
            </Slider.ThumbImageSource>     

The value of IconFont is set in the correct way...If I add a Image with a Glyph Binded value, the bind works as expected

                <Image.Source>
                    <FontImageSource
                        FontFamily="{DynamicResource MaterialFontFamily}"
                        Glyph="{Binding IconFont}"
                        Size="20"
                        Color="#999999" />
                </Image.Source>    

Steps to Reproduce

I attach a project. A list with 3 row. In each cell I have:

  • 2 slider. The first one is with binded Glyph value (not working) The second one (disabled) has a Glyph value working without Binding An image, with the same bind value of the first slider, and it works as expected

In the sample project move the slider to change the Glyph value

Expected Behavior

Glyph should appears if binded to a value

Actual Behavior

Glyph doesnt appears

  • Version with issue: x.f. 4.0 sr3
  • Last known good version: none
  • IDE: VStudio for mac

Does not work on ios and android (both)

BugSlider.zip

コントリビューターガイド