Question: I have a tab control with draggable tabs. When the mouse is released it removes the selected tab from the tabControl and adds it to its new location. My problem is that the TabControl draws itself after removing the tab, and then again when adding the tab so there is a very noticeable flicker that shows the tab behind the tab being moved.

Is there a way I can pause the UI thread so the tab control does not redraw until both the Remove and the Insert operations finish? Or perhaps some other alternative way of rearranging the tab items? The Drag/Drop operation exists in a separate code file as an Attached Property

Answer: 
I actually encountered this in code I was doing. Basically it was the "If it looks like a duck and if it sounds like a duck, then why the bloody *insert expletive here* aren't you seeing it as a duck?" situation. I changed the equivalent of android:id="@+id/someid" by changing it to equivalent of android:id="@+id/someid\_x" (don't forget to do this in Java as well) and everything worked like clockwork again. 

So, in my situation, I believe that there might have been an ID out there referencing another object in the R table, and it was getting the wrong or unintended item. The strangest thing is that it started to happen when put a set of views into a RelativeLayout
Check if you have missed this line

 `import android.view.View;`