|
9 | 9 | xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" |
10 | 10 | xmlns:cal="http://www.caliburnproject.org" mc:Ignorable="d" |
11 | 11 | xmlns:Infrastructure="clr-namespace:Solutionizer.Infrastructure" |
12 | | - xmlns:ViewModels="clr-namespace:Solutionizer.ViewModels" |
| 12 | + xmlns:ViewModels="clr-namespace:Solutionizer.ViewModels" xmlns:Views="clr-namespace:Solutionizer.Views" |
13 | 13 | d:DataContext="{d:DesignInstance Type=ViewModels:SolutionViewModel}" |
14 | 14 | d:DesignHeight="300" d:DesignWidth="300"> |
15 | 15 | <Grid> |
16 | 16 | <Grid.Resources> |
17 | | - <BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/> |
| 17 | + <BooleanToVisibilityConverter x:Key="BooleanToVisibility"/> |
18 | 18 |
|
19 | 19 | <Converters:FilePathToImageSourceConverter x:Key="FilePathToImageSource"/> |
20 | 20 | <DataTemplate x:Key="NameWithImage" DataType="{x:Type Models:Project}"> |
|
28 | 28 | <StackPanel Orientation="Horizontal" Margin="1"> |
29 | 29 | <Image Height="16" Width="16" x:Name="nodeImg" Source="{Converters:Shell32Icon FileName='shell32.dll',IconIndex=3}" Margin="0 0 4 0" /> |
30 | 30 | <TextBlock Text="{Binding Name}" /> |
| 31 | + <TextBlock Foreground="{DynamicResource AccentColorBrush}" |
| 32 | + Visibility="{Binding Path=DataContext.ShowProjectCount, RelativeSource={RelativeSource AncestorType=Views:SolutionView}, Converter={StaticResource BooleanToVisibility}}" |
| 33 | + Text="{Binding Path=ProjectCount, StringFormat=' ({0})'}"/> |
31 | 34 | </StackPanel> |
32 | 35 | <HierarchicalDataTemplate.Triggers> |
33 | 36 | <DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType=TreeViewItem}, Path=IsExpanded}" Value="True"> |
|
79 | 82 |
|
80 | 83 | <StackPanel Grid.Column="1" Grid.Row="1" Margin="10 0 4 0"> |
81 | 84 | <Button x:Name="Launch" Content="Launch" Margin="0 0 0 4" MinWidth="80"/> |
82 | | - <Button x:Name="LaunchElevated" Margin="0 0 0 4" MinWidth="80" Visibility="{Binding ShowLaunchElevatedButton, Converter={StaticResource BooleanToVisibilityConverter}}"> |
| 85 | + <Button x:Name="LaunchElevated" Margin="0 0 0 4" MinWidth="80" Visibility="{Binding ShowLaunchElevatedButton, Converter={StaticResource BooleanToVisibility}}"> |
83 | 86 | <Grid HorizontalAlignment="Stretch"> |
84 | 87 | <Grid.ColumnDefinitions> |
85 | 88 | <ColumnDefinition Width="auto"/> |
|
0 commit comments