SPARK-2404 Make ladder param grid behave more like a popup
This commit is contained in:
1 parent
892abe098c
commit
29ae9c6927
3 files changed
+17
-2
No files matched your search
+6
-2
@@ -481,10 +481,14 @@
|
||||
<usp:AlgoEditorGridRowStyleSelector.DefaultStyle>
|
||||
<Style TargetType="DataGridRow">
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding param.is_dirty}" Value="{u:True}">
|
||||
<MultiDataTrigger>
|
||||
<MultiDataTrigger.Conditions>
|
||||
<Condition Binding="{Binding param.is_dirty}" Value="{u:True}"/>
|
||||
<Condition Binding="{Binding AnimateDirty, RelativeSource={RelativeSource AncestorType=usp:AlgoEditorGridView}}" Value="{u:True}"/>
|
||||
</MultiDataTrigger.Conditions>
|
||||
<Setter Property="Background" Value="#8098FB98"/>
|
||||
<Setter Property="ToolTip" Value="Value has been modified."/>
|
||||
</DataTrigger>
|
||||
</MultiDataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</usp:AlgoEditorGridRowStyleSelector.DefaultStyle>
|
||||
|
||||
+10
@@ -76,6 +76,16 @@ namespace mbts.ui.spark {
|
||||
}
|
||||
}
|
||||
|
||||
#region AnimateDirtyParams
|
||||
public static readonly DependencyProperty AnimateDirtyProperty =
|
||||
WPFHelper.create_dp<bool, AlgoEditorGridView>(nameof(AnimateDirty), true);
|
||||
|
||||
public bool AnimateDirty {
|
||||
get => (bool)GetValue(AnimateDirtyProperty);
|
||||
set => SetValue(AnimateDirtyProperty, value);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region IsReadOnly
|
||||
public static readonly DependencyProperty IsReadOnlyProperty =
|
||||
WPFHelper.create_dp<bool, AlgoEditorGridView>(nameof(IsReadOnly));
|
||||
|
||||
@@ -203,6 +203,7 @@
|
||||
x:Name="ParamGridView"
|
||||
Grid.Row="1"
|
||||
Margin="12,8,12,12"
|
||||
AnimateDirty="False"
|
||||
CanUserChangeAlgoRoot="False"
|
||||
AlgoParamRows="{Binding algo_param_rows}"
|
||||
Visibility="Visible"
|
||||
|
||||
Reference in new issue
Block a user