Я думаю, что это лучший ответ:
public static double StringToDouble(string toDouble)
{
toDouble = toDouble.Replace(",", "."); //Replace every comma with dot
//Count dots in toDouble, and if there is more than one dot, throw an exception.
//Value such as "123.123.123" can't be converted to double
int dotCount = 0;
foreach (char c in toDouble) if (c == '.') dotCount++; //Increments dotCount for each dot in toDouble
if (dotCount > 1) throw new Exception(); //If in toDouble is more than one dot, it means that toCount is not a double
string left = toDouble.Split('.')[0]; //Everything before the dot
string right = toDouble.Split('.')[1]; //Everything after the dot
int iLeft = int.Parse(left); //Convert strings to ints
int iRight = int.Parse(right);
//We must use Math.Pow() instead of ^
double d = iLeft + (iRight * Math.Pow(10, -(right.Length)));
return d;
}
К счастью для вас, отрывок и набросок UWP поддерживает это с помощью глубокого связывания и неясного обработчика протокола.
var theURI = encodeURI("ms-screenclip:source=\"cortana\"");
var msg = new builder.Message(session)
.text("Taking a screenshot ")
.speak("Taking a screenshot ")
.sourceEvent(
{
cortana: {
action: {
type: "LaunchUri",
uri: theURI
}
}
});
Инструменты типа «Ножницы» не работают. Однако, если вы видите «prtScrn» на клавиатуре и нажмите его. BMP вашего рабочего стола будет скопирован в буфер обмена, где вы можете открыть «Paint» и «Вставить».
Если у вас нет кнопки prtScrn, нажмите клавишу WIndows и введите «экранную клавиатуру». Там вы увидите кнопку prtscn, которую сможете использовать.
Если это поверхность, используйте FN + пробел.
Или, вы всегда можете скачать snaggit и использовать его или функцию отложенного скриншота.