Samsung / TizenFX

C# Device APIs for Tizen

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[ElmSharp] CircleSpinner.Step does not change

shyunMin opened this issue · comments

commented

Description

CircleSpinner.Step does not change after CircleSpinner is activated.

elmsharp_spinner
As the picture shows, there's no any change on CircleSpinner even though I changed Step value.

Here is the test code I used.

using ElmSharp.Wearable;

namespace ElmSharp.Test.TC
{
    class CircleSpinnerTest1 : TestCaseBase
    {
        public override string TestName => "CircleSpinnerTest1";
        public override string TestDescription => "To test basic operation of Circle Spinner with no AngleRatio";

        public override void Run(Window window)
        {
            Log.Debug(TestName, "CircleSpinnerTest run");
            Conformant conformant = new Conformant(window);
            conformant.Show();

            Layout layout = new Layout(window);
            layout.SetTheme("layout", "circle", "spinner");
            conformant.SetContent(layout);

            var surface = new CircleSurface(conformant);
            CircleSpinner spinner = new CircleSpinner(conformant, surface)
            {
                Text = "Spinner Test",
                Style = "circle",
                LabelFormat = "%.1f",
                Minimum = 0,
                Maximum = 999,
                Value = 0,
                Step = 0.4,
                AlignmentX = -1,
                AlignmentY = 1,
                WeightX = 1,
                WeightY = 1
            };
            ((IRotaryActionWidget)spinner).Activate();
            layout.SetContent(spinner);

            Button button = new Button(layout) {
                Text = "Step : " + spinner.Step,
            };

            button.Clicked += (s, e) =>
            {
                spinner.Step = (spinner.Step < 1) ? 1 : 0.4;
                button.Text = "Step : " + spinner.Step;
            };

            layout.SetPartContent("elm.swallow.btn", button);
            layout.SetPartText("elm.text", "Spinner Test");
        }
    }
}