// This file has been autogenerated from a class added in the UI designer.

using System;
using MvvmCross.Platforms.Mac.Presenters.Attributes;
using MvvmCross.Platforms.Mac.Views;
using ObjCRuntime;
using Playground.Core.ViewModels;

namespace Playground.Mac
{
    [MvxFromStoryboard("Main")]
    [MvxContentPresentation]
    public partial class ChildView : MvxViewController<ChildViewModel>
    {
        public ChildView(NativeHandle handle) : base(handle)
        {
            Title = "Child view";
        }

        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            var set = CreateBindingSet();
            set.Bind(btnRoot).To(vm => vm.ShowRootCommand);
            set.Apply();
        }
    }
}
