public SmartSearchResult(SearchResult result) { this.InitializeComponent(); this.Result = result; this.valueText.Text = result.Title; if (result.Icon != null) this.image.Source = Windows.Interop.ConvertImage(result.Icon); }
public void AddResult(SearchResult result) { this.itemsStack.Children.Add(new SmartSearchResult(result)); }
private void OnFileItemClicked(SearchResult result) { this.UI.OpenSourceView(((FileSearchResult)result).Filepath); }