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?
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
Post a Comment