|
386 | 386 | <!--#endregion-->
|
387 | 387 | </Style>
|
388 | 388 |
|
| 389 | + <Style |
| 390 | + x:Key="PluginListStyle" |
| 391 | + BasedOn="{StaticResource {x:Type ListBox}}" |
| 392 | + TargetType="ListBox"> |
| 393 | + <Style.Triggers> |
| 394 | + <DataTrigger Binding="{Binding RelativeSource={x:Static RelativeSource.Self}, Path=Items.Count}" Value="0"> |
| 395 | + <Setter Property="Template"> |
| 396 | + <Setter.Value> |
| 397 | + <ControlTemplate> |
| 398 | + <Grid> |
| 399 | + <StackPanel> |
| 400 | + <TextBlock |
| 401 | + Margin="0,20,0,4" |
| 402 | + FontWeight="Bold" |
| 403 | + Text="{DynamicResource searchplugin_Noresult_Title}" /> |
| 404 | + <TextBlock Text="{DynamicResource searchplugin_Noresult_Subtitle}" /> |
| 405 | + </StackPanel> |
| 406 | + </Grid> |
| 407 | + </ControlTemplate> |
| 408 | + </Setter.Value> |
| 409 | + </Setter> |
| 410 | + </DataTrigger> |
| 411 | + </Style.Triggers> |
| 412 | + </Style> |
| 413 | + |
| 414 | + <Style |
| 415 | + x:Key="StoreListStyle" |
| 416 | + BasedOn="{StaticResource {x:Type ListBox}}" |
| 417 | + TargetType="ListBox"> |
| 418 | + <Style.Triggers> |
| 419 | + <DataTrigger Binding="{Binding RelativeSource={x:Static RelativeSource.Self}, Path=Items.Count}" Value="0"> |
| 420 | + <Setter Property="Template"> |
| 421 | + <Setter.Value> |
| 422 | + <ControlTemplate> |
| 423 | + <Grid> |
| 424 | + <StackPanel> |
| 425 | + <TextBlock |
| 426 | + Margin="0,20,0,4" |
| 427 | + FontWeight="Bold" |
| 428 | + Text="{DynamicResource searchplugin_Noresult_Title}" /> |
| 429 | + <TextBlock Text="{DynamicResource searchplugin_Noresult_Subtitle_Network}" /> |
| 430 | + </StackPanel> |
| 431 | + </Grid> |
| 432 | + </ControlTemplate> |
| 433 | + </Setter.Value> |
| 434 | + </Setter> |
| 435 | + </DataTrigger> |
| 436 | + </Style.Triggers> |
| 437 | + </Style> |
389 | 438 | <!-- For Tab Header responsive Width -->
|
390 | 439 | <Style TargetType="{x:Type TabControl}">
|
391 | 440 | <Setter Property="FontSize" Value="14" />
|
|
914 | 963 | <DockPanel DockPanel.Dock="Right">
|
915 | 964 | <TextBox
|
916 | 965 | Name="pluginFilterTxb"
|
917 |
| - Width="250" |
| 966 | + Width="150" |
918 | 967 | Height="34"
|
919 | 968 | Margin="0,5,26,0"
|
920 | 969 | HorizontalAlignment="Right"
|
|
975 | 1024 | ScrollViewer.HorizontalScrollBarVisibility="Disabled"
|
976 | 1025 | SelectedItem="{Binding SelectedPlugin}"
|
977 | 1026 | SelectionChanged="SelectedPluginChanged"
|
978 |
| - SnapsToDevicePixels="True"> |
| 1027 | + SnapsToDevicePixels="True" |
| 1028 | + Style="{DynamicResource PluginListStyle}"> |
979 | 1029 | <ListBox.ItemsPanel>
|
980 | 1030 | <ItemsPanelTemplate>
|
981 | 1031 | <StackPanel Margin="0,0,0,18" />
|
|
1322 | 1372 | <DockPanel
|
1323 | 1373 | Grid.Row="0"
|
1324 | 1374 | Grid.Column="1"
|
1325 |
| - Margin="5,18,0,0"> |
1326 |
| - <Button |
1327 |
| - Height="34" |
1328 |
| - Margin="0,5,16,5" |
1329 |
| - Padding="12,4,12,4" |
1330 |
| - HorizontalAlignment="Right" |
1331 |
| - VerticalAlignment="Center" |
1332 |
| - Click="OnPluginStoreRefreshClick" |
1333 |
| - Content="{DynamicResource refresh}" |
1334 |
| - DockPanel.Dock="Right" |
1335 |
| - FontSize="13" /> |
| 1375 | + Margin="5,24,0,0"> |
1336 | 1376 | <TextBox
|
1337 | 1377 | Name="pluginStoreFilterTxb"
|
1338 |
| - Width="250" |
| 1378 | + Width="150" |
1339 | 1379 | Height="34"
|
1340 |
| - Margin="0,0,6,0" |
| 1380 | + Margin="0,0,26,0" |
1341 | 1381 | HorizontalAlignment="Right"
|
1342 | 1382 | DockPanel.Dock="Right"
|
1343 | 1383 | FontSize="14"
|
|
1375 | 1415 | </Style>
|
1376 | 1416 | </TextBox.Style>
|
1377 | 1417 | </TextBox>
|
1378 |
| - |
| 1418 | + <Button |
| 1419 | + Height="34" |
| 1420 | + Margin="0,5,10,5" |
| 1421 | + Padding="12,4,12,4" |
| 1422 | + HorizontalAlignment="Right" |
| 1423 | + VerticalAlignment="Center" |
| 1424 | + Click="OnPluginStoreRefreshClick" |
| 1425 | + Content="{DynamicResource refresh}" |
| 1426 | + DockPanel.Dock="Right" |
| 1427 | + FontSize="13" /> |
1379 | 1428 | </DockPanel>
|
1380 | 1429 | <Border
|
1381 | 1430 | Grid.Row="1"
|
|
1385 | 1434 | <ListBox
|
1386 | 1435 | x:Name="StoreListBox"
|
1387 | 1436 | Width="Auto"
|
1388 |
| - Margin="6,0,0,0" |
| 1437 | + Margin="5,1,0,0" |
1389 | 1438 | Padding="0,0,0,0"
|
1390 | 1439 | HorizontalAlignment="Stretch"
|
1391 | 1440 | VerticalContentAlignment="Center"
|
1392 | 1441 | Background="{DynamicResource Color01B}"
|
1393 | 1442 | ItemContainerStyle="{StaticResource StoreList}"
|
1394 | 1443 | ItemsSource="{Binding ExternalPlugins}"
|
1395 | 1444 | ScrollViewer.HorizontalScrollBarVisibility="Disabled"
|
1396 |
| - SelectionMode="Single"> |
| 1445 | + SelectionMode="Single" |
| 1446 | + Style="{DynamicResource StoreListStyle}"> |
1397 | 1447 | <ListBox.ItemsPanel>
|
1398 | 1448 | <ItemsPanelTemplate>
|
1399 | 1449 | <UniformGrid
|
1400 |
| - Margin="0,0,6,18" |
| 1450 | + Margin="0,0,17,18" |
1401 | 1451 | HorizontalAlignment="Left"
|
1402 | 1452 | VerticalAlignment="Top"
|
1403 | 1453 | Columns="3"
|
|
1576 | 1626 | VerticalAlignment="Top">
|
1577 | 1627 | <StackPanel Orientation="Vertical">
|
1578 | 1628 | <TextBlock
|
1579 |
| - Margin="20,20,0,0" |
| 1629 | + Margin="20,20,20,0" |
1580 | 1630 | Padding="0,0,0,0"
|
1581 | 1631 | FontWeight="Bold"
|
1582 | 1632 | Foreground="{DynamicResource Color05B}"
|
1583 | 1633 | Text="{Binding Name}"
|
1584 | 1634 | TextWrapping="WrapWithOverflow"
|
1585 | 1635 | ToolTip="{Binding Name}" />
|
1586 | 1636 | <TextBlock
|
1587 |
| - Margin="20,4,0,0" |
| 1637 | + Margin="20,4,20,0" |
1588 | 1638 | Padding="0,0,20,0"
|
1589 | 1639 | Foreground="{DynamicResource Color05B}"
|
1590 | 1640 | Text="{Binding Version}"
|
|
1625 | 1675 | </ListBox.ItemTemplate>
|
1626 | 1676 | </ListBox>
|
1627 | 1677 | </Border>
|
1628 |
| - |
1629 | 1678 | </Grid>
|
1630 | 1679 | </TabItem>
|
1631 | 1680 | <!--#endregion-->
|
|
0 commit comments