Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
private: System::Void pictureBox1_DragEnter(Object *sender, DragEventArgs *e)
{
e->Effect = DragDropEffects::Copy;
}
private: System::Void pictureBox1_DragDrop(Object *sender, DragEventArgs *e)
{
if (e->Data->GetDataPresent(DataFormats::FileDrop))
{
Object *object = e->Data->GetData(DataFormats::FileDrop);
Array *array = (__try_cast<Array *> (object) );
String *file = (__try_cast<String *>(array->GetValue(0)));
this->pictureBox1->Image = new System::Drawing::Bitmap(file);
}
}