Files
Artemis/src/Artemis.UI/Screens/Module/ProfileEditor/DisplayConditions/DisplayConditionPredicateView.xaml.cs
T
SpoinkyNL 71f6706eec Display conditions - Added data model selection
Display conditions - Added static and dynamic condition types
2020-07-05 23:00:23 +02:00

26 lines
829 B
C#

using System.Windows;
using System.Windows.Controls;
namespace Artemis.UI.Screens.Module.ProfileEditor.DisplayConditions
{
/// <summary>
/// Interaction logic for DisplayConditionPredicateView.xaml
/// </summary>
public partial class DisplayConditionPredicateView : UserControl
{
public DisplayConditionPredicateView()
{
InitializeComponent();
}
private void PropertyButton_OnClick(object sender, RoutedEventArgs e)
{
// DataContext is not set when using left button, I don't know why but there it is
if (sender is Button button && button.ContextMenu != null)
{
button.ContextMenu.DataContext = button.DataContext;
button.ContextMenu.IsOpen = true;
}
}
}
}