Restored XAML and codebehind