Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/postgresql/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
xaml中的一个元素是否可以绑定到多个路径?_Xaml_Binding_Path - Fatal编程技术网

xaml中的一个元素是否可以绑定到多个路径?

xaml中的一个元素是否可以绑定到多个路径?,xaml,binding,path,Xaml,Binding,Path,在XAML中,我有一个按钮,它已经绑定到其可见性标记上的路径“HasWritePermission”。是否可以在同一标记上添加另一个路径?假设我想根据某种逻辑完全隐藏按钮 为了提供一些上下文,该按钮是一个删除按钮,如果给定列表为空,则该按钮不应可见 <DataGridTextColumn.Binding> <MultiBinding Converter="{Quire_UI_Value_Converters:DiscountConverter}" Mode="TwoWa

在XAML中,我有一个按钮,它已经绑定到其可见性标记上的路径“HasWritePermission”。是否可以在同一标记上添加另一个路径?假设我想根据某种逻辑完全隐藏按钮


为了提供一些上下文,该按钮是一个删除按钮,如果给定列表为空,则该按钮不应可见

<DataGridTextColumn.Binding>
    <MultiBinding Converter="{Quire_UI_Value_Converters:DiscountConverter}" Mode="TwoWay" NotifyOnSourceUpdated="True" UpdateSourceTrigger="LostFocus">
        <Binding Path="Discount_Taken_Value" Mode="TwoWay"/>
        <Binding Path="Discount_Taken_Type" Mode="TwoWay"/>
    </MultiBinding>
</DataGridTextColumn.Binding>

已删除Silverlight标签。Silverlight中不存在多绑定,因此公认的答案不适用,并且该问题必须与其他平台相关