Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.56 KB | None | 0 0
  1. <Style x:Key="WrapStyle" TargetType="TextBlock">
  2. <Setter Property="TextWrapping" Value="Wrap"/>
  3. <Setter Property="FontSize" Value="{Binding ConfigWindowModels.ServicesTextFontSize}" />
  4. <Setter Property="FontFamily" Value="{Binding ConfigWindowModels.ServicesTextFontFamily}" />
  5. <Setter Property="Foreground" Value="{Binding ConfigWindowModels.ServicesForeGroundText}" />
  6. <Setter Property="MaxHeight" Value="100"/>
  7. <Setter Property="TextTrimming" Value="CharacterEllipsis"/>
  8. </Style>
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15. <ListBox.ItemTemplate>
  16. <DataTemplate>
  17. <Grid >
  18. <Grid.ColumnDefinitions>
  19. <ColumnDefinition Width="60"/>
  20. <ColumnDefinition Width="20"/>
  21. <ColumnDefinition />
  22. </Grid.ColumnDefinitions>
  23.  
  24. <Grid>
  25. <Grid.RowDefinitions>
  26. <RowDefinition Height="10"/>
  27. <RowDefinition/>
  28. <RowDefinition Height="80"/>
  29. </Grid.RowDefinitions>
  30. <Image Width="35" Source="/Resources/check.png" Grid.Row="1"/>
  31. <TextBlock Height="28" HorizontalAlignment="Center" FontFamily="Times New Roman" FontSize="25" FontWeight="Bold" Grid.Row="1" Text="" />
  32. </Grid>
  33. <Grid Grid.Column="2">
  34. <Grid.RowDefinitions>
  35. <RowDefinition Height="13"/>
  36. <RowDefinition/>
  37. <RowDefinition/>
  38. <RowDefinition/>
  39. </Grid.RowDefinitions>
  40. <TextBlock Style="{StaticResource WrapStyle}" Grid.Row="1" Text="{Binding Name}" Grid.Column="2"/>
  41. </Grid>
  42. </Grid>
  43.  
  44. </DataTemplate>
  45. </ListBox.ItemTemplate>
  46. </ListBox>
  47.  
  48. <ListBox ScrollViewer.VerticalScrollBarVisibility="Disabled" HorizontalContentAlignment="Stretch" Grid.Row="1" Grid.Column="1" Background="Transparent" ScrollViewer.HorizontalScrollBarVisibility="Disabled" BorderThickness="0" ItemsSource="{Binding ListCollectionSecond}" Visibility="{Binding VisibleList}" SelectedItem="{Binding ListCollectionSelectedItem, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}">
  49. <i:Interaction.Triggers>
  50. <i:EventTrigger EventName="SelectionChanged">
  51. <i:InvokeCommandAction Command="{Binding DoubleClick}"/>
  52. </i:EventTrigger>
  53. </i:Interaction.Triggers>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement