English 中文(简体)
WPF 1. 含有Enum的数据
原标题:WPF Data Binding an Enum
  • 时间:2011-01-22 10:06:09
  •  标签:
  • binding

公共储备集团名称为“空间公平贸易”。

在发出这一电子邮件之前,我有以下密码:

xmlns:Equity Trades=“clr-namespace:Equity Trades;assembly=Equity Trades”

该守则没有按照以下规定确定库存群:

它重复了错误:“Type参考资料找不到名称的类型:

根据我在互联网上发现的情况,我已尝试删除;Sassembly=Equity Trades,以及其他各种。 似乎没有工作。 请提供帮助。 I m使用VS2010。

<Window.Resources>
    <ObjectDataProvider x:Key="stocksGroupTypeName" MethodName="GetValues" ObjectType="{x:Type System:Enum}">
        <ObjectDataProvider.MethodParameters>
            <x:Type TypeName="EquityTrades.StocksGroupType" />
        </ObjectDataProvider.MethodParameters>
    </ObjectDataProvider>
</Window.Resources>
问题回答

以下线是错误的。

<x:Type TypeName="EquityTrades.StocksGroupType" />

您必须从股票贸易中改变Name值。





相关问题
Get DynamicResource Binding in WPF

Can any one help me to get DynamicResource Binding in WPF by code? I have set binding Like follow, TextBlock Background={DynamicResource ColorA} Name="TB" in Xaml. and i need to get the - TB s ...

WPF Binding to specific items in collection

I m currently trying to bind to certain items in a collection in wpf. This is best explained by an example. My XAML is below: <Canvas Name="TaskCanvas" Width="467.667" Height="414"> <...

WPF Dynamic Binding X and Y Co-ordinates

I have a question on WPF dynamic positioning. I want to place Elipses on the screen based on X and Y co-ordinates that i have stored in a collection in C#. I have been made aware of the drawing ...

WPF Data Binding Error in ListBox

I have a ListBox: <ListBox x:Name="HistogramListBox" Grid.Column="1" Margin="8,2,8,0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Template="{StaticResource ...

WCF binding error

So I got into work early today and got the latest from source control. When I try to launch our ASP.NET application, I get this exception: "The binding at system.serviceModel/bindings/wsHttpBinding ...

silverlight 3 collection binding

Someone please help me understand why this binding does not work... I have a class called SelectionManager with a property called dates which is populated by a WCF service. The property is an ...

热门标签