Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
79 changes: 0 additions & 79 deletions enc_temp_folder/1833592448cd2768ab9e3cba28aa33/MainWindow.xaml.cpp

This file was deleted.

This file was deleted.

75 changes: 0 additions & 75 deletions enc_temp_folder/c3545e6cd3c76d8eb39ef886a3f8ca/MainWindow.xaml.cpp

This file was deleted.

73 changes: 39 additions & 34 deletions vertical_tasks/App.xaml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,45 +2,50 @@

#include "App.xaml.h"
#include "MainWindow.xaml.h"
#include <microsoft.ui.xaml.window.h>

using namespace winrt;
using namespace Windows::Foundation;
using namespace Microsoft::UI::Xaml;
using namespace Microsoft::UI::Xaml::Controls;
using namespace Microsoft::UI::Xaml::Navigation;
using namespace vertical_tasks;
using namespace vertical_tasks::implementation;

// To learn more about WinUI, the WinUI project structure,
// and more about our project templates, see: http://aka.ms/winui-project-info.
namespace winrt
{
using namespace Windows::Foundation;
using namespace Microsoft::UI::Xaml;
using namespace Microsoft::UI::Xaml::Controls;
using namespace Microsoft::UI::Xaml::Navigation;
using namespace vertical_tasks;
}

/// <summary>
/// Initializes the singleton application object. This is the first line of authored code
/// executed, and as such is the logical equivalent of main() or WinMain().
/// </summary>
App::App()
namespace winrt::vertical_tasks::implementation
{
InitializeComponent();
// To learn more about WinUI, the WinUI project structure,
// and more about our project templates, see: http://aka.ms/winui-project-info.

#if defined _DEBUG && !defined DISABLE_XAML_GENERATED_BREAK_ON_UNHANDLED_EXCEPTION
UnhandledException([this](IInspectable const&, UnhandledExceptionEventArgs const& e)
/// <summary>
/// Initializes the singleton application object. This is the first line of authored code
/// executed, and as such is the logical equivalent of main() or WinMain().
/// </summary>
App::App()
{
if (IsDebuggerPresent())
{
auto errorMessage = e.Message();
__debugbreak();
}
});
InitializeComponent();

#if defined _DEBUG && !defined DISABLE_XAML_GENERATED_BREAK_ON_UNHANDLED_EXCEPTION
UnhandledException([this](winrt::IInspectable const&, winrt::UnhandledExceptionEventArgs const& e)
{
if (IsDebuggerPresent())
{
auto errorMessage = e.Message();
__debugbreak();
}
});
#endif
}
}

/// <summary>
/// Invoked when the application is launched normally by the end user. Other entry points
/// will be used such as when the application is launched to open a specific file.
/// </summary>
/// <param name="e">Details about the launch request and process.</param>
void App::OnLaunched(LaunchActivatedEventArgs const&)
{
window = make<MainWindow>();
window.Activate();
/// <summary>
/// Invoked when the application is launched normally by the end user. Other entry points
/// will be used such as when the application is launched to open a specific file.
/// </summary>
/// <param name="e">Details about the launch request and process.</param>
void App::OnLaunched(winrt::LaunchActivatedEventArgs const&)
{
window = winrt::make<winrt::vertical_tasks::implementation::MainWindow>();
window.Activate();
}
}
15 changes: 13 additions & 2 deletions vertical_tasks/MainWindow.idl
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
namespace vertical_tasks
{
[default_interface]
runtimeclass TaskVM : Windows.UI.Xaml.Data.INotifyPropertyChanged
{
TaskVM(UInt64 hwnd);
String Title{ get; };
Microsoft.UI.Xaml.Controls.IconSource IconSource{ get; };

void Select();
void Close();

}

[default_interface]
runtimeclass MainWindow : Microsoft.UI.Xaml.Window
{
MainWindow();
Int32 MyProperty;
Windows.Foundation.Collections.IObservableVector<IInspectable> WindowTitles{ get; };
Windows.Foundation.Collections.IObservableVector<Object> Tasks{ get; };
}
}
Loading