You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
2.3 KiB

  1. <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. xmlns:bpa="clr-namespace:BPA.UIControl">
  4. <Style TargetType="{x:Type bpa:ControlDisplay}">
  5. <Setter Property="Foreground" Value="{DynamicResource DefaultForeground}" />
  6. <Setter Property="HorizontalContentAlignment" Value="Center" />
  7. <Setter Property="Focusable" Value="False" />
  8. <Setter Property="Template">
  9. <Setter.Value>
  10. <ControlTemplate TargetType="{x:Type bpa:ControlDisplay}">
  11. <Grid bpa:GridHelper.RowDefinitions="Auto, Auto, *" bpa:PanelHelper.Spacing="10">
  12. <!--<TextBlock Style="{StaticResource Head3TextBlock}" Text="{TemplateBinding Title}" />
  13. <TextBox
  14. x:Name="descriptionText"
  15. Grid.Row="1"
  16. Height="Auto"
  17. Margin="3"
  18. BorderThickness="0"
  19. IsReadOnly="True"
  20. Text="{TemplateBinding Description}"
  21. TextWrapping="Wrap" />-->
  22. <bpa:Card Grid.Row="2"
  23. Margin="3 5"
  24. Padding="10">
  25. <ContentPresenter x:Name="contentPresenter"
  26. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  27. Focusable="False"
  28. RecognizesAccessKey="True"
  29. SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
  30. </bpa:Card>
  31. </Grid>
  32. <!--<ControlTemplate.Triggers>
  33. <Trigger Property="Description" Value="{x:Null}">
  34. <Setter TargetName="descriptionText" Property="Visibility" Value="Collapsed" />
  35. </Trigger>
  36. </ControlTemplate.Triggers>-->
  37. </ControlTemplate>
  38. </Setter.Value>
  39. </Setter>
  40. </Style>
  41. </ResourceDictionary>