private void Dispose(bool disposing) { if (Icon != null) { Icon.Dispose(); } if (IconHovered != null) { IconHovered.Dispose(); } if (IconSelected != null) { IconSelected.Dispose(); } if (TextureFrameHovered != null) { TextureFrameHovered.Dispose(); } if (TextureFrameSelected != null) { TextureFrameSelected.Dispose(); } if (Label != null) { Label.Dispose(); } }
private void OnItemClick(object sender, int iconPosition) { var eventArgs = new IconSelectedEventArgs(_itemPosition, _iconSource.List.ElementAt(iconPosition).Key); IconSelected?.Invoke(this, eventArgs); }
private void Icon_Click(object sender, MouseButtonEventArgs e) { var data = ((sender as Border).DataContext as IconInfo).Icon; IconSelected?.Invoke(this, data); }
private void OnItemClicked(object sender, int iconPosition) { var eventArgs = new IconSelectedEventArgs(_position, _iconView[iconPosition].Key); IconSelected?.Invoke(this, eventArgs); }