在metro风格的Windows 8应用程序中,如何使用类似于此的(https://dl.dropbox.com/u/59251888/img.png)图像的xaml显示数据.是否可以使用ListBox,ListView,GrdView ..?
我开发了一个简单的.net应用程序,该应用程序从Web上抓取一些数据并将其保存在一个文件中(该文件和proejct exe文件位于同一文件夹中)。
它在Windows上运行正常,但是当我在Mac上使用“单声道”运行它时,出现此错误
拒绝访问路径“ [path]”。
我正在使用Directory.GetCurrentDirectory创建对该文件的访问。
这是我正在使用的路径:
System.IO.Directory.GetCurrentDirectory() + "\\abc.csv";
Run Code Online (Sandbox Code Playgroud) 我GridView在windows 8 metro应用程序中使用分组,我有一个VariableSizedWrapGridin ItemsPanelTemplate,并且想要绑定MaximumRowsOrColumnsProperty,但它没有正确绑定.
这是我的XAML
<GridView ItemsSource="{Binding Source={StaticResource groupeddata}}" >
<GridView.ItemTemplate>
<DataTemplate>
<Grid Width="120" Height="150" >
<!--some controls here binded correctly.-->
</Grid>
</DataTemplate>
</GridView.ItemTemplate>
<GridView.GroupStyle>
<GroupStyle>
<GroupStyle.HeaderTemplate>
<DataTemplate>
<Grid Margin="1,0,0,6">
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding maxGridCoulmns}"></TextBlock>
<!--work ok here -->
<TextBlock Foreground="Black" Padding="0,0,0,20" Text="{Binding headerText}" />
</StackPanel>
</Grid>
</DataTemplate>
</GroupStyle.HeaderTemplate>
<GroupStyle.Panel >
<ItemsPanelTemplate>
<VariableSizedWrapGrid Orientation="Horizontal" MaximumRowsOrColumns="{Binding maxGridCoulmns}" Margin="0,0,80,0"/>
<!--not binding here -->
</ItemsPanelTemplate>
</GroupStyle.Panel>
</GroupStyle>
</GridView.GroupStyle>
</GridView>
Run Code Online (Sandbox Code Playgroud) 我在WP7应用程序中有页面,这个页面有一些文本和一些输入控件,如列表和文本框,有时当文本更多时,页面底部的控件消失.有没有办法在页面上显示滚动条,以便用户可以看到整个页面?
在我的WP 7应用程序中,我必须存储两种类型的图像和XML文件,
1:第一类文件在服务器上不经常更新,所以我想将它们永久存储在本地存储上,这样当应用程序启动时,它可以从本地存储访问这些文件,当这些文件在服务器上更新时,也会更新本地存储files.I希望在应用程序终止时不删除这些文件.
2:第二类文件是我想暂时保存在独立存储中的文件,例如应用程序从服务器请求XML文件,我将其存储在本地,下次如果应用程序请求相同文件而不是从服务器获取它从本地存储获取,并在应用程序终止时删除这些文件.
我怎样才能做到这一点 ?
谢谢
当我的应用程序第一次在Windows手机上启动时,我想从项目文件夹中获取一些文件(xml/images)并将它们写入隔离存储.
如何检测我的应用程序是否第一次运行?
如何访问项目文件夹中的文件?