mirror of
https://github.com/colhountech/DarkUI.Net5.git
synced 2025-07-17 10:06:13 +03:00
Added SelectedIndicesChanged even to DarkListView
This commit is contained in:
parent
fc4ba9e6be
commit
a1d21be928
@ -12,6 +12,12 @@ namespace DarkUI.Controls
|
|||||||
{
|
{
|
||||||
public class DarkListView : DarkScrollView
|
public class DarkListView : DarkScrollView
|
||||||
{
|
{
|
||||||
|
#region Event Region
|
||||||
|
|
||||||
|
public event EventHandler SelectedIndicesChanged;
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
#region Field Region
|
#region Field Region
|
||||||
|
|
||||||
private int _itemHeight = 20;
|
private int _itemHeight = 20;
|
||||||
@ -238,6 +244,9 @@ namespace DarkUI.Controls
|
|||||||
_selectedIndices.Clear();
|
_selectedIndices.Clear();
|
||||||
_selectedIndices.Add(index);
|
_selectedIndices.Add(index);
|
||||||
|
|
||||||
|
if (SelectedIndicesChanged != null)
|
||||||
|
SelectedIndicesChanged(this, null);
|
||||||
|
|
||||||
_anchoredItemStart = index;
|
_anchoredItemStart = index;
|
||||||
_anchoredItemEnd = index;
|
_anchoredItemEnd = index;
|
||||||
|
|
||||||
@ -258,6 +267,9 @@ namespace DarkUI.Controls
|
|||||||
_selectedIndices.Add(index);
|
_selectedIndices.Add(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (SelectedIndicesChanged != null)
|
||||||
|
SelectedIndicesChanged(this, null);
|
||||||
|
|
||||||
_anchoredItemStart = list[list.Count - 1];
|
_anchoredItemStart = list[list.Count - 1];
|
||||||
_anchoredItemEnd = list[list.Count - 1];
|
_anchoredItemEnd = list[list.Count - 1];
|
||||||
|
|
||||||
@ -314,6 +326,9 @@ namespace DarkUI.Controls
|
|||||||
_anchoredItemEnd = index;
|
_anchoredItemEnd = index;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (SelectedIndicesChanged != null)
|
||||||
|
SelectedIndicesChanged(this, null);
|
||||||
|
|
||||||
Invalidate();
|
Invalidate();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -335,6 +350,9 @@ namespace DarkUI.Controls
|
|||||||
_selectedIndices.Add(i);
|
_selectedIndices.Add(i);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (SelectedIndicesChanged != null)
|
||||||
|
SelectedIndicesChanged(this, null);
|
||||||
|
|
||||||
Invalidate();
|
Invalidate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user