diff --git a/src/Artemis.UI.Shared/Controls/ColorPicker.xaml b/src/Artemis.UI.Shared/Controls/ColorPicker.xaml
index e4ce9f773..0717700b2 100644
--- a/src/Artemis.UI.Shared/Controls/ColorPicker.xaml
+++ b/src/Artemis.UI.Shared/Controls/ColorPicker.xaml
@@ -117,14 +117,14 @@
Maximum="255" />
-
+
Preview on devices
-
+
diff --git a/src/Artemis.UI.Shared/Controls/TreeViewPopupCompatibleCheckBox.cs b/src/Artemis.UI.Shared/Controls/TreeViewPopupCompatibleCheckBox.cs
deleted file mode 100644
index 42952c013..000000000
--- a/src/Artemis.UI.Shared/Controls/TreeViewPopupCompatibleCheckBox.cs
+++ /dev/null
@@ -1,22 +0,0 @@
-using System.Windows.Controls;
-using System.Windows.Input;
-
-namespace Artemis.UI.Shared
-{
- // Workaround for https://developercommunity.visualstudio.com/content/problem/190202/button-controls-hosted-in-popup-windows-do-not-wor.html
- ///
- public class TreeViewPopupCompatibleCheckBox : CheckBox
- {
- ///
- protected override void OnPreviewMouseLeftButtonDown(MouseButtonEventArgs e)
- {
- base.OnMouseLeftButtonDown(e);
- }
-
- ///
- protected override void OnPreviewMouseLeftButtonUp(MouseButtonEventArgs e)
- {
- base.OnMouseLeftButtonUp(e);
- }
- }
-}
\ No newline at end of file
diff --git a/src/Artemis.UI.Shared/DataModelVisualization/DataModelInputViewModel.cs b/src/Artemis.UI.Shared/DataModelVisualization/DataModelInputViewModel.cs
index f0b2b2a02..c9ec085a4 100644
--- a/src/Artemis.UI.Shared/DataModelVisualization/DataModelInputViewModel.cs
+++ b/src/Artemis.UI.Shared/DataModelVisualization/DataModelInputViewModel.cs
@@ -84,7 +84,7 @@ namespace Artemis.UI.Shared
// After the animation finishes attempt to focus the input field
Task.Run(async () =>
{
- await Task.Delay(400);
+ await Task.Delay(50);
await Execute.OnUIThreadAsync(() => View.MoveFocus(new TraversalRequest(FocusNavigationDirection.First)));
});
}
diff --git a/src/Artemis.UI.Shared/DataModelVisualization/Input/DataModelStaticView.xaml b/src/Artemis.UI.Shared/DataModelVisualization/Input/DataModelStaticView.xaml
index 67446972a..e11580842 100644
--- a/src/Artemis.UI.Shared/DataModelVisualization/Input/DataModelStaticView.xaml
+++ b/src/Artemis.UI.Shared/DataModelVisualization/Input/DataModelStaticView.xaml
@@ -21,14 +21,15 @@
-
+
+
\ No newline at end of file
diff --git a/src/Artemis.UI.Shared/DataModelVisualization/Input/DataModelStaticViewModel.cs b/src/Artemis.UI.Shared/DataModelVisualization/Input/DataModelStaticViewModel.cs
index d438cdfa4..6174a6b2a 100644
--- a/src/Artemis.UI.Shared/DataModelVisualization/Input/DataModelStaticViewModel.cs
+++ b/src/Artemis.UI.Shared/DataModelVisualization/Input/DataModelStaticViewModel.cs
@@ -20,7 +20,6 @@ namespace Artemis.UI.Shared.Input
private string _placeholder = "Enter a value";
private DataModelPropertyAttribute _targetDescription;
private Type _targetType;
- private int _transitionIndex;
private object _value;
private bool _isEnabled;
@@ -45,13 +44,7 @@ namespace Artemis.UI.Shared.Input
get => _buttonBrush;
set => SetAndNotify(ref _buttonBrush, value);
}
-
- public int TransitionIndex
- {
- get => _transitionIndex;
- set => SetAndNotify(ref _transitionIndex, value);
- }
-
+
public DataModelDisplayViewModel DisplayViewModel
{
get => _displayViewModel;
@@ -113,7 +106,6 @@ namespace Artemis.UI.Shared.Input
public void ActivateInputViewModel()
{
- TransitionIndex = 1;
InputViewModel = _dataModelUIService.GetDataModelInputViewModel(
TargetType,
TargetDescription,
@@ -149,7 +141,6 @@ namespace Artemis.UI.Shared.Input
if (submitted)
OnValueUpdated(new DataModelInputStaticEventArgs(value));
- TransitionIndex = 0;
InputViewModel = null;
Value = value;
}
diff --git a/src/Artemis.UI/Converters/LeftMarginMultiplierConverter.cs b/src/Artemis.UI/Converters/LeftMarginMultiplierConverter.cs
index a6654c2a7..6ecb1459b 100644
--- a/src/Artemis.UI/Converters/LeftMarginMultiplierConverter.cs
+++ b/src/Artemis.UI/Converters/LeftMarginMultiplierConverter.cs
@@ -1,23 +1,23 @@
using System;
using System.Globalization;
using System.Windows;
-using System.Windows.Controls;
using System.Windows.Data;
-using Artemis.UI.Extensions;
+using Artemis.UI.Screens.ProfileEditor.LayerProperties.Tree;
namespace Artemis.UI.Converters
{
- public class LeftMarginMultiplierConverter : IValueConverter
+ public class PropertyTreeMarginConverter : IValueConverter
{
public double Length { get; set; }
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
- var item = value as TreeViewItem;
- if (item == null)
- return new Thickness(0);
+ if (value is TreeGroupViewModel treeGroupViewModel)
+ return new Thickness(Length * treeGroupViewModel.GetDepth(), 0, 0, 0);
+ if (value is ITreePropertyViewModel treePropertyViewModel)
+ return new Thickness(Length * treePropertyViewModel.GetDepth(), 0, 0, 0);
- return new Thickness(Length * item.GetDepth(), 0, 0, 0);
+ return new Thickness(0);
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
diff --git a/src/Artemis.UI/Screens/ProfileEditor/Conditions/DataModelConditionGroupView.xaml b/src/Artemis.UI/Screens/ProfileEditor/Conditions/DataModelConditionGroupView.xaml
index d248102ac..5a0512ba4 100644
--- a/src/Artemis.UI/Screens/ProfileEditor/Conditions/DataModelConditionGroupView.xaml
+++ b/src/Artemis.UI/Screens/ProfileEditor/Conditions/DataModelConditionGroupView.xaml
@@ -54,22 +54,22 @@
Visibility="{Binding DisplayBooleanOperator, Converter={x:Static s:BoolToVisibilityConverter.Instance}, Mode=OneWay}">
-
-
-
-
+
+ CommandParameter="AndNot"
+ ToolTip="All the conditions in the group should evaluate to false" />
+
@@ -116,7 +116,7 @@
-
+