标签: designview

在xaml中设计datatemplate的时间数据

这可能是一个愚蠢的问题,但是可以将一些示例数据定义为DataContext,以便在DesignView中查看我的DataTemplate吗?

目前,我总是要运行我的应用程序,看看我的更改是否正常.

例如,使用以下代码,DesignView只显示一个空列表框:

 <ListBox x:Name="standardLayoutListBox" ItemsSource="{Binding myListboxItems}">
    <ListBox.ItemTemplate>
        <DataTemplate>
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition />
                    <RowDefinition />
                </Grid.RowDefinitions>
                <Label Grid.Column="0" Content="{Binding text1}" />
                <Label Grid.Column="1" Content="{Binding text2}" />
            </Grid>
        </DataTemplate>
    </ListBox.ItemTemplate>
</ListBox>
Run Code Online (Sandbox Code Playgroud)

wpf xaml datatemplate designview

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

Flash Builder 4.7商业应用程序 - 没有设计视图

我使用Flash Builder 4.6编写了一个大型的商业级移动应用程序.在iOS和Android设备上运行时效果很好.

我使用Flash Builder 4.6的试用版来开发此应用程序.我使用了FB内置的状态功能来处理纵向,横向和手机/平板电脑配置.这意味着我在移动应用程序中为我的所有8个视图构建了4种不同的布局.使用FB 4.6中的设计视图是我允许这样做的原因.

我不得不说到目前为止我喜欢Flash Builder.伟大的工具.

我的审判在上周结束了.我不得不购买该软件的4.7版,只是为了发现他们从软件中删除了设计视图.

所有人都抱怨说,与我一样的其他程序员和我做的解决方案是什么?我想继续在AS和Flash Builder中编程,因为我花时间编写应用程序并学习整个平台.

就目前而言,我正在将我的liscence键从4.7降级到4.6,但为了做到这一点,我不得不退回我的零售版FB 4.7 premium(在线购买)并买一卷liscening版本(不是通过adobe,只允许通过CDW等经销商这样做.然后,一旦我有一个4.7到容量liscencing的键,它可以降级到4.6.

我希望能在同一条船上得到别人的意见.你改变了编程语言吗?如果是的话,到底是什么?你改变了IDE吗?如果是这样,到底是什么?

flash builder designview

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

Visual Studio 2008报表服务器项目设计视图无法正常工作

当我创建新的Reporting Services报表或尝试在Visual Studio 2008中打开现有报表(已经工作)时.我无法查看该设计.我没有收到任何错误消息,它只显示"设计视图"中的html代码.我已经尝试重新安装VS2008和BIDS,但没有奏效.这在2周前我上次使用时都有效.

-nate

bids designview visual-studio-2008 reporting-services

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

Windows窗体设计视图的底部空间是什么?

我正在尝试了解Windows Forms Application.现在,我正在创建一个DataSet,绑定源,表适配器.我注意到它们出现在设计视图的底部.我的问题是:那部分是什么,那里有什么?

c# designview winforms

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

Xaml Design View找不到Background Brush

为了清理我的代码,我正在尝试将app.xaml拆分为单独的资源字典.这适用于运行时,但不适用于设计时:

剪辑在app.xaml

    <Application.Resources>
      <ResourceDictionary>
        <ResourceDictionary.MergedDictionaries>
            <ResourceDictionary Source="/;component/Theme/Colors.xaml" />
            <ResourceDictionary Source="/;component/Theme/Styles.xaml" />
        </ResourceDictionary.MergedDictionaries>
      </ResourceDictionary>
    </Application.Resources>
Run Code Online (Sandbox Code Playgroud)

Colors.xaml

<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

  <SolidColorBrush x:Key="backgroundBrush" Color="Gold"/>
</ResourceDictionary>
Run Code Online (Sandbox Code Playgroud)

Styles.xaml

    <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

      <Style TargetType="StatusBar">
        <Setter Property="Background" Value="{StaticResource backgroundBrush}" />
      </Style>
    </ResourceDictionary>
Run Code Online (Sandbox Code Playgroud)

剪切了MainWindow.xaml

<Window x:Class="test.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="test" Width="800" Height="600" >
    <StatusBar Name="statusBar" DockPanel.Dock="Bottom">
        <StatusBarItem Content="{Binding statusMessage}" />
    </StatusBar>
Run Code Online (Sandbox Code Playgroud)

DesignView给出错误:错误8'{DependencyProperty.UnsetValue}'不是属性'Background'的有效值.C:\ Daten\DotNet\test\test\MainWindow.xaml 123

如果我将backgroundBrush直接放入app.xaml中,如下所示:

    <Application.Resources>
      <ResourceDictionary>
        <ResourceDictionary.MergedDictionaries>
            <ResourceDictionary Source="/;component/Theme/Colors.xaml" />
            <ResourceDictionary Source="/;component/Theme/Styles.xaml" />
            <ResourceDictionary>
                <SolidColorBrush x:Key="backgroundBrush" Color="Gold"/>
            </ResourceDictionary>
        </ResourceDictionary.MergedDictionaries>
      </ResourceDictionary>
    </Application.Resources>
Run Code Online (Sandbox Code Playgroud)

DesignView没有问题.

那么有没有办法告诉DesignView在哪里找到backgroundBrush,如果这个画笔放在一个单独的资源字典中?

wpf xaml designview resourcedictionary

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