diff options
author | Vitaly Takmazov | 2013-04-26 23:45:22 +0400 |
---|---|---|
committer | Vitaly Takmazov | 2013-04-26 23:45:22 +0400 |
commit | 4b2a51d8858ed3d28dd4af0aa86ca88fe2ec9ab3 (patch) | |
tree | 08d3e6e43b5fc5e5958c0570303c291aaa72e955 /Juick/Classes | |
parent | 648d914c8d5cf6fe2b3f8271839ec30143172376 (diff) | |
parent | f2a831eb785ca81a069406f7df0f3890ac2be90a (diff) |
Merge branch 'fix_repo'
Diffstat (limited to 'Juick/Classes')
-rw-r--r-- | Juick/Classes/BooleanToVisibilityConverter.cs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Juick/Classes/BooleanToVisibilityConverter.cs b/Juick/Classes/BooleanToVisibilityConverter.cs new file mode 100644 index 0000000..cd7e000 --- /dev/null +++ b/Juick/Classes/BooleanToVisibilityConverter.cs @@ -0,0 +1,21 @@ +using System; +using System.Globalization; +using System.Windows; +using System.Windows.Data; + +namespace Juick.Classes +{ + public class BooleanToVisibiltyConverter : IValueConverter + { + public object Convert(object value, Type targetType, object parameter, CultureInfo culture) + { + var visible = (bool)value; + return visible ? Visibility.Visible : Visibility.Collapsed; + } + + public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) + { + throw new NotImplementedException(); + } + } +}
\ No newline at end of file |