This commit is contained in:
Tomi Paananen 2013-05-14 15:35:01 +03:00
Родитель ec54f453a5
Коммит f43627e41c
6 изменённых файлов: 48 добавлений и 40 удалений

Двоичные данные
HardwareInfo/Bin/Debug/HardwareInfo_Debug_AnyCPU.xap Normal file

Двоичный файл не отображается.

Просмотреть файл

@ -121,7 +121,6 @@
</Page>
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
<None Include="Properties\AppManifest.xml" />
<None Include="Properties\WMAppManifest.xml">
<SubType>Designer</SubType>
@ -156,11 +155,6 @@
<Content Include="Assets\Tiles\IconicTileSmall.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="README_FIRST.txt" />
<Content Include="Toolkit.Content\ApplicationBar.Cancel.png" />
<Content Include="Toolkit.Content\ApplicationBar.Check.png" />
<Content Include="Toolkit.Content\ApplicationBar.Delete.png" />
<Content Include="Toolkit.Content\ApplicationBar.Select.png" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Resources\AppResources.resx">

Просмотреть файл

@ -60,11 +60,10 @@
<!--TitlePanel 包含应用程序的名称和页标题-->
<!--TitlePanel contains the name of the application and page title-->
<StackPanel Grid.Row="0" Margin="12,17,0,28">
<TextBlock
Text="{Binding Path=LocalizedResources.ApplicationTitle,
Source={StaticResource LocalizedStrings}}"
Style="{StaticResource PhoneTextNormalStyle}"
/>
<TextBlock>
<Run Text="{Binding Path=LocalizedResources.ApplicationTitle, Source={StaticResource LocalizedStrings}}" />
<Run Text="{Binding Path=LocalizedResources.VersionNumberString, Source={StaticResource LocalizedStrings}}" />
</TextBlock>
</StackPanel>
<ProgressBar
@ -169,123 +168,123 @@
<Image
Grid.Row="5"
Grid.Column="0"
Source="{Binding Path=FrontCameraExists, Converter={StaticResource IconUriConverter}}"
Source="{Binding Path=FMRadioExists, Converter={StaticResource IconUriConverter}}"
/>
<TextBlock
Grid.Row="5"
Grid.Column="1"
Style="{StaticResource ListItemTextBlockStyle}"
Text="{Binding LocalizedResources.FMRadio, Mode=OneWay, Source={StaticResource LocalizedStrings}}"
/>
<Image
Grid.Row="6"
Grid.Column="0"
Source="{Binding Path=FrontCameraExists, Converter={StaticResource IconUriConverter}}"
/>
<TextBlock
Grid.Row="6"
Grid.Column="1"
Style="{StaticResource ListItemTextBlockStyle}"
Text="{Binding LocalizedResources.FrontCamera, Mode=OneWay, Source={StaticResource LocalizedStrings}}"
/>
<Image
Grid.Row="6"
Grid.Row="7"
Grid.Column="0"
Source="{Binding Path=FrontCameraFlashExists, Converter={StaticResource IconUriConverter}}"
/>
<TextBlock
Grid.Row="6"
Grid.Row="7"
Grid.Column="1"
Style="{StaticResource ListItemTextBlockStyle}"
Text="{Binding LocalizedResources.FrontCameraFlash, Mode=OneWay, Source={StaticResource LocalizedStrings}}"
/>
<Image
Grid.Row="7"
Grid.Row="8"
Grid.Column="0"
Source="{Binding Path=GyroscopeExists, Converter={StaticResource IconUriConverter}}"
/>
<TextBlock
Grid.Row="7"
Grid.Row="8"
Grid.Column="1"
Style="{StaticResource ListItemTextBlockStyle}"
Text="{Binding LocalizedResources.Gyroscope, Mode=OneWay, Source={StaticResource LocalizedStrings}}"
/>
<Image
Grid.Row="8"
Grid.Row="9"
Grid.Column="0"
Source="{Binding Path=InclinometerExists, Converter={StaticResource IconUriConverter}}"
/>
<TextBlock
Grid.Row="8"
Grid.Row="9"
Grid.Column="1"
Style="{StaticResource ListItemTextBlockStyle}"
Text="{Binding LocalizedResources.Inclinometer, Mode=OneWay, Source={StaticResource LocalizedStrings}}"
/>
<Image
Grid.Row="9"
Grid.Row="10"
Grid.Column="0"
Source="{Binding Path=MotionApiAvailable, Converter={StaticResource IconUriConverter}}"
/>
<TextBlock
Grid.Row="9"
Grid.Row="10"
Grid.Column="1"
Style="{StaticResource ListItemTextBlockStyle}"
Text="{Binding LocalizedResources.MotionApi, Mode=OneWay, Source={StaticResource LocalizedStrings}}"
/>
<Image
Grid.Row="10"
Grid.Row="11"
Grid.Column="0"
Source="{Binding Path=OrientationSensorExists, Converter={StaticResource IconUriConverter}}"
/>
<TextBlock
Grid.Row="10"
Grid.Row="11"
Grid.Column="1"
Style="{StaticResource ListItemTextBlockStyle}"
Text="{Binding LocalizedResources.OrientationSensor, Mode=OneWay, Source={StaticResource LocalizedStrings}}"
/>
<Image
Grid.Row="11"
Grid.Row="12"
Grid.Column="0"
Source="{Binding Path=ProximityExists, Converter={StaticResource IconUriConverter}}"
/>
<TextBlock
Grid.Row="11"
Grid.Row="12"
Grid.Column="1"
Style="{StaticResource ListItemTextBlockStyle}"
Text="{Binding LocalizedResources.NFC, Mode=OneWay, Source={StaticResource LocalizedStrings}}"
/>
<Image
Grid.Row="12"
Grid.Row="13"
Grid.Column="0"
Source="{Binding Path=SDCardExists, Converter={StaticResource IconUriConverter}}"
/>
<TextBlock
Grid.Row="12"
Grid.Row="13"
Grid.Column="1"
Style="{StaticResource ListItemTextBlockStyle}"
Text="{Binding LocalizedResources.SDCard, Mode=OneWay, Source={StaticResource LocalizedStrings}}"
/>
<Image
Grid.Row="13"
Grid.Row="14"
Grid.Column="0"
Source="{Binding Path=VibrationDeviceExists, Converter={StaticResource IconUriConverter}}"
/>
<TextBlock
Grid.Row="13"
Grid.Row="14"
Grid.Column="1"
Style="{StaticResource ListItemTextBlockStyle}"
Text="{Binding LocalizedResources.VibrationDevice, Mode=OneWay, Source={StaticResource LocalizedStrings}}"
/>
<Image
Grid.Row="14"
Grid.Column="0"
Source="{Binding Path=FMRadioExists, Converter={StaticResource IconUriConverter}}"
/>
<TextBlock
Grid.Row="14"
Grid.Column="1"
Style="{StaticResource ListItemTextBlockStyle}"
Text="{Binding LocalizedResources.FMRadio, Mode=OneWay, Source={StaticResource LocalizedStrings}}"
/>
</Grid>
</ScrollViewer>
</Grid>

9
HardwareInfo/Resources/AppResources.Designer.cs сгенерированный
Просмотреть файл

@ -240,6 +240,15 @@ namespace HardwareInfo.Resources {
}
}
/// <summary>
/// Looks up a localized string similar to 1.0.
/// </summary>
public static string VersionNumberString {
get {
return ResourceManager.GetString("VersionNumberString", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Vibration device.
/// </summary>

Просмотреть файл

@ -182,4 +182,7 @@
<data name="FMRadio" xml:space="preserve">
<value>FM Radio</value>
</data>
<data name="VersionNumberString" xml:space="preserve">
<value>1.0</value>
</data>
</root>

Просмотреть файл

@ -182,4 +182,7 @@
<data name="FMRadio" xml:space="preserve">
<value>FM调频</value>
</data>
<data name="VersionNumberString" xml:space="preserve">
<value>1.0</value>
</data>
</root>