fixed #613
This commit is contained in:
1 parent
ac1eb7b770
commit
630f888fbe
1 file changed
+6
@@ -136,6 +136,8 @@ namespace HandyControl.Controls
|
|||||||
|
|
||||||
private void SortByCategory(object sender, ExecutedRoutedEventArgs e)
|
private void SortByCategory(object sender, ExecutedRoutedEventArgs e)
|
||||||
{
|
{
|
||||||
|
if (_dataView == null) return;
|
||||||
|
|
||||||
using (_dataView.DeferRefresh())
|
using (_dataView.DeferRefresh())
|
||||||
{
|
{
|
||||||
_dataView.GroupDescriptions.Clear();
|
_dataView.GroupDescriptions.Clear();
|
||||||
@@ -148,6 +150,8 @@ namespace HandyControl.Controls
|
|||||||
|
|
||||||
private void SortByName(object sender, ExecutedRoutedEventArgs e)
|
private void SortByName(object sender, ExecutedRoutedEventArgs e)
|
||||||
{
|
{
|
||||||
|
if (_dataView == null) return;
|
||||||
|
|
||||||
using (_dataView.DeferRefresh())
|
using (_dataView.DeferRefresh())
|
||||||
{
|
{
|
||||||
_dataView.GroupDescriptions.Clear();
|
_dataView.GroupDescriptions.Clear();
|
||||||
@@ -158,6 +162,8 @@ namespace HandyControl.Controls
|
|||||||
|
|
||||||
private void SearchBar_SearchStarted(object sender, FunctionEventArgs<string> e)
|
private void SearchBar_SearchStarted(object sender, FunctionEventArgs<string> e)
|
||||||
{
|
{
|
||||||
|
if (_dataView == null) return;
|
||||||
|
|
||||||
_searchKey = e.Info;
|
_searchKey = e.Info;
|
||||||
if (string.IsNullOrEmpty(_searchKey))
|
if (string.IsNullOrEmpty(_searchKey))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user