Saturday 16 July 2016

Drag select - Right way , Wrong way, Both from Microsoft

When you select UI objects from the Designer screens. many time we feel the difficulty for precisely selecting the UI items excluding the ones we don't want to get selected. 

Across different tools from different vendors, Selection tool logic works differently.  

1. Drag selecting in Power Point:
unless all 4 points are covered, the select tool will not select the particular UI. 



Fig1.1
 I'm drag selecting object 3, but the select tool is touching over 1,3,4 items also.  It has nil effect on the final selection.  Only object 3 is selected. (Below)



Fig1.2 Selected Object3.

2. Drag selection in WPF designer 
I try to select the middle object by dragging 
Fig2.1 I'm drag selecting object 2 alone, but just because the select tool touches Ob1 & 2, and the outer frame, check how the designer is behaving (Below)


Fig.2.2 Selects the whole screen!

Funny thing is , it selects the other two items, along with the ENTIRE GRID at the bg.  because it's working based on Edge tracing. Even if one pixel comes under the drag select from any where in the UI object, it's picked for selection.



Both Power point & WPF is from the same company.Don't know why WPF designer is kept the painful way. May be there's an option to change this behavior? If at all it's there, it's still wrong to keep the default behavior , the painful way.