小编the*_*eXs的帖子

在phone7中打开一个项目文件

你好,我在VisualStudio中有一个项目,它在根节点下面包含一个'xmlfiles'文件夹.这个文件夹包含一个文件'mensen.xml',我尝试打开它...

但是,当我尝试打开该文件时,调试器会介入并抛出异常.

我试过了 if(File.Exists(@"/xmlfiles/mensen.xml") ) { bool exists = true; } as well as:

        FileStream fs = File.Open("/xmlfiles/mensen.xml", FileMode.Open);            
        TextReader textReader = new StreamReader(fs);
        kantinen = (meineKantinen)deserializer.Deserialize(textReader);
        textReader.Close();
Run Code Online (Sandbox Code Playgroud)

if(File.Exists(@"/xmlfiles/mensen.xml") ) { bool exists = true; } as well as:

        FileStream fs = File.Open("/xmlfiles/mensen.xml", FileMode.Open);            
        TextReader textReader = new StreamReader(fs);
        kantinen = (meineKantinen)deserializer.Deserialize(textReader);
        textReader.Close();
Run Code Online (Sandbox Code Playgroud)

Nothin正在工作:(.如何在Phone7模拟器中打开本地文件?

windows-phone-7

4
推荐指数
1
解决办法
2292
查看次数

ActionBar Sherlock - Actionbar中的Backgroundimage

我想设置一个BackgroundImage到我用"ActionBar Sherlock"库导入的ActionBar.但是,我无法在互联网上找到任何关于如何用XML明确设置BackgroundImage的链接.

这里有人有提示他可以给我:)?

android actionbarsherlock

3
推荐指数
1
解决办法
3273
查看次数

PushPin中的自定义模板

你好,我想在地图上的单独图层上生成多个图钉位置.那些PushPins应代表这个坐标的位置.因此,一旦用户点击/触摸图钉,它们应该显示一些应该是可见的附加信息.

整个解决方案仅基于代码(添加图钉).

我已经在sa了,我应该在图钉后面放一个看不见的按钮 - 但我不太确定我应该怎么做.

如果有人有提示会让我前进,那就太好了!

谢谢

    <DataTemplate x:Key="PushpinControlTemplate2">
    <Grid x:Name="ContentGrid">
        <StackPanel Orientation="Vertical">

            <Grid Background="{TemplateBinding Background}"
                                        HorizontalAlignment="Left"
                                        MinHeight="10"
                                        MinWidth="29">
                <Hyperlinkbutton HorizontalAlignment="Center" Content="{binding}" Click="clicker" Margin="0"/>
            </Grid>

            <Polygon Fill="{TemplateBinding Background}"
                                 Points="0,0 29,0 0,29"
                                 Width="29"                             
                                 Height="29"
                                 HorizontalAlignment="Left"/>
        </StackPanel>
    </Grid>
</DataTemplate>
Run Code Online (Sandbox Code Playgroud)

这是我到目前为止使用的代码,函数clicker已定义,但我总是错误'AG_E_PARSER_BAD_PROPERTY_VALUE [Line:5 Position:98]'

bing-maps windows-phone-7

2
推荐指数
1
解决办法
3072
查看次数

Greendroid或ActionbarSherlock - 设置

你们知道如何在windows上的eclipse中使用上述框架之一的任何教程吗?我已经下载了它们并遵循了说明 - 但在这两种情况下我仍然会遇到错误.Frustratin.

android greendroid actionbarsherlock

1
推荐指数
1
解决办法
5980
查看次数

TOGAF 参考模型 - 它们究竟是什么?

我目前正在阅读一本 TOGAF 书,我想到了一个问题 - TOGAF 9.1 提供的 2 TRM 是什么,它们的目的是什么,它们有何不同?

我目前的理论是,他们的目的是构建企业连续体,对吗?

提前致谢 :)。

architecture enterprise togaf

1
推荐指数
1
解决办法
1298
查看次数

2 ListFragment中的刷新问题

我的ListFragment有两个问题:我想点击我在XML文件中定义的按钮后刷新ListFragment.我最初在TitlesFragment中的AsyncTask中加载DataAdapter的数据.

我还没有找到一种方法来创建可以访问AsyncTask的按钮的代码 - 并刷新我的TitlesFragment

另一方面:每当我改变手机的方向时,Listfragment就会自动更新,这绝对不是理想的行为.

public class ClosestPlaces extends FragmentActivity {

private static KantinenListe kantinen;



@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    requestWindowFeature(Window.FEATURE_ACTION_BAR);        
    setContentView(R.layout.kantinen_results);

}   

/**
 * This is the "top-level" fragment, showing a list of items that the
 * user can pick.  Upon picking an item, it takes care of displaying the
 * data to the user as appropriate based on the currrent UI layout.
 */

public static class TitlesFragment extends ListFragment {
    boolean mDualPane;
    int mCurCheckPosition = 0; …
Run Code Online (Sandbox Code Playgroud)

android android-fragments

0
推荐指数
1
解决办法
3260
查看次数