CARVIEW |
Select Language
HTTP/2 200
date: Sun, 12 Oct 2025 05:41:20 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=f5fed536f82db40be70eb58c087f856cb3895739b8a09812e56bd6405c50fd97a%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%2205ioXogxoS_hj8NN_0AdVljWOt-ls7Cs%22%3B%7D; HttpOnly; Path=/
cf-ray: 98d4447f0e5b20c5-BLR
MainPage.* - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //MainPage.idl
- namespace NOVAStudent
- {
- [default_interface]
- runtimeclass MainPage : Windows.UI.Xaml.Controls.Page
- {
- MainPage();
- Windows.Foundation.IAsyncAction on_myButton_clicked();
- }
- }
- //MainPage.xaml
- <Page
- x:Class="NOVAStudent.MainPage"
- xmlns="https://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="https://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:local="using:NOVAStudent"
- xmlns:d="https://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="https://schemas.openxmlformats.org/markup-compatibility/2006"
- mc:Ignorable="d">
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
- <Button x:Name="myButton" Click="on_myButton_clicked">Click Me</Button>
- </StackPanel>
- </Page>
- //MainPage.h
- #pragma once
- #include "MainPage.g.h"
- namespace winrt::NOVAStudent::implementation
- {
- struct MainPage : MainPageT<MainPage>
- {
- MainPage();
- IAsyncAction on_myButton_clicked(Windows::Foundation::IInspectable const& /*sender*/, Windows::UI::Xaml::RoutedEventArgs const& /*args*/);
- };
- }
- //ConnectTask.h
- #pragma once
- #include "pch.h"
- using namespace winrt::Windows::Foundation;
- namespace Tasks
- {
- class ConnectTask
- {
- public:
- static IAsyncOperation<bool> RunAsync()
- {
- co_await resume_background();
- return false;
- }
- };
- }
- //MainPage.cpp
- #include "pch.h"
- #include "MainPage.h"
- #include "MainPage.g.cpp"
- #include "ConnectTask.h"
- using namespace winrt;
- using namespace Windows::UI::Xaml;
- using namespace Tasks;
- namespace winrt::NOVAStudent::implementation
- {
- MainPage::MainPage()
- {
- InitializeComponent();
- }
- IAsyncAction MainPage::on_myButton_clicked(IInspectable const&, RoutedEventArgs const&)
- {
- myButton().Content(box_value(co_await ConnectTask::RunAsync() ? L"Not connected" : L"Connected"));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
-
✅ Make $2500 in 20 minutes⭐⭐⭐ D
JavaScript | 8 sec ago | 0.25 KB
-
⭐✅ Marketplace Glitch ✅ Working ✅ NEVER SEEN...
JavaScript | 36 sec ago | 0.25 KB
-
📌 Swapzone +37% glitch
JavaScript | 42 sec ago | 0.24 KB
-
✅⭐ Make huge profits on trading ⭐⭐ 9
JavaScript | 45 sec ago | 0.25 KB
-
⭐✅ Exploit 2500$ in 15 Minutes⭐⭐⭐ Y
JavaScript | 46 sec ago | 0.25 KB
-
💵 Make 3000$ in 20 minutes 💵
JavaScript | 52 sec ago | 0.24 KB
-
⭐✅ Marketplace Glitch ✅ Working ✅ NEVER SEEN...
JavaScript | 53 sec ago | 0.25 KB
-
Free Crypto Method (NEVER SEEN BEFORE)⭐⭐ A
JavaScript | 55 sec ago | 0.25 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand