|
- <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:bpa="clr-namespace:BPA.UIControl">
- <Style TargetType="{x:Type bpa:ControlDisplay}">
- <Setter Property="Foreground" Value="{DynamicResource DefaultForeground}" />
- <Setter Property="HorizontalContentAlignment" Value="Center" />
- <Setter Property="Focusable" Value="False" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type bpa:ControlDisplay}">
- <Grid bpa:GridHelper.RowDefinitions="Auto, Auto, *" bpa:PanelHelper.Spacing="10">
- <!--<TextBlock Style="{StaticResource Head3TextBlock}" Text="{TemplateBinding Title}" />
- <TextBox
- x:Name="descriptionText"
- Grid.Row="1"
- Height="Auto"
- Margin="3"
- BorderThickness="0"
- IsReadOnly="True"
- Text="{TemplateBinding Description}"
- TextWrapping="Wrap" />-->
- <bpa:Card Grid.Row="2"
- Margin="3 5"
- Padding="10">
- <ContentPresenter x:Name="contentPresenter"
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- Focusable="False"
- RecognizesAccessKey="True"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </bpa:Card>
- </Grid>
- <!--<ControlTemplate.Triggers>
- <Trigger Property="Description" Value="{x:Null}">
- <Setter TargetName="descriptionText" Property="Visibility" Value="Collapsed" />
- </Trigger>
- </ControlTemplate.Triggers>-->
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </ResourceDictionary>
|