Отлить дата в XAMLC#

Место общения программистов C#
Anonymous
Отлить дата в XAML

Сообщение Anonymous »

У меня возникают проблемы с установкой данных дата для сборщика, поскольку свойство - это интерфейс, который не подвергается источнику.
< /code>
CurrentDevice - это свойство в GpsViewModel:
public class GPSViewModel
{
public IDevice CurrentDevice {get; set;}
}
< /code>
In IDevice, there is not a BaudRateSource or BaudRate property. Instead, these properties are in SerialDevice class which implements IDevice.
Is it possible to cast IDevice to SerialDevice in the xaml code (or another way to accomplish what I need)? Something similar to this:




/ContentPage>


Подробнее здесь: https://stackoverflow.com/questions/797 ... pe-in-xaml

Вернуться в «C#»