-
-
Notifications
You must be signed in to change notification settings - Fork 317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom Preview panel with plugin sample #1580
base: dev
Are you sure you want to change the base?
Conversation
- Fix Seperate line for toggle - Block preview when nothing result
- Change Preview High Resolution
- change small icon in result to folder thumbnail
- Fix Binding Error
…ge Icon display issue)
@@ -74,10 +75,10 @@ public async Task<List<Result>> QueryAsync(Query query, CancellationToken token) | |||
IcoPath = searchSource.IconPath, | |||
ActionKeywordAssigned = searchSource.ActionKeyword == SearchSourceGlobalPluginWildCardSign ? string.Empty : searchSource.ActionKeyword, | |||
Score = score, | |||
PreviewPanel = new Lazy<UserControl>(() => new PreviewPanel(searchSource.Url.Replace("{q}", Uri.EscapeDataString(keyword)))), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using Custom Panel with query
@@ -0,0 +1,32 @@ | |||
<UserControl |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Preview Panel
{ | ||
public string Url { get; set; } | ||
|
||
public PreviewPanel(string url) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sample Preview Panel
This is the code that tao was worked with Preview Panel.
(I did a backup to use this code later, I finally found a backup)
Except for the code used in plugin, it is included in image preview PR.
This means that you can create a separate custom preview like this if you need to.
You don't need to check all file changed. I added comment usable part. (3 files)
You can test with websearch plugin. (works well wikipedia)