Beispiel #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="RecentChatPage" /> class.
        /// </summary>
        public RecentChatPage()
        {
            InitializeComponent();
            var chatService    = App.Kernel.Get <IChatService>();
            var profileService = App.Kernel.Get <IProfileService>();

            BindingContext = new RecentChatViewModel(chatService, profileService, this);
        }
Beispiel #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="RecentChatPage" /> class.
        /// </summary>
        public RecentChatPage()
        {
            InitializeComponent();

            RecentChatViewModel vm = new RecentChatViewModel();

            vm.Navigation  = Navigation;
            BindingContext = vm;
        }