From 288b46947df9d80496b899375cc3f7d3cfeb46e4 Mon Sep 17 00:00:00 2001 From: qianlifeng Date: Thu, 20 Mar 2014 19:12:26 +0800 Subject: [PATCH] Limit the display result item to 6 at most. --- Wox/ResultPanel.xaml | 4 +++- Wox/ResultPanel.xaml.cs | 7 +++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Wox/ResultPanel.xaml b/Wox/ResultPanel.xaml index b57540be80..66860283d6 100644 --- a/Wox/ResultPanel.xaml +++ b/Wox/ResultPanel.xaml @@ -11,7 +11,8 @@ - + + @@ -20,6 +21,7 @@ + diff --git a/Wox/ResultPanel.xaml.cs b/Wox/ResultPanel.xaml.cs index af601c9883..1afa90061e 100644 --- a/Wox/ResultPanel.xaml.cs +++ b/Wox/ResultPanel.xaml.cs @@ -6,6 +6,7 @@ using System.Windows.Controls; using System.Windows.Forms; using System.Windows.Input; using System.Windows.Media; +using System.Windows.Media.Animation; using Wox.Helper; using Wox.Infrastructure; using Wox.Plugin; @@ -42,6 +43,12 @@ namespace Wox SelectFirst(); } + public void AnimateListBoxResultChange() + { + //todo: + var da = new DoubleAnimation(lbResults.ActualHeight, ActualWidth + 100, new Duration(new TimeSpan(0, 0, 0, 0, 1600))); + } + private int GetInsertLocation(int currentScore) { int location = lbResults.Items.Count;