Example #1
0
        public EmojisTabs(EmojisStorage emojisStorage)
        {
            InitializeComponent();

            foreach (var c in emojisStorage.GetCategories())
            {
                var category = c ?? "?";
                Tabs.Links.Add(new Link {
                    Key = category, DisplayName = category.ToLower().ToTitle()
                });

                var list = new EmojisList(emojisStorage)
                {
                    Filter = c
                };
                list.TextChosen += (sender, args) => TextChosen?.Invoke(sender, args);
                DirectLoader.Entries.Add(new DirectContentLoaderEntry {
                    Key = category, Content = list
                });
            }
        }
Example #2
0
 public EmojisList(EmojisStorage emojisStorage)
 {
     _emojisStorage = emojisStorage;
     InitializeComponent();
     SetVirtualizationMode(true);
 }
Example #3
0
 public EmojiPopup(EmojisStorage storage)
 {
     _storage = storage;
 }