Skip to content

Commit

Permalink
backport changes
Browse files Browse the repository at this point in the history
  • Loading branch information
LoneWandererProductions committed Dec 30, 2023
1 parent eece8d4 commit 89bd4cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CommonControls/Thumbnails.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ private void LoadImages()

//Handle some special cases
if (ThumbCellSize == 0) ThumbCellSize = 100;
if (ThumbHeight == 0) ThumbHeight = 1;
if (ThumbHeight == 0 && ThumbLength == 0) ThumbHeight = 1;

//here we are especial clever, if we add the Height in the Designer we can generate a custom Length
//catch on reload
Expand Down Expand Up @@ -350,14 +350,14 @@ private void LoadImages()
Keys.Add(images.Name, key);
ImageDct.Add(images.Name, images);
images.MouseDown += ImageClick_MouseDown;
if (SelectBox) images.MouseRightButtonDown += ImageClick_MouseRightButtonDown;

//Add Image to Canvas
_ = myCanvas.Children.Add(images);

//add an overlay here to get a selection frame
if (SelectBox)
{
images.MouseRightButtonDown += ImageClick_MouseRightButtonDown;
var checkbox = new CheckBox();
checkbox.Checked += CheckBox_Checked;
checkbox.Unchecked += CheckBox_Unchecked;
Expand Down

0 comments on commit 89bd4cb

Please sign in to comment.