summaryrefslogtreecommitdiff
path: root/tests/src/Interop/WinRT/NativeComponent/Component.Contracts.BindingProjectionsTesting.cpp
blob: 5c3236965e75cbd0376360b9c6d95b0af88f69b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#include "pch.h"
#include "Component.Contracts.BindingProjectionsTesting.h"
#include "Component.Contracts.BindingViewModel.h"
#include <winrt/Windows.UI.Xaml.Hosting.h>

namespace winrt::Component::Contracts::implementation
{
    Component::Contracts::IBindingViewModel BindingProjectionsTesting::CreateViewModel()
    {
        return make<BindingViewModel>();
    }

    Windows::Foundation::IClosable BindingProjectionsTesting::InitializeXamlFrameworkForCurrentThread()
    {
        return Windows::UI::Xaml::Hosting::WindowsXamlManager::InitializeForCurrentThread();
    }
}