The following code example demonstrate the use of emoticon and emoticons classes. 
#include <xtd/xtd>
 
using namespace std;
 
int main() {
  auto main_form = control::create<form>("Emoticons example");
  main_form->client_size({500, 400}).
padding(10);
 
  
  auto emoticon_label = control::create<label>(*main_form);
 
  auto emoticons_list_box = control::create<list_box>(*main_form);
  emoticons_list_box->dock(dock_style::left).width(200);
  for (
const auto& 
emoticon : emoticons::get_emoticons())
 
  emoticons_list_box->selected_value_changed += [&] {
    emoticon_label->text(any_cast<emoticon>(emoticons_list_box->selected_item().tag()).to_string());
  };
  emoticons_list_box->selected_index(0);
  
  application::run(*main_form);
}
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17