private void AskRenameDeviceButton_Click(object sender, RoutedEventArgs e)
        {
            var particleDevice = GetParticleDeviceFromControl(sender);

            if (particleDevice == null)
            {
                return;
            }

            var listViewItem = (ListViewItem)DeviceListBox.ContainerFromItem(particleDevice);

            FlyoutHelper.AskRenameDevice(particleDevice, this, listViewItem);
        }
Beispiel #2
0
 private void AskRenameDeviceButton_Click(object sender, RoutedEventArgs e)
 {
     FlyoutHelper.AskRenameDevice(particleDevice, this, (FrameworkElement)sender);
 }