Fix announcement marker rounding for short cards
This commit is contained in:
@@ -24,86 +24,106 @@
|
|||||||
ClipToBounds="True"
|
ClipToBounds="True"
|
||||||
MouseEnter="OnAnnMouseEnter"
|
MouseEnter="OnAnnMouseEnter"
|
||||||
MouseLeave="OnAnnMouseLeave">
|
MouseLeave="OnAnnMouseLeave">
|
||||||
<Grid Background="Transparent"
|
<Grid Background="Transparent">
|
||||||
Height="auto">
|
|
||||||
|
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="6"/>
|
<ColumnDefinition Width="6" />
|
||||||
<ColumnDefinition Width="*"/>
|
<ColumnDefinition Width="*" />
|
||||||
<ColumnDefinition Width="auto"/>
|
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
<Grid.RowDefinitions>
|
<Border Grid.Column="0"
|
||||||
<RowDefinition Height="auto"/>
|
|
||||||
<RowDefinition Height="auto"/>
|
|
||||||
<RowDefinition Height="auto"/>
|
|
||||||
</Grid.RowDefinitions>
|
|
||||||
<Border Grid.RowSpan="3"
|
|
||||||
Grid.Column="0"
|
|
||||||
x:Name="annColor"
|
x:Name="annColor"
|
||||||
Background="{Binding Path=PrioColor}"
|
Background="{Binding Path=PrioColor}"
|
||||||
CornerRadius="12,0,0,12"
|
CornerRadius="12,0,0,12"
|
||||||
Margin="0" />
|
Margin="0"
|
||||||
<DockPanel Grid.Column="1" >
|
VerticalAlignment="Stretch" />
|
||||||
<Image Source="pack://application:,,,/Resources/StateOverlays/OverlayNewContentButton.png"
|
|
||||||
Panel.ZIndex="18"
|
|
||||||
Stretch="None"
|
|
||||||
HorizontalAlignment="Center"
|
|
||||||
VerticalAlignment="Center"
|
|
||||||
Visibility="{Binding Path=IsUnread, Converter={StaticResource BoolToVis}}"
|
|
||||||
x:Name="signal"
|
|
||||||
Width="15"
|
|
||||||
Height="15"
|
|
||||||
Cursor="Hand"
|
|
||||||
ToolTip="{x:Static resx:Resources.removeMarkup}"
|
|
||||||
Margin="5,0,0,0"
|
|
||||||
RenderTransformOrigin="0.5,0.5">
|
|
||||||
<Image.RenderTransform>
|
|
||||||
<ScaleTransform ScaleX="0.8"
|
|
||||||
ScaleY="0.8" />
|
|
||||||
</Image.RenderTransform>
|
|
||||||
</Image>
|
|
||||||
<TextBlock x:Name="txtDate" Grid.Row="0" Margin="10,0,5,0" HorizontalAlignment="Left" VerticalAlignment="Center" FontStyle="Italic" Foreground="{DynamicResource subtleTextColor}" Text="{Binding Path=CreatedDate,StringFormat={}{0:dd.MM.yyyy},FallbackValue='01.01.2021'}"></TextBlock>
|
|
||||||
</DockPanel>
|
|
||||||
|
|
||||||
<Image x:Name="imgOpen" Grid.Row="0" Grid.Column="2" Source="{DynamicResource appbar_new_window}" Width="20" Margin="0,2,8,0" ToolTip="{x:Static resx:Resources.CallAnnonceDetails}" Cursor="Hand"/>
|
<Grid Grid.Column="1"
|
||||||
<TextBlock x:Name="txtSubject"
|
Background="Transparent">
|
||||||
Grid.Row="1"
|
<Grid.ColumnDefinitions>
|
||||||
Grid.ColumnSpan="2"
|
<ColumnDefinition Width="*" />
|
||||||
Margin="15,5,5,0"
|
<ColumnDefinition Width="auto" />
|
||||||
HorizontalAlignment="Left"
|
</Grid.ColumnDefinitions>
|
||||||
Text="{Binding Path=Subject,FallbackValue='test Announcement'}"
|
<Grid.RowDefinitions>
|
||||||
VerticalAlignment="Center"
|
<RowDefinition Height="auto" />
|
||||||
FontWeight="Bold"
|
<RowDefinition Height="auto" />
|
||||||
Foreground="{DynamicResource sectionTitleColor}"
|
<RowDefinition Height="auto" />
|
||||||
ClipToBounds="True"/>
|
</Grid.RowDefinitions>
|
||||||
<TextBlock x:Name="txtContent"
|
|
||||||
Grid.Row="2"
|
<DockPanel Grid.Row="0"
|
||||||
Grid.ColumnSpan="2"
|
Grid.Column="0">
|
||||||
Margin="15,10,10,0"
|
<Image Source="pack://application:,,,/Resources/StateOverlays/OverlayNewContentButton.png"
|
||||||
VerticalAlignment="Center"
|
Panel.ZIndex="18"
|
||||||
Text="{Binding Path=Text,FallbackValue='test text'}"
|
Stretch="None"
|
||||||
Foreground="{DynamicResource subtleTextColor}"
|
HorizontalAlignment="Center"
|
||||||
TextWrapping="Wrap"
|
VerticalAlignment="Center"
|
||||||
TextTrimming="CharacterEllipsis"
|
Visibility="{Binding Path=IsUnread, Converter={StaticResource BoolToVis}}"
|
||||||
LineStackingStrategy="BlockLineHeight"
|
x:Name="signal"
|
||||||
LineHeight="18"
|
Width="15"
|
||||||
Height="58"
|
Height="15"
|
||||||
Visibility="Collapsed" />
|
Cursor="Hand"
|
||||||
<TextBlock x:Name="txtNotice"
|
ToolTip="{x:Static resx:Resources.removeMarkup}"
|
||||||
Background="Transparent"
|
Margin="5,0,0,0"
|
||||||
IsHitTestVisible="True"
|
RenderTransformOrigin="0.5,0.5">
|
||||||
Grid.Row="2"
|
<Image.RenderTransform>
|
||||||
Grid.ColumnSpan="2"
|
<ScaleTransform ScaleX="0.8"
|
||||||
Margin="15,5,10,0"
|
ScaleY="0.8" />
|
||||||
VerticalAlignment="Center"
|
</Image.RenderTransform>
|
||||||
FontStyle="Italic"
|
</Image>
|
||||||
Foreground="{DynamicResource subtleTextColor}"
|
<TextBlock x:Name="txtDate"
|
||||||
TextWrapping="Wrap"
|
Margin="10,0,5,0"
|
||||||
TextTrimming="CharacterEllipsis"
|
HorizontalAlignment="Left"
|
||||||
LineStackingStrategy="BlockLineHeight"
|
VerticalAlignment="Center"
|
||||||
LineHeight="18"
|
FontStyle="Italic"
|
||||||
Height="40" />
|
Foreground="{DynamicResource subtleTextColor}"
|
||||||
|
Text="{Binding Path=CreatedDate,StringFormat={}{0:dd.MM.yyyy},FallbackValue='01.01.2021'}" />
|
||||||
|
</DockPanel>
|
||||||
|
|
||||||
|
<Image x:Name="imgOpen"
|
||||||
|
Grid.Row="0"
|
||||||
|
Grid.Column="1"
|
||||||
|
Source="{DynamicResource appbar_new_window}"
|
||||||
|
Width="20"
|
||||||
|
Margin="0,2,8,0"
|
||||||
|
ToolTip="{x:Static resx:Resources.CallAnnonceDetails}"
|
||||||
|
Cursor="Hand" />
|
||||||
|
<TextBlock x:Name="txtSubject"
|
||||||
|
Grid.Row="1"
|
||||||
|
Grid.ColumnSpan="2"
|
||||||
|
Margin="15,5,5,0"
|
||||||
|
HorizontalAlignment="Left"
|
||||||
|
Text="{Binding Path=Subject,FallbackValue='test Announcement'}"
|
||||||
|
VerticalAlignment="Center"
|
||||||
|
FontWeight="Bold"
|
||||||
|
Foreground="{DynamicResource sectionTitleColor}"
|
||||||
|
ClipToBounds="True" />
|
||||||
|
<TextBlock x:Name="txtContent"
|
||||||
|
Grid.Row="2"
|
||||||
|
Grid.ColumnSpan="2"
|
||||||
|
Margin="15,10,10,0"
|
||||||
|
VerticalAlignment="Center"
|
||||||
|
Text="{Binding Path=Text,FallbackValue='test text'}"
|
||||||
|
Foreground="{DynamicResource subtleTextColor}"
|
||||||
|
TextWrapping="Wrap"
|
||||||
|
TextTrimming="CharacterEllipsis"
|
||||||
|
LineStackingStrategy="BlockLineHeight"
|
||||||
|
LineHeight="18"
|
||||||
|
Height="58"
|
||||||
|
Visibility="Collapsed" />
|
||||||
|
<TextBlock x:Name="txtNotice"
|
||||||
|
Background="Transparent"
|
||||||
|
IsHitTestVisible="True"
|
||||||
|
Grid.Row="2"
|
||||||
|
Grid.ColumnSpan="2"
|
||||||
|
Margin="15,5,10,0"
|
||||||
|
VerticalAlignment="Center"
|
||||||
|
FontStyle="Italic"
|
||||||
|
Foreground="{DynamicResource subtleTextColor}"
|
||||||
|
TextWrapping="Wrap"
|
||||||
|
TextTrimming="CharacterEllipsis"
|
||||||
|
LineStackingStrategy="BlockLineHeight"
|
||||||
|
LineHeight="18"
|
||||||
|
Height="40" />
|
||||||
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Border>
|
</Border>
|
||||||
</UserControl>
|
</UserControl>
|
||||||
|
|||||||
Reference in New Issue
Block a user