how to use skiacanvas as a GridView item?

ozkaro 66 Reputation points
2021-08-14T14:30:01.697+00:00

Hellou!
I'm having an issue using skiacanvas as a grid view, what i want to do is draw each path data in a item in the grid but always draws the last path data. and if hide the screen buttons the stroke makes bigger

https://1drv.ms/u/s!AkcqazHa9zXrgbZ6LrcrlOFe53JN2Q?e=GoTFWy

here my code

public class kanji_detail_activity : AppCompatActivity
            {
               ...
        private string ReadPathString(string unicode)
                {
                    string[] lines = null;
                    var readpath = from selunicode in dbCon.Table<StrokeDB>() where selunicode.unicode.Contains(unicode) select selunicode;
                    StrokeDB code = readpath.FirstOrDefaultAsync().Result;
                    string data_to_parse = null;

                        if (code.Path.Contains('|'))
                        {
                            int k = 0;
                            lines = code.Path.Split('|');
                            foreach (var lin in lines)
                            {
                                k = k + 1;
                                data_to_parse += lin;
                                strokeList.Add(new StrokeDataProcess(lin, data_to_parse, k.ToString()));
                            }
                        }
        ...
        }
Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,301 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,387 questions
{count} votes