SilverLight DomainService XAML中在XAML中怎么给方法传参数?
publicIQueryable<HarzardsInfo>GetHarzardsInfoByState(intstateId)如何在UI层的XAML中传一个int给方法...
public IQueryable<HarzardsInfo> GetHarzardsInfoByState(int stateId)如何在UI层的XAML中传一个int给方法
比如现在有DataGrid
<sdk:DataGrid x:Name="dgHarzardsInfo" Width="150" ItemsSource="{Binding Data,ElementName=harzardsInfoDataSource}" />
有DomainDataSource
<riaControls:DomainDataSource Name="harzardsInfoDataSource" LoadSize="20" QueryName="GetHarzardsInfoByState" AutoLoad="True">
<riaControls:DomainDataSource.DomainContext>
<ds:ForBusinessContext/>
</riaControls:DomainDataSource.DomainContext>
</riaControls:DomainDataSource>
在DomainDataSource里面怎么传参数?
<riaControls:DomainDataSource Name="harzardsInfoDataSource" LoadSize="20" QueryName="GetHarzardsInfoByState" AutoLoad="True">
就是在这里怎么传参数进去啊 QueryName="GetHarzardsInfoByState" 展开
比如现在有DataGrid
<sdk:DataGrid x:Name="dgHarzardsInfo" Width="150" ItemsSource="{Binding Data,ElementName=harzardsInfoDataSource}" />
有DomainDataSource
<riaControls:DomainDataSource Name="harzardsInfoDataSource" LoadSize="20" QueryName="GetHarzardsInfoByState" AutoLoad="True">
<riaControls:DomainDataSource.DomainContext>
<ds:ForBusinessContext/>
</riaControls:DomainDataSource.DomainContext>
</riaControls:DomainDataSource>
在DomainDataSource里面怎么传参数?
<riaControls:DomainDataSource Name="harzardsInfoDataSource" LoadSize="20" QueryName="GetHarzardsInfoByState" AutoLoad="True">
就是在这里怎么传参数进去啊 QueryName="GetHarzardsInfoByState" 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询