我在写一个自动生成代码的工具。此工具以这种方式为XAML(WPF)生成代码。我怎么能解决这个问题,就像嵌套绑定的情况?嵌套绑定WPF
我收到错误:System.windows.data.binding没有内容属性。
请帮助我:)
<Grid xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:assembly="http://www.vakifbank.com/windows/usercontrols" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:assembly0="http://www.vakifbank.com/windows/commands">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="442" />
<ColumnDefinition Width="376*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<assembly:UComboBox SelectedValue="{Binding Path=DtoVergiTuru.VergiTurKodu}" DisplayMemberPath="Code, Description" ParameterGroupCode="VRGVergiTurKodlari" ValueMemberPath="Code" SortMemberPath="Code" Caption="Vergi Tür Kodu" IsRequiredForRead="True" Script="{x:Null}" BehaviourType="Key" Margin="8,2.5,22,2.5">
<assembly:UComboBox.VisibleColumns>
<Binding>
<Binding Path="CmbColumnCollectionVergiTur" />
</Binding>
</assembly:UComboBox.VisibleColumns>
<assembly:UComboBox.InputBindings>
<KeyBinding Gesture="Return" Modifiers="" Key="Return">
<KeyBinding.Command>
<assembly0:DelegateCommand />
</KeyBinding.Command>
</KeyBinding>
</assembly:UComboBox.InputBindings>
</assembly:UComboBox>
</Grid>
问题是多重绑定。作为 绑定> <绑定路径= “CmbColumnCollectionVergiTur”/> ** – fevziyilmaz