AllIconsView.xaml 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <UserControl x:Class="SKMC.UI.DesignApp.Views.AllIconsView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:SKMC.UI.DesignApp.Views"
  7. xmlns:prism="http://prismlibrary.com/"
  8. prism:ViewModelLocator.AutoWireViewModel="True"
  9. mc:Ignorable="d"
  10. d:DesignHeight="450" d:DesignWidth="800">
  11. <Grid>
  12. <ScrollViewer Style="{StaticResource ScrollViewer.Default}"
  13. HorizontalScrollBarVisibility="Disabled">
  14. <ItemsControl ItemsSource="{Binding Icons}"
  15. HorizontalAlignment="Center"
  16. VerticalAlignment="Center"
  17. Margin="3">
  18. <ItemsControl.ItemsPanel>
  19. <ItemsPanelTemplate>
  20. <WrapPanel />
  21. </ItemsPanelTemplate>
  22. </ItemsControl.ItemsPanel>
  23. <ItemsControl.ItemTemplate>
  24. <DataTemplate>
  25. <Border Margin="2" Background="{StaticResource Brush.PreviewBackground}"
  26. Width="205"
  27. Height="120">
  28. <Grid ToolTip="{Binding Key}">
  29. <Grid.RowDefinitions>
  30. <RowDefinition Height="*"/>
  31. <RowDefinition Height="auto"/>
  32. </Grid.RowDefinitions>
  33. <Path Data="{Binding Data}"
  34. Width="40" Height="40"
  35. Stretch="Uniform"
  36. Stroke="{StaticResource Brush.Text}"
  37. HorizontalAlignment="Center"
  38. VerticalAlignment="Center"
  39. StrokeThickness="1.2"/>
  40. <TextBlock Grid.Row="1" Text="{Binding Key}"
  41. FontSize="{StaticResource FontSize.Label}"
  42. HorizontalAlignment="Center"
  43. Foreground="{StaticResource Brush.Text}"
  44. Margin="0 0 0 5"/>
  45. </Grid>
  46. </Border>
  47. </DataTemplate>
  48. </ItemsControl.ItemTemplate>
  49. </ItemsControl>
  50. </ScrollViewer>
  51. </Grid>
  52. </UserControl>