Exemplo n.º 1
0
 public static void DoInsertEmoji(EmojiInfo emojiInfo)
 {
     if (OnInsertEmoji != null)
     {
         OnInsertEmoji(emojiInfo);
     }
 }
Exemplo n.º 2
0
        static EmojiStatic()
        {
            //1-13
            var info = new EmojiInfo()
            {
                Key = "u1f004",
                Value = "u1f004",
                ImageUri = "/emoji/u1f004.png",
                RowIndex = 0,
                ColumnIndex = 0
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f30f",
                Value = "u1f30f",
                ImageUri = "/emoji/u1f30f.png",
                RowIndex = 0,
                ColumnIndex = 1
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f319",
                Value = "u1f319",
                ImageUri = "/emoji/u1f319.png",
                RowIndex = 0,
                ColumnIndex = 2
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f332",
                Value = "u1f332",
                ImageUri = "/emoji/u1f332.png",
                RowIndex = 0,
                ColumnIndex = 3
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f339",
                Value = "u1f339",
                ImageUri = "/emoji/u1f339.png",
                RowIndex = 0,
                ColumnIndex = 4
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f33b",
                Value = "u1f33b",
                ImageUri = "/emoji/u1f33b.png",
                RowIndex = 0,
                ColumnIndex = 5
            };

            EmojiList.Add(info);


            info = new EmojiInfo()
            {
                Key = "u1f349",
                Value = "u1f349",
                ImageUri = "/emoji/u1f349.png",
                RowIndex = 0,
                ColumnIndex = 6
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f356",
                Value = "u1f356",
                ImageUri = "/emoji/u1f356.png",
                RowIndex = 0,
                ColumnIndex = 7
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f35a",
                Value = "u1f35a",
                ImageUri = "/emoji/u1f35a.png",
                RowIndex = 0,
                ColumnIndex = 8
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f366",
                Value = "u1f366",
                ImageUri = "/emoji/u1f366.png",
                RowIndex = 0,
                ColumnIndex = 9
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f36b",
                Value = "u1f36b",
                ImageUri = "/emoji/u1f36b.png",
                RowIndex = 0,
                ColumnIndex = 10
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f377",
                Value = "u1f377",
                ImageUri = "/emoji/u1f377.png",
                RowIndex = 0,
                ColumnIndex = 11
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f37b",
                Value = "u1f37b",
                ImageUri = "/emoji/u1f37b.png",
                RowIndex = 0,
                ColumnIndex = 12
            };

            EmojiList.Add(info);

            //14-26
            info = new EmojiInfo()
            {
                Key = "u1f381",
                Value = "u1f381",
                ImageUri = "/emoji/u1f381.png",
                RowIndex = 1,
                ColumnIndex = 0
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f382",
                Value = "u1f382",
                ImageUri = "/emoji/u1f382.png",
                RowIndex = 1,
                ColumnIndex = 1
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f384",
                Value = "u1f384",
                ImageUri = "/emoji/u1f384.png",
                RowIndex = 1,
                ColumnIndex = 2
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f389",
                Value = "u1f389",
                ImageUri = "/emoji/u1f389.png",
                RowIndex = 1,
                ColumnIndex = 3
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f393",
                Value = "u1f393",
                ImageUri = "/emoji/u1f393.png",
                RowIndex = 1,
                ColumnIndex = 4
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f3a4",
                Value = "u1f3a4",
                ImageUri = "/emoji/u1f3a4.png",
                RowIndex = 1,
                ColumnIndex = 5
            };

            EmojiList.Add(info);


            info = new EmojiInfo()
            {
                Key = "u1f3b2",
                Value = "u1f3b2",
                ImageUri = "/emoji/u1f3b2.png",
                RowIndex = 1,
                ColumnIndex = 6
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f3b5",
                Value = "u1f3b5",
                ImageUri = "/emoji/u1f3b5.png",
                RowIndex = 1,
                ColumnIndex = 7
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f3c0",
                Value = "u1f3c0",
                ImageUri = "/emoji/u1f3c0.png",
                RowIndex = 1,
                ColumnIndex = 8
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f3c2",
                Value = "u1f3c2",
                ImageUri = "/emoji/u1f3c2.png",
                RowIndex = 1,
                ColumnIndex = 9
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f3e1",
                Value = "u1f3e1",
                ImageUri = "/emoji/u1f3e1.png",
                RowIndex = 1,
                ColumnIndex = 10
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f434",
                Value = "u1f434",
                ImageUri = "/emoji/u1f434.png",
                RowIndex = 1,
                ColumnIndex = 11
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f436",
                Value = "u1f436",
                ImageUri = "/emoji/u1f436.png",
                RowIndex = 1,
                ColumnIndex = 12
            };

            EmojiList.Add(info);


            //27-39
            info = new EmojiInfo()
            {
                Key = "u1f437",
                Value = "u1f437",
                ImageUri = "/emoji/u1f437.png",
                RowIndex = 2,
                ColumnIndex = 0
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f44a",
                Value = "u1f44a",
                ImageUri = "/emoji/u1f44a.png",
                RowIndex = 2,
                ColumnIndex = 1
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f44c",
                Value = "u1f44c",
                ImageUri = "/emoji/u1f44c.png",
                RowIndex = 2,
                ColumnIndex = 2
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f44d",
                Value = "u1f44d",
                ImageUri = "/emoji/u1f44d.png",
                RowIndex = 2,
                ColumnIndex = 3
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f44e",
                Value = "u1f44e",
                ImageUri = "/emoji/u1f44e.png",
                RowIndex = 2,
                ColumnIndex = 4
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f44f",
                Value = "u1f44f",
                ImageUri = "/emoji/u1f44f.png",
                RowIndex = 2,
                ColumnIndex = 5
            };

            EmojiList.Add(info);


            info = new EmojiInfo()
            {
                Key = "u1f451",
                Value = "u1f451",
                ImageUri = "/emoji/u1f451.png",
                RowIndex = 2,
                ColumnIndex = 6
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f46a",
                Value = "u1f46a",
                ImageUri = "/emoji/u1f46a.png",
                RowIndex = 2,
                ColumnIndex = 7
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f46b",
                Value = "u1f46b",
                ImageUri = "/emoji/u1f46b.png",
                RowIndex = 2,
                ColumnIndex = 8
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f47b",
                Value = "u1f47b",
                ImageUri = "/emoji/u1f47b.png",
                RowIndex = 2,
                ColumnIndex = 9
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f47c",
                Value = "u1f47c",
                ImageUri = "/emoji/u1f47c.png",
                RowIndex = 2,
                ColumnIndex = 10
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f47d",
                Value = "u1f47d",
                ImageUri = "/emoji/u1f47d.png",
                RowIndex = 2,
                ColumnIndex = 11
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f47f",
                Value = "u1f47f",
                ImageUri = "/emoji/u1f47f.png",
                RowIndex = 2,
                ColumnIndex = 12
            };

            EmojiList.Add(info);

            //40-52
            info = new EmojiInfo()
            {
                Key = "u1f484",
                Value = "u1f484",
                ImageUri = "/emoji/u1f484.png",
                RowIndex = 3,
                ColumnIndex = 0
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f48a",
                Value = "u1f48a",
                ImageUri = "/emoji/u1f48a.png",
                RowIndex = 3,
                ColumnIndex = 1
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f48b",
                Value = "u1f48b",
                ImageUri = "/emoji/u1f48b.png",
                RowIndex = 3,
                ColumnIndex = 2
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f48d",
                Value = "u1f48d",
                ImageUri = "/emoji/u1f48d.png",
                RowIndex = 3,
                ColumnIndex = 3
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f494",
                Value = "u1f494",
                ImageUri = "/emoji/u1f494.png",
                RowIndex = 3,
                ColumnIndex = 4
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f4a1",
                Value = "u1f4a1",
                ImageUri = "/emoji/u1f4a1.png",
                RowIndex = 3,
                ColumnIndex = 5
            };

            EmojiList.Add(info);


            info = new EmojiInfo()
            {
                Key = "u1f4a2",
                Value = "u1f4a2",
                ImageUri = "/emoji/u1f4a2.png",
                RowIndex = 3,
                ColumnIndex = 6
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f4a3",
                Value = "u1f4a3",
                ImageUri = "/emoji/u1f4a3.png",
                RowIndex = 3,
                ColumnIndex = 7
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f4a4",
                Value = "u1f4a4",
                ImageUri = "/emoji/u1f4a4.png",
                RowIndex = 3,
                ColumnIndex = 8
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f4a9",
                Value = "u1f4a9",
                ImageUri = "/emoji/u1f4a9.png",
                RowIndex = 3,
                ColumnIndex = 9
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f4aa",
                Value = "u1f4aa",
                ImageUri = "/emoji/u1f4aa.png",
                RowIndex = 3,
                ColumnIndex = 10
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f4b0",
                Value = "u1f4b0",
                ImageUri = "/emoji/u1f4b0.png",
                RowIndex = 3,
                ColumnIndex = 11
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f4da",
                Value = "u1f4da",
                ImageUri = "/emoji/u1f4da.png",
                RowIndex = 3,
                ColumnIndex = 12
            };

            EmojiList.Add(info);


            //53-65
            info = new EmojiInfo()
            {
                Key = "u1f4de",
                Value = "u1f4de",
                ImageUri = "/emoji/u1f4de.png",
                RowIndex = 4,
                ColumnIndex = 0
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f4e2",
                Value = "u1f4e2",
                ImageUri = "/emoji/u1f4e2.png",
                RowIndex = 4,
                ColumnIndex = 1
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f525",
                Value = "u1f525",
                ImageUri = "/emoji/u1f525.png",
                RowIndex = 4,
                ColumnIndex = 2
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f52b",
                Value = "u1f52b",
                ImageUri = "/emoji/u1f52b.png",
                RowIndex = 4,
                ColumnIndex = 3
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f556",
                Value = "u1f556",
                ImageUri = "/emoji/u1f556.png",
                RowIndex = 4,
                ColumnIndex = 4
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f600",
                Value = "u1f600",
                ImageUri = "/emoji/u1f600.png",
                RowIndex = 4,
                ColumnIndex = 5
            };

            EmojiList.Add(info);


            info = new EmojiInfo()
            {
                Key = "u1f601",
                Value = "u1f601",
                ImageUri = "/emoji/u1f601.png",
                RowIndex = 4,
                ColumnIndex = 6
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f602",
                Value = "u1f602",
                ImageUri = "/emoji/u1f602.png",
                RowIndex = 4,
                ColumnIndex = 7
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f603",
                Value = "u1f603",
                ImageUri = "/emoji/u1f603.png",
                RowIndex = 4,
                ColumnIndex = 8
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f605",
                Value = "u1f605",
                ImageUri = "/emoji/u1f605.png",
                RowIndex = 4,
                ColumnIndex = 9
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f606",
                Value = "u1f606",
                ImageUri = "/emoji/u1f606.png",
                RowIndex = 4,
                ColumnIndex = 10
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f607",
                Value = "u1f607",
                ImageUri = "/emoji/u1f607.png",
                RowIndex = 4,
                ColumnIndex = 11
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f608",
                Value = "u1f608",
                ImageUri = "/emoji/u1f608.png",
                RowIndex = 4,
                ColumnIndex = 12
            };

            EmojiList.Add(info);


            //66-78
            info = new EmojiInfo()
            {
                Key = "u1f609",
                Value = "u1f609",
                ImageUri = "/emoji/u1f609.png",
                RowIndex = 5,
                ColumnIndex = 0
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f60a",
                Value = "u1f60a",
                ImageUri = "/emoji/u1f60a.png",
                RowIndex = 5,
                ColumnIndex = 1
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f60b",
                Value = "u1f60b",
                ImageUri = "/emoji/u1f60b.png",
                RowIndex = 5,
                ColumnIndex = 2
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f60c",
                Value = "u1f60c",
                ImageUri = "/emoji/u1f60c.png",
                RowIndex = 5,
                ColumnIndex = 3
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f60d",
                Value = "u1f60d",
                ImageUri = "/emoji/u1f60d.png",
                RowIndex = 5,
                ColumnIndex = 4
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f60e",
                Value = "u1f60e",
                ImageUri = "/emoji/u1f60e.png",
                RowIndex = 5,
                ColumnIndex = 5
            };

            EmojiList.Add(info);


            info = new EmojiInfo()
            {
                Key = "u1f60f",
                Value = "u1f60f",
                ImageUri = "/emoji/u1f60f.png",
                RowIndex = 5,
                ColumnIndex = 6
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f611",
                Value = "u1f611",
                ImageUri = "/emoji/u1f611.png",
                RowIndex = 5,
                ColumnIndex = 7
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f612",
                Value = "u1f612",
                ImageUri = "/emoji/u1f612.png",
                RowIndex = 5,
                ColumnIndex = 8
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f613",
                Value = "u1f613",
                ImageUri = "/emoji/u1f613.png",
                RowIndex = 5,
                ColumnIndex = 9
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f614",
                Value = "u1f614",
                ImageUri = "/emoji/u1f614.png",
                RowIndex = 5,
                ColumnIndex = 10
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f615",
                Value = "u1f615",
                ImageUri = "/emoji/u1f615.png",
                RowIndex = 5,
                ColumnIndex = 11
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f616",
                Value = "u1f616",
                ImageUri = "/emoji/u1f616.png",
                RowIndex = 5,
                ColumnIndex = 12
            };

            EmojiList.Add(info);


            //79-91
            info = new EmojiInfo()
            {
                Key = "u1f618",
                Value = "u1f618",
                ImageUri = "/emoji/u1f618.png",
                RowIndex = 6,
                ColumnIndex = 0
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f61a",
                Value = "u1f61a",
                ImageUri = "/emoji/u1f61a.png",
                RowIndex = 6,
                ColumnIndex = 1
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f61c",
                Value = "u1f61c",
                ImageUri = "/emoji/u1f61c.png",
                RowIndex = 6,
                ColumnIndex = 2
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f61d",
                Value = "u1f61d",
                ImageUri = "/emoji/u1f61d.png",
                RowIndex = 6,
                ColumnIndex = 3
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f61e",
                Value = "u1f61e",
                ImageUri = "/emoji/u1f61e.png",
                RowIndex = 6,
                ColumnIndex = 4
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f61f",
                Value = "u1f61f",
                ImageUri = "/emoji/u1f61f.png",
                RowIndex = 6,
                ColumnIndex = 5
            };

            EmojiList.Add(info);


            info = new EmojiInfo()
            {
                Key = "u1f621",
                Value = "u1f621",
                ImageUri = "/emoji/u1f621.png",
                RowIndex = 6,
                ColumnIndex = 6
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f622",
                Value = "u1f622",
                ImageUri = "/emoji/u1f622.png",
                RowIndex = 6,
                ColumnIndex = 7
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f623",
                Value = "u1f623",
                ImageUri = "/emoji/u1f623.png",
                RowIndex = 6,
                ColumnIndex = 8
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f624",
                Value = "u1f624",
                ImageUri = "/emoji/u1f624.png",
                RowIndex = 6,
                ColumnIndex = 9
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f628",
                Value = "u1f628",
                ImageUri = "/emoji/u1f628.png",
                RowIndex = 6,
                ColumnIndex = 10
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f629",
                Value = "u1f629",
                ImageUri = "/emoji/u1f629.png",
                RowIndex = 6,
                ColumnIndex = 11
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f62a",
                Value = "u1f62a",
                ImageUri = "/emoji/u1f62a.png",
                RowIndex = 6,
                ColumnIndex = 12
            };

            EmojiList.Add(info);


            //92-104
            info = new EmojiInfo()
            {
                Key = "u1f62b",
                Value = "u1f62b",
                ImageUri = "/emoji/u1f62b.png",
                RowIndex = 7,
                ColumnIndex = 0
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f62c",
                Value = "u1f62c",
                ImageUri = "/emoji/u1f62c.png",
                RowIndex = 7,
                ColumnIndex = 1
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f62d",
                Value = "u1f62d",
                ImageUri = "/emoji/u1f62d.png",
                RowIndex = 7,
                ColumnIndex = 2
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f62e",
                Value = "u1f62e",
                ImageUri = "/emoji/u1f62e.png",
                RowIndex = 7,
                ColumnIndex = 3
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f62f",
                Value = "u1f62f",
                ImageUri = "/emoji/u1f62f.png",
                RowIndex = 7,
                ColumnIndex = 4
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f630",
                Value = "u1f630",
                ImageUri = "/emoji/u1f630.png",
                RowIndex = 7,
                ColumnIndex = 5
            };

            EmojiList.Add(info);


            info = new EmojiInfo()
            {
                Key = "u1f631",
                Value = "u1f631",
                ImageUri = "/emoji/u1f631.png",
                RowIndex = 7,
                ColumnIndex = 6
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f632",
                Value = "u1f632",
                ImageUri = "/emoji/u1f632.png",
                RowIndex = 7,
                ColumnIndex = 7
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f633",
                Value = "u1f633",
                ImageUri = "/emoji/u1f633.png",
                RowIndex = 7,
                ColumnIndex = 8
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f634",
                Value = "u1f634",
                ImageUri = "/emoji/u1f634.png",
                RowIndex = 7,
                ColumnIndex = 9
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f635",
                Value = "u1f635",
                ImageUri = "/emoji/u1f635.png",
                RowIndex = 7,
                ColumnIndex = 10
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f636",
                Value = "u1f636",
                ImageUri = "/emoji/u1f636.png",
                RowIndex = 7,
                ColumnIndex = 11
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f637",
                Value = "u1f637",
                ImageUri = "/emoji/u1f637.png",
                RowIndex = 7,
                ColumnIndex = 12
            };

            EmojiList.Add(info);


            //105-117
            info = new EmojiInfo()
            {
                Key = "u1f648",
                Value = "u1f648",
                ImageUri = "/emoji/u1f648.png",
                RowIndex = 8,
                ColumnIndex = 0
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f649",
                Value = "u1f649",
                ImageUri = "/emoji/u1f649.png",
                RowIndex = 8,
                ColumnIndex = 1
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f64a",
                Value = "u1f64a",
                ImageUri = "/emoji/u1f64a.png",
                RowIndex = 8,
                ColumnIndex = 2
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f64f",
                Value = "u1f64f",
                ImageUri = "/emoji/u1f64f.png",
                RowIndex = 8,
                ColumnIndex = 3
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f680",
                Value = "u1f680",
                ImageUri = "/emoji/u1f680.png",
                RowIndex = 8,
                ColumnIndex = 4
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f6ab",
                Value = "u1f6ab",
                ImageUri = "/emoji/u1f6ab.png",
                RowIndex = 8,
                ColumnIndex = 5
            };

            EmojiList.Add(info);

            info = new EmojiInfo()
            {
                Key = "u1f6b2",
                Value = "u1f6b2",
                ImageUri = "/emoji/u1f6b2.png",
                RowIndex = 8,
                ColumnIndex = 6
            };

            EmojiList.Add(info);


            info = new EmojiInfo()
            {
                Key = "u1f6bf",
                Value = "u1f6bf",
                ImageUri = "/emoji/u1f6bf.png",
                RowIndex = 8,
                ColumnIndex = 7
            };

            EmojiList.Add(info);

            ////info = new EmojiInfo()
            ////{
            ////    Key = "u23f0",
            ////    Value = "u23f0",
            ////    ImageUri = "/emoji/u23f0.png",
            ////    RowIndex = 8,
            ////    ColumnIndex = 8
            ////};

            ////EmojiList.Add(info);

            ////info = new EmojiInfo()
            ////{
            ////    Key = "u23f3",
            ////    Value = "u23f3",
            ////    ImageUri = "/emoji/u23f3.png",
            ////    RowIndex = 8,
            ////    ColumnIndex = 9
            ////};

            ////EmojiList.Add(info);

            ////info = new EmojiInfo()
            ////{
            ////    Key = "u2600",
            ////    Value = "u2600",
            ////    ImageUri = "/emoji/u2600.png",
            ////    RowIndex = 8,
            ////    ColumnIndex = 10
            ////};

            ////EmojiList.Add(info);

            ////info = new EmojiInfo()
            ////{
            ////    Key = "u2601",
            ////    Value = "u2601",
            ////    ImageUri = "/emoji/u2601.png",
            ////    RowIndex = 8,
            ////    ColumnIndex = 11
            ////};

            ////EmojiList.Add(info);

            ////info = new EmojiInfo()
            ////{
            ////    Key = "u2614",
            ////    Value = "u2614",
            ////    ImageUri = "/emoji/u2614.png",
            ////    RowIndex = 8,
            ////    ColumnIndex = 12
            ////};

            ////EmojiList.Add(info);


            ////118-130
            ////info = new EmojiInfo()
            ////{
            ////    Key = "u2615",
            ////    Value = "u2615",
            ////    ImageUri = "/emoji/u2615.png",
            ////    RowIndex = 9,
            ////    ColumnIndex = 0
            ////};

            ////EmojiList.Add(info);

            ////info = new EmojiInfo()
            ////{
            ////    Key = "u261d",
            ////    Value = "u261d",
            ////    ImageUri = "/emoji/u261d.png",
            ////    RowIndex = 9,
            ////    ColumnIndex = 1
            ////};

            ////EmojiList.Add(info);

            ////info = new EmojiInfo()
            ////{
            ////    Key = "u263a",
            ////    Value = "u263a",
            ////    ImageUri = "/emoji/u263a.png",
            ////    RowIndex = 9,
            ////    ColumnIndex = 2
            ////};

            ////EmojiList.Add(info);

            ////info = new EmojiInfo()
            ////{
            ////    Key = "u26a1",
            ////    Value = "u26a1",
            ////    ImageUri = "/emoji/u26a1.png",
            ////    RowIndex = 9,
            ////    ColumnIndex = 3
            ////};

            ////EmojiList.Add(info);

            ////info = new EmojiInfo()
            ////{
            ////    Key = "u26bd",
            ////    Value = "u26bd",
            ////    ImageUri = "/emoji/u26bd.png",
            ////    RowIndex = 9,
            ////    ColumnIndex = 4
            ////};

            ////EmojiList.Add(info);

            ////info = new EmojiInfo()
            ////{
            ////    Key = "u26c4",
            ////    Value = "u26c4",
            ////    ImageUri = "/emoji/u26c4.png",
            ////    RowIndex = 9,
            ////    ColumnIndex = 5
            ////};

            ////EmojiList.Add(info);

            ////info = new EmojiInfo()
            ////{
            ////    Key = "u26c5",
            ////    Value = "u26c5",
            ////    ImageUri = "/emoji/u26c5.png",
            ////    RowIndex = 9,
            ////    ColumnIndex = 6
            ////};

            ////EmojiList.Add(info);


            ////info = new EmojiInfo()
            ////{
            ////    Key = "u270a",
            ////    Value = "u270a",
            ////    ImageUri = "/emoji/u270a.png",
            ////    RowIndex = 9,
            ////    ColumnIndex = 7
            ////};

            ////EmojiList.Add(info);

            ////info = new EmojiInfo()
            ////{
            ////    Key = "u270b",
            ////    Value = "u270b",
            ////    ImageUri = "/emoji/u270b.png",
            ////    RowIndex = 9,
            ////    ColumnIndex = 8
            ////};

            ////EmojiList.Add(info);

            ////info = new EmojiInfo()
            ////{
            ////    Key = "u270c",
            ////    Value = "u270c",
            ////    ImageUri = "/emoji/u270c.png",
            ////    RowIndex = 9,
            ////    ColumnIndex = 9
            ////};

            ////EmojiList.Add(info);

            ////info = new EmojiInfo()
            ////{
            ////    Key = "u270f",
            ////    Value = "u270f",
            ////    ImageUri = "/emoji/u270f.png",
            ////    RowIndex = 9,
            ////    ColumnIndex = 10
            ////};

            ////EmojiList.Add(info);

            ////info = new EmojiInfo()
            ////{
            ////    Key = "u2744",
            ////    Value = "u2744",
            ////    ImageUri = "/emoji/u2744.png",
            ////    RowIndex = 9,
            ////    ColumnIndex = 11
            ////};

            ////EmojiList.Add(info);

            ////info = new EmojiInfo()
            ////{
            ////    Key = "u2b50",
            ////    Value = "u2b50",
            ////    ImageUri = "/emoji/u2b50.png",
            ////    RowIndex = 9,
            ////    ColumnIndex = 12
            ////};

            ////EmojiList.Add(info);
        }
Exemplo n.º 3
0
        private void InsertEmoji(EmojiInfo info)
        {
            var flowDocument = ParserRichTextBoxBody(RichTextBoxBody);
            var bitmap = new BitmapImage(new Uri(AppDomain.CurrentDomain.BaseDirectory + info.ImageUri));
            var image = new Image();
            image.Width = 20;
            image.Height = 20;
            image.Stretch = Stretch.Uniform;  //图片缩放模式
            image.Source = bitmap;

            Paragraph para = flowDocument.Blocks.LastBlock as Paragraph;
            if (para != null)
            {
                para.Inlines.Add(new InlineUIContainer(image));
            }
            else
            {
                para = new Paragraph();
                para.Inlines.Add(new InlineUIContainer(image));
                flowDocument.Blocks.Add(para);
            }

            RichTextBoxBody = XamlWriter.Save(flowDocument);
        }