-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #237 from lastbattle/staging
Staging -- UX refinement:
- Loading branch information
Showing
21 changed files
with
2,255 additions
and
2,044 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
using HaRepacker.GUI.Controls; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using System.Windows.Data; | ||
using System.Windows; | ||
|
||
namespace HaRepacker.Converter { | ||
|
||
/// <summary> | ||
/// Boolean to System.Windows.Visiblity converter. | ||
/// If true, return Visiblity.Collapsed | ||
/// otherelse return Visibility.Visible | ||
/// </summary> | ||
public class BooleanToVisibilityConverter : IValueConverter { | ||
|
||
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { | ||
bool res = (bool)value; | ||
|
||
if (res) | ||
return Visibility.Collapsed; | ||
|
||
return Visibility.Visible; | ||
} | ||
|
||
public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { | ||
Visibility visibility = (Visibility)value; | ||
|
||
return visibility == Visibility.Collapsed ? true: false; | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.