|
74 | 74 | <Setter Property="ScrollViewer.CanContentScroll" Value="true" />
|
75 | 75 | <Setter Property="MinWidth" Value="120" />
|
76 | 76 | <Setter Property="MinHeight" Value="20" />
|
| 77 | + |
| 78 | + <!--test fix for System.Windows.Data Error: 4--> |
| 79 | + <Setter Property="HorizontalContentAlignment" Value="Stretch" /> |
| 80 | + <Setter Property="VerticalContentAlignment" Value="Center" /> |
| 81 | + <Setter Property="HorizontalAlignment" Value="Stretch" /> |
| 82 | + <Setter Property="VerticalAlignment" Value="Center" /> |
| 83 | + <Setter Property="OverridesDefaultStyle" Value="True"/> |
| 84 | + |
77 | 85 | <Setter Property="Template">
|
78 | 86 | <Setter.Value>
|
79 | 87 | <ControlTemplate TargetType="{x:Type ComboBox}">
|
|
146 | 154 | </Setter>
|
147 | 155 | </Style>
|
148 | 156 |
|
| 157 | + <!-- error 4 comes from this whole part? --> |
149 | 158 | <Style x:Key="{x:Type ComboBoxItem}" TargetType="{x:Type ComboBoxItem}">
|
150 | 159 | <Setter Property="SnapsToDevicePixels" Value="true" />
|
151 | 160 | <Setter Property="OverridesDefaultStyle" Value="true" />
|
| 161 | + <!-- test fix for error 4 https://gist.github.com/TobiasSekan/73a93c2dfea4a051ff72abb5218d6f8f--><!-- |
| 162 | + <Setter Property="HorizontalContentAlignment" Value="Stretch" /> |
| 163 | + <Setter Property="VerticalContentAlignment" Value="Center" /> |
| 164 | + <Setter Property="HorizontalAlignment" Value="Stretch" /> |
| 165 | + <Setter Property="VerticalAlignment" Value="Center" />--> |
| 166 | + |
152 | 167 | <Setter Property="Template">
|
153 | 168 | <Setter.Value>
|
154 | 169 | <ControlTemplate TargetType="{x:Type ComboBoxItem}">
|
155 | 170 | <Border x:Name="Border" Padding="0" SnapsToDevicePixels="true" Background="Transparent">
|
156 |
| - <!--<VisualStateManager.VisualStateGroups> |
157 |
| - <VisualStateGroup x:Name="SelectionStates"> |
158 |
| - <VisualState x:Name="Unselected" /> |
159 |
| - <VisualState x:Name="Selected"> |
160 |
| - <Storyboard> |
161 |
| - --> |
162 |
| - <!--combobox selected item color in dropdown --> |
163 |
| - <!-- |
164 |
| - <ColorAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="(Panel.Background).(SolidColorBrush.Color)"> |
165 |
| - <EasingColorKeyFrame KeyTime="0" Value="Black" /> |
166 |
| - </ColorAnimationUsingKeyFrames> |
167 |
| - </Storyboard> |
168 |
| - </VisualState> |
169 |
| - <VisualState x:Name="SelectedUnfocused"/> |
170 |
| - --> |
171 |
| - <!--<VisualState x:Name="SelectedUnfocused"> |
172 |
| - <Storyboard> |
173 |
| - <ColorAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="(Panel.Background).(SolidColorBrush.Color)"> |
174 |
| - <EasingColorKeyFrame KeyTime="0" Value="Yellow" /> |
175 |
| - </ColorAnimationUsingKeyFrames> |
176 |
| - </Storyboard> |
177 |
| - </VisualState>--> |
178 |
| - <!-- |
179 |
| - </VisualStateGroup> |
180 |
| - </VisualStateManager.VisualStateGroups>--> |
181 | 171 | <ContentPresenter />
|
182 | 172 | </Border>
|
183 | 173 |
|
184 | 174 | <!--mouseover colors for dropdown combobox https://stackoverflow.com/a/39228553/5452781 -->
|
185 | 175 | <ControlTemplate.Triggers>
|
186 | 176 | <Trigger Property="ComboBoxItem.IsMouseOver" Value="True">
|
187 | 177 | <Setter TargetName="Border" Property="Background" Value="DarkBlue"></Setter>
|
188 |
| - <!--<Setter TargetName="Border" Property="TextElement.Foreground" Value="White"></Setter>--> |
189 | 178 | </Trigger>
|
190 | 179 | <Trigger Property="ComboBoxItem.IsSelected" Value="True">
|
191 | 180 | <Setter TargetName="Border" Property="Background" Value="{StaticResource ThemeDataGridRowSelectedBackground}"></Setter>
|
|
329 | 318 | <Setter.Value>
|
330 | 319 | <ControlTemplate TargetType="{x:Type RepeatButton}">
|
331 | 320 | <!-- button background -->
|
332 |
| - <Border x:Name="Border" Margin="1" CornerRadius="0" BorderThickness="0" Background="{DynamicResource ButtonBackground}" BorderBrush="{x:Null}"> |
| 321 | + <Border x:Name="Border" Margin="1" CornerRadius="0" BorderThickness="0" Background="{DynamicResource ThemeButtonBackground}" BorderBrush="{x:Null}"> |
333 | 322 | <!-- arrow sign -->
|
334 |
| - <Path HorizontalAlignment="Center" VerticalAlignment="Center" Fill="{DynamicResource ScrollArrowForeground}" Data="{Binding Content, RelativeSource={RelativeSource TemplatedParent}}" /> |
| 323 | + <Path HorizontalAlignment="Center" VerticalAlignment="Center" Fill="{DynamicResource ThemeScrollArrowForeground}" Data="{Binding Content, RelativeSource={RelativeSource TemplatedParent}}" /> |
335 | 324 | </Border>
|
336 | 325 | <ControlTemplate.Triggers>
|
337 | 326 | <!-- NOTE order matters, if pressed is before mouseover, then it gets overwritten -->
|
|
392 | 381 | <RowDefinition MaxHeight="18"/>
|
393 | 382 | </Grid.RowDefinitions>
|
394 | 383 | <!-- scrollbar background -->
|
395 |
| - <Border Grid.RowSpan="3" CornerRadius="0" Background="{DynamicResource ScrollBarBackground}" /> |
| 384 | + <Border Grid.RowSpan="3" CornerRadius="0" Background="{DynamicResource ThemeScrollBarBackground}" /> |
396 | 385 | <!-- scrollbar top button -->
|
397 | 386 | <RepeatButton Grid.Row="0" Style="{StaticResource ScrollBarLineButton}" Height="18" Command="ScrollBar.LineUpCommand" Content="M 0 4 L 8 4 L 4 0 Z" />
|
398 | 387 | <Track x:Name="PART_Track" Grid.Row="1" IsDirectionReversed="true">
|
|
401 | 390 | </Track.DecreaseRepeatButton>
|
402 | 391 | <Track.Thumb>
|
403 | 392 | <!-- scrollbar foreground -->
|
404 |
| - <Thumb Style="{StaticResource ScrollBarThumb}" Margin="1,0,1,0" Background="{DynamicResource ScrollBarFill}" BorderBrush="{x:Null}"/> |
| 393 | + <Thumb Style="{StaticResource ScrollBarThumb}" Margin="1,0,1,0" Background="{DynamicResource ThemeScrollBarFill}" BorderBrush="{x:Null}"/> |
405 | 394 | </Track.Thumb>
|
406 | 395 | <Track.IncreaseRepeatButton>
|
407 | 396 | <RepeatButton Style="{StaticResource ScrollBarPageButton}" Command="ScrollBar.PageDownCommand" />
|
|
484 | 473 | <Button Style="{StaticResource CustomButton}" ToolTip="Add existing project" x:Name="btnAddProjectFolder" Content="Add Project.." Height="22" Width="78" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,4,34,0" Click="BtnAddProjectFolder_Click" BorderBrush="{x:Null}" TabIndex="10" />
|
485 | 474 | <Button Style="{StaticResource CustomButton}" ToolTip="Refresh list (F5)" x:Name="btnRefreshProjectList" Content="⟳" Height="22" Width="22" HorizontalAlignment="Right" VerticalAlignment="Top" FontSize="16" Margin="0,4,3,0" Padding="1,-2,1,1" BorderBrush="{x:Null}" Click="BtnRefreshProjectList_Click" TabIndex="11"/>
|
486 | 475 |
|
487 |
| - <DataGrid x:Name="gridRecent" SelectionMode="Single" Margin="4,30,2,42" CanUserAddRows="False" Background="{x:Null}" BorderBrush="{x:Null}" ColumnHeaderStyle="{StaticResource HeaderStyle}" Padding="0" HorizontalScrollBarVisibility="Disabled" HeadersVisibility="Column" Foreground="{DynamicResource ThemeGridForeground}" HorizontalGridLinesBrush="{DynamicResource ThemeGridHorizontalGridLines}" VerticalGridLinesBrush="{DynamicResource ThemeGridVerticalGridLines}" AutoGenerateColumns="False" PreviewKeyDown="GridRecent_PreviewKeyDown" Loaded="GridRecent_Loaded" TabIndex="2" CellEditEnding="GridRecent_CellEditEnding" PreviewMouseDoubleClick="GridRecent_PreviewMouseDoubleClick" BeginningEdit="GridRecent_BeginningEdit" ContextMenuOpening="GridRecent_ContextMenuOpening" > |
| 476 | + <DataGrid x:Name="gridRecent" HorizontalAlignment="Left" HorizontalContentAlignment="Left" VerticalAlignment="Center" VerticalContentAlignment="Center" SelectionMode="Single" Margin="4,30,2,42" CanUserAddRows="False" Background="{x:Null}" BorderBrush="{x:Null}" ColumnHeaderStyle="{StaticResource HeaderStyle}" Padding="0" HorizontalScrollBarVisibility="Disabled" HeadersVisibility="Column" Foreground="{DynamicResource ThemeGridForeground}" HorizontalGridLinesBrush="{DynamicResource ThemeGridHorizontalGridLines}" VerticalGridLinesBrush="{DynamicResource ThemeGridVerticalGridLines}" AutoGenerateColumns="False" PreviewKeyDown="GridRecent_PreviewKeyDown" Loaded="GridRecent_Loaded" TabIndex="2" CellEditEnding="GridRecent_CellEditEnding" PreviewMouseDoubleClick="GridRecent_PreviewMouseDoubleClick" ContextMenuOpening="GridRecent_ContextMenuOpening" BeginningEdit="GridRecent_BeginningEdit" > |
| 477 | + |
488 | 478 | <DataGrid.CommandBindings>
|
489 | 479 | <CommandBinding Command="ApplicationCommands.Copy" Executed="CopyRowFolderToClipBoard" CanExecute="CanExecute_Copy"/>
|
490 | 480 | <CommandBinding Command="{x:Static local:MainWindow.KillProcessCommand}" Executed="KillSelectedProcess"/>
|
|
529 | 519 | <DataGridTemplateColumn Header="Platform">
|
530 | 520 | <DataGridTemplateColumn.CellTemplate >
|
531 | 521 | <DataTemplate >
|
532 |
| - <ComboBox x:Name="cmbPlatformSelection" IsEnabled="{Binding ElementName=chkEnablePlatformSelection, Path=IsChecked}" ItemsSource="{Binding Source={StaticResource platformEnum}}" SelectedValue="{Binding TargetPlatform}" Height="18" Foreground="{DynamicResource ThemeButtonForeground}"/> |
| 522 | + <ComboBox x:Name="cmbPlatformSelection" OverridesDefaultStyle="True" VerticalAlignment="Center" HorizontalAlignment="Stretch" VerticalContentAlignment="Center" HorizontalContentAlignment="Stretch" IsEnabled="{Binding ElementName=chkEnablePlatformSelection, Path=IsChecked}" ItemsSource="{Binding TargetPlatforms}" SelectedValue="{Binding TargetPlatform}" Height="18" Foreground="{DynamicResource ThemeButtonForeground}"/> |
533 | 523 | </DataTemplate>
|
534 | 524 | </DataGridTemplateColumn.CellTemplate>
|
535 | 525 | </DataGridTemplateColumn>
|
|
664 | 654 | <DataGridTextColumn Binding="{Binding Version}" ClipboardContentBinding="{x:Null}" Header="Version" IsReadOnly="True" MinWidth="123"/>
|
665 | 655 | <DataGridTextColumn Binding="{Binding Path}" ClipboardContentBinding="{x:Null}" Header="Path" IsReadOnly="True"/>
|
666 | 656 | <DataGridTextColumn Binding="{Binding Installed, StringFormat=\{0:dd/MM/yyyy HH:mm:ss\}}" ClipboardContentBinding="{x:Null}" Header="Installed" IsReadOnly="True"/>
|
667 |
| - <DataGridTextColumn Binding="{Binding Platforms}" ClipboardContentBinding="{x:Null}" Header="Platforms" IsReadOnly="True"/> |
| 657 | + <DataGridTextColumn Binding="{Binding PlatformsCombined}" ClipboardContentBinding="{x:Null}" Header="Platforms" IsReadOnly="True"/> |
668 | 658 | </DataGrid.Columns>
|
669 | 659 |
|
670 | 660 | <!-- right click context menu -->
|
|
0 commit comments