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 }); } }
public EmojisList(EmojisStorage emojisStorage) { _emojisStorage = emojisStorage; InitializeComponent(); SetVirtualizationMode(true); }
public EmojiPopup(EmojisStorage storage) { _storage = storage; }