regular update

This commit is contained in:
qianlifeng
2013-12-23 23:53:38 +08:00
parent fffb97ea8d
commit 87225e64fa
15 changed files with 136 additions and 42 deletions

View File

@@ -4,9 +4,6 @@ using WinAlfred.Plugin;
namespace WinAlfred
{
/// <summary>
/// Result.xaml 的交互逻辑
/// </summary>
public partial class ResultPanel : UserControl
{
public delegate void ResultItemsChanged();
@@ -26,7 +23,7 @@ namespace WinAlfred
{
Result result = results[i];
ResultItem control = new ResultItem(result);
control.SetIndex(i+1);
control.SetIndex(i + 1);
pnlContainer.Children.Add(control);
}
@@ -39,7 +36,7 @@ namespace WinAlfred
if (resultItem != null)
resultItemHeight = resultItem.ActualHeight;
}
Height = pnlContainer.Height = results.Count * resultItemHeight;
pnlContainer.Height = results.Count * resultItemHeight;
OnResultItemChangedEvent();
}
@@ -118,4 +115,4 @@ namespace WinAlfred
InitializeComponent();
}
}
}
}