Question: By default the next item in wp7 panorama bleeds into the currently selected panorama item by a few pixels and I would like to show a bit more of the next item.

Is there a way to control the amount of pixels? I tried setting margins and paddings and tried editing the controlTemplate, but had no success.

Answer: 
You are confusing virtual functions calls and overload resolution.

All derived classes have vtables containing all virtual functions, from the base class and any additional own virtual functions. This is used to resolve calls at **runtime**, like in your case 2).

In case 1) you get an error from overload resolution at **compile time**. Due to name hiding, class `Derived` only has one callable function. Your only choice is to call that function, with an `int*`.
You want to override overloaded function but hiding rules don't work like this.

"The hiding rule says that an entity in an inner scope hides things with the same name in an outer scope."

Note, it is irrelevant that it has different signature i.e. `gogo(int* a)` will hide all `gogo(whatever)` functions from the Base. Overriding occurs only when your functions have same name, same signatures and virtual (so, only `gogo(int* a)` will be overrided).

The C++FAQ book suggest to use "non-virtual overloads that call non-overloaded virtuals." (chapter 29.05). Basically you create non-virtual overloaded functions in base class:

`gogo(int a) and gogo(int* a)`

which will call virtual functions respectively:

> 
> virtual gogo\_i(int a) and virtual gogo\_pi(int\* a)
> 
> 
> 

And override this virtuals in Derived class.