protected override void Initialize() { StateProvider.Register <Counter>(() => new CounterState(counterView)); }