Sample to create a PM based custom control.