c# - How to use Microsoft converters -


i have found reach set of converters in microsoft.teamfoundation.controls.wpf.converters, don't know how use them in xaml. particularly, don't how include namespace xaml. maybe allowed use in code?

list of converters

i tried

xmlns:conv="clr-namespace:microsoft.teamfoundation.controls.wpf.converters;assembly=microsoft.teamfoundation.controls" 

and

<conv:nulltovisibleconverter x:key="null2visconv"/> 

but can't find nulltovisibleconverter in conv.

first need target .net 4.5, add reference microsoft.teamfoundation.controls (should in assembilies -> extensions) , in xaml, did

<window ...         xmlns:conv="clr-namespace:microsoft.teamfoundation.controls.wpf.converters;assembly=microsoft.teamfoundation.controls">     <window.resources>         <conv:nulltovisibleconverter x:key="null2visconv"/>     </window.resources>     <!-- ... --> </window> 

Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -