Skip to content

Commit

Permalink
Implement find / replace commands
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandreu committed Jun 30, 2019
1 parent d65064b commit ce964a3
Show file tree
Hide file tree
Showing 13 changed files with 1,209 additions and 47 deletions.
20 changes: 20 additions & 0 deletions OfficeRibbonXEditor/Converters/InverseBooleanConverter.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
using System;
using System.Globalization;
using System.Windows.Data;

namespace OfficeRibbonXEditor.Converters
{
[ValueConversion(typeof(bool), typeof(bool))]
public class InverseBooleanConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
return !((bool) value);
}

public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
return !((bool) value);
}
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ce964a3

Please sign in to comment.