如何在Windows Phone 8上突出显示新LongListSelector中的选定项?如果我点击列表中的一个条目,实际上没有任何事情发生.我的列表只包含一个简单的字符串,它将通过TextBlock显示.但我想强调用户的选择.
谢谢.
是否有一个列表,我可以在其中查找AppBarButtons的值?
如果我在查看StandardLayout.xaml,我发现了一些例子,比如说
<Style x:Key="ZoomOutButtonStyle" TargetType="Button" BasedOn="{StaticResource AppBarButtonStyle}">
<Setter Property="AutomationProperties.AutomationId" Value="ZoomOutButtonStyle"/>
<Setter Property="AutomationProperties.Name" Value="Zoom Out"/>
<Setter Property="Content" Value=""/>
</Style>
Run Code Online (Sandbox Code Playgroud)
是否有像这样的值的列表

Run Code Online (Sandbox Code Playgroud)
谢谢.
是否有可能在Windows Phone上获得操作系统的实际语言?我正在使用CultureInfo.CurrentCulture.TwoLetterIsoString,但我总是接受而不是正确的语言,这de在我的情况下.
那么如何才能在WinRT应用程序中获得实际语言?
我想为使用C#for WinRT的孩子制作一个简单的绘图应用程序.用户可以选择一张图片并画一点.但是如何保存图像(与背景一起)?没有用背景保存图像的功能.
我在我的C#应用程序中使用ScrollViewer,在这里使用GridView.不是可以放大和缩小,但在我的情况下,我不需要这个功能.如何禁用放大和缩小?
这是一个小问题:
<ScrollViewer VerticalScrollMode="Disabled" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Disabled" Grid.Row="1">
<GridView x:Name="Cards" Margin="4,0,0,0" ItemsSource="{Binding EmergencyCards}" ItemTemplate="{StaticResource EmergencyCardTemplate}"/>
</ScrollViewer>
Run Code Online (Sandbox Code Playgroud)
非常感谢!
我正在从资源加载器加载文本,其中包含 '\n' 来指示新行。文本块获取此文本并显示它,但我看不到换行符?我还尝试用 Environment.NewLine 替换每个 '\n',但没有任何反应。我能做些什么?
这是一些代码:
TextBlock text = new TextBlock();
text.FontSize = 18;
var str = loader.GetString("AboutText");
//str.Replace("\n", Environment.NewLine);
text.Text = str;
text.TextAlignment = TextAlignment.Justify;
text.TextWrapping = TextWrapping.Wrap;
text.Margin = new Thickness(10, 10, 10, 10);
Run Code Online (Sandbox Code Playgroud) 我想将这种格式的字符串"4/14/2013 1:04 PM"解析为DateTime对象.但实际上这不起作用,因为我收到类型'System.FormatException'的错误.如何解决问题并将我的DateTime字符串转换为DateTime对象?
谢谢.