Skip to content

Commit

Permalink
Solution patcher project picker binding improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Noggog committed Sep 13, 2024
1 parent 789e49c commit d1939a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@
ToolTip="Open in IDE">
<iconPacks:PackIconMaterial Kind="OpenInApp" />
</Button>
<ComboBox x:Name="ProjectsPickerBox" Grid.Row="3">
<ComboBox x:Name="ProjectsPickerBox" Grid.Row="3"
ItemsSource="{Binding AvailableProjects}"
SelectedItem="{Binding SelectedProjectInput.ProjectSubpath}">
<ComboBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding}" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,6 @@ public SolutionSourceConfigView()
projOpacity.BindTo(this, x => x.ProjectsPickerBox.Opacity)
.DisposeWith(disposable);
// Bind project picker
this.Bind(this.ViewModel, vm => vm.SelectedProjectInput.ProjectSubpath, view => view.ProjectsPickerBox.SelectedItem)
.DisposeWith(disposable);
this.OneWayBind(this.ViewModel, vm => vm.AvailableProjects, view => view.ProjectsPickerBox.ItemsSource)
.DisposeWith(disposable);
// Set project picker tooltips
this.WhenAnyValue(x => x.ViewModel!.SelectedProjectInput.Picker.ErrorState)
.Select(e =>
Expand Down

0 comments on commit d1939a7

Please sign in to comment.