GridSettingsVM is now ipmlements ITemplateSelectorKey so that we can actually see the settings

This commit is contained in:
Jake Norbut committed 2018-10-11 09:33:46 -05:00
1 parent 2d3e942f93
commit f97ccf249f
1 file changed
+3 -1
@@ -44,7 +44,7 @@ namespace mbts.spark {
EqualityComparer.safe_aggregate_hash(predicate_animations_data));
}
partial class GridSettingsVM<TRowData, TPredicateBuilder, TSettingsData> : DisposableViewModelBase, IRequestViewClose, IWindowSettingsVM<TSettingsData>
partial class GridSettingsVM<TRowData, TPredicateBuilder, TSettingsData> : DisposableViewModelBase, IRequestViewClose, IWindowSettingsVM<TSettingsData>, ITemplateSelectorKey
where TPredicateBuilder : IPredicateBuilder<TRowData>, new()
where TSettingsData :class, IGridSettingsWithNotifications<TRowData, TPredicateBuilder> {
//
@@ -112,6 +112,8 @@ namespace mbts.spark {
new DialogSkirtItem("Apply", new DelegateCommand(() => committed?.Invoke()))
};
public string key => ui.spark.GridOrLadderSettingsSelectorKeys.SimpleGrid;
public TSettingsData get_result() {
var animation_map = predicate_animations
.Select(p => p.create())