1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2025-12-13 05:48:35 +00:00
Artemis/src/Artemis.UI/Screens/ProfileEditor/DisplayConditions/DisplayConditionPredicateView.xaml.cs
2020-08-15 17:53:12 +02:00

26 lines
822 B
C#

using System.Windows;
using System.Windows.Controls;
namespace Artemis.UI.Screens.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;
}
}
}
}