我在通用 Windows 平台 (UWP) 上制作 OBD 扫描仪 它现在有油位和空气温度的假读数现在它只是读取文本,但我想让它读取径向仪表
有人可以告诉我怎么做吗?这是我的个人项目,所以我很感激帮助
我试图添加的径向仪表:https ://docs.microsoft.com/en-us/windows/communitytoolkit/controls/radialgauge
我的 Xaml 页面,以便您可以对其进行更改或至少看看我在说什么:
<Page
x:Class="StandaloneEngineReadoutSystem.UwpApp.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:StandaloneEngineReadoutSystem.UwpApp"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
Loaded="Page_Loaded">
<StackPanel Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<TextBlock>Airtemperature</TextBlock>
<TextBlock Text="{Binding AirTemp}"></TextBlock>
<TextBlock>FuelLevel</TextBlock>
<TextBlock Text="{Binding FuelLevel}"></TextBlock>
</StackPanel>
提前谢谢大家!如果您需要更多信息,请告诉我!