Proximity app code in XAML