Bind TextBox Width from ColumnDefinition Width XAML WPF -


in wpf project want bind textbox width property columndefinition width. now, it's not working !

i used converter (gridlengthconverter) convert data width.

this code :

<textbox grid.column="1" grid.row="1" style="{staticresource searchwhite}"  name="tbsearch" visibility="{binding relativesource={relativesource ancestortype={x:type mic:datagrid}}, path=showsearchboxes, converter={staticresource visibleconverter}}" width="{binding relativesource={relativesource findancestor,ancestortype={x:type columndefinition}}, path=width, converter={staticresource gridlengthconverter}, mode=twoway}"/> 

gridlengthconverter gridlengthconverter assembly : presentationframework.

i error "unable convert data attribut 'converter'..." (translation french).

someone can helps ?

<grid>         <grid.columndefinitions>             <columndefinition name="col1" width="200"/>             <columndefinition />         </grid.columndefinitions>          <textbox width="{binding elementname=col1, path=width}"                   grid.column="0" height="20"/> </grid> 

Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -