Skip to content
Open
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/Shared/HandyControl_Shared/Controls/Carousel/Carousel.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
Expand Down Expand Up @@ -190,8 +190,13 @@ public int PageIndex
else
_pageIndex = value;
UpdatePageButtons(_pageIndex);
PageIndexChanged?.Invoke(this, _pageIndex);
}
}
/// <summary>
/// 页码改变事件
/// </summary>
public EventHandler<int> PageIndexChanged;

/// <summary>
/// 计时器开关
Expand Down Expand Up @@ -372,7 +377,7 @@ private void InsertItem(int index, object item)
_entryDic[item] = element;
ItemsHost.Children.Insert(index, element);

if (IsLoaded && !_isRefresh && _itemsSourceInternal != null)
if (!_isRefresh && _itemsSourceInternal != null)
{
Items.Insert(index, item);
}
Expand Down