 <pre><code>/// &lt;summary&gt; /// Returns a collapsed visibility when the price is less than or equal to the comparison price. /// &lt;/summary&gt; public class PriceToVisibilityConverter : IValueConverter { private const double comparePrice = 2000; public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { double price; if (double.TryParse(value.ToString(), out price)) { return price &gt; comparePrice ? Visibility.Visible : Visibility.Collapsed; } return Visibility.Collapsed; } public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { throw new NotImplementedException(); } } </code></pre> <p>in your app.xaml</p> <pre><code>&lt;Application.Resources &gt; &lt;ResourceDictionary&gt; &lt;converter:PurchaseStatusConverter xmlns:converter="clr-namespace:namespacetoyourtype" x:Key="PurchaseStatusConverter" /&gt; &lt;converter:PriceToVisibilityConverter xmlns:converter="clr-namespace:namespacetoyourtype" x:Key="PriceToVisibilityConverter" /&gt; &lt;ResourceDictionary&gt; &lt;/Application.Resources &gt; </code></pre> <p>In your xaml</p> <pre><code>&lt;TextBlock Name="price" Vis Text="Some text" Visibility="{Binding Price, Converter={StaticResource PriceToVisibilityConverter}}" TextWrapping="Wrap" FontSize="24" /&gt; </code></pre>