mirror of
https://github.com/microsoft/terminal.git
synced 2026-04-21 21:51:51 +00:00
30 lines
720 B
C++
30 lines
720 B
C++
//
|
|
// ExtensionUserControl.xaml.cpp
|
|
// Implementation of the ExtensionUserControl class
|
|
//
|
|
|
|
#include "pch.h"
|
|
#include "ExtensionUserControl.xaml.h"
|
|
#include "ExtensionUserControl.g.cpp"
|
|
|
|
|
|
|
|
// The User Control item template is documented at https://go.microsoft.com/fwlink/?LinkId=234236
|
|
|
|
namespace winrt::ExtensionComponent::implementation
|
|
{
|
|
|
|
int32_t ExtensionUserControl::MyValue()
|
|
{
|
|
return _MyValue;
|
|
};
|
|
void ExtensionUserControl::MyValue(const int32_t& value)
|
|
{
|
|
if (_MyValue != value)
|
|
{
|
|
_MyValue = value;
|
|
_PropertyChanged(*this, winrt::Windows::UI::Xaml::Data::PropertyChangedEventArgs{ L"MyValue" });
|
|
}
|
|
};
|
|
}
|