Skip to content

Commit

Permalink
+ Do not render Tasks GroupBox if there are no tasks in component in …
Browse files Browse the repository at this point in the history
…generic service view
  • Loading branch information
peterbarancek committed Dec 4, 2024
1 parent eca54b7 commit 6fb86f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@

<RowDefinition />
</Grid.RowDefinitions>
<GroupBox Grid.ColumnSpan="2" Margin="10,0" Padding="10" Header="{x:Static p:strings.Tasks}" >
<GroupBox Grid.ColumnSpan="2" Margin="10,0" Padding="10" Header="{x:Static p:strings.Tasks}"
Visibility="{Binding HasTasks,Converter={tcoCore:BooleanToVisibilityConverter}}">
<ItemsControl ItemsPanel="{StaticResource HorizontalWraped}" HorizontalAlignment="Left" ItemsSource="{Binding Tasks}">

<ItemsControl.ItemTemplate>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ public bool HasComponents
get { return Components.Count()>0; }
}


public bool HasTask
{
get { return Tasks.Count() > 0; }
}

public object StatusControl
{
Expand Down

0 comments on commit 6fb86f8

Please sign in to comment.