コード例 #1
0
 public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
 {
     return(GlassHelper.IsGlassEnabled() ? new Thickness(0, 32, 0, 0) : new Thickness(0));
 }
コード例 #2
0
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            WindowState state = (WindowState)value;

            return(state == WindowState.Maximized && GlassHelper.IsGlassEnabled() ? new Thickness(5) : new Thickness(0));
        }