mirror of
https://github.com/BlossomiShymae/Needlework.Net.git
synced 2025-12-06 18:20:47 +01:00
feat: update styling for libraries
This commit is contained in:
@@ -98,7 +98,7 @@
|
|||||||
<ItemsRepeater.ItemTemplate>
|
<ItemsRepeater.ItemTemplate>
|
||||||
<DataTemplate x:DataType="vm:LibraryViewModel">
|
<DataTemplate x:DataType="vm:LibraryViewModel">
|
||||||
<ContentControl Content="{Binding}"
|
<ContentControl Content="{Binding}"
|
||||||
Margin="0 12 0 0"/>
|
Margin="0 12 16 0"/>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
</ItemsRepeater.ItemTemplate>
|
</ItemsRepeater.ItemTemplate>
|
||||||
</ItemsRepeater>
|
</ItemsRepeater>
|
||||||
|
|||||||
@@ -6,20 +6,24 @@
|
|||||||
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
||||||
x:Class="Needlework.Net.Views.Pages.Home.LibraryView"
|
x:Class="Needlework.Net.Views.Pages.Home.LibraryView"
|
||||||
x:DataType="vm:LibraryViewModel">
|
x:DataType="vm:LibraryViewModel">
|
||||||
<StackPanel>
|
<Border Background="{DynamicResource ControlFillColorDefaultBrush}"
|
||||||
<TextBlock>
|
Padding="8"
|
||||||
<Run Text="{Binding Library.Language}"
|
CornerRadius="4">
|
||||||
FontWeight="Bold"/>
|
<StackPanel>
|
||||||
<Bold> - </Bold>
|
<TextBlock>
|
||||||
<Run Text="{Binding Library.Repo}"
|
<Run Text="{Binding Library.Language}"
|
||||||
FontWeight="Bold"/>
|
FontWeight="Bold"/>
|
||||||
</TextBlock>
|
<Bold> - </Bold>
|
||||||
<TextBlock Text="{Binding Library.Description}"
|
<Run Text="{Binding Library.Repo}"
|
||||||
IsVisible="{Binding Library.Description, Converter={StaticResource NullableToVisibilityConverter}}"
|
FontWeight="Bold"/>
|
||||||
TextAlignment="Left"
|
</TextBlock>
|
||||||
TextWrapping="WrapWithOverflow"
|
<TextBlock Text="{Binding Library.Description}"
|
||||||
Width="350"/>
|
IsVisible="{Binding Library.Description, Converter={StaticResource NullableToVisibilityConverter}}"
|
||||||
<HyperlinkButton Content="{Binding Library.Link}" NavigateUri="{Binding Library.Link}"
|
TextAlignment="Left"
|
||||||
Margin="0 4 0 0"/>
|
TextWrapping="WrapWithOverflow"
|
||||||
</StackPanel>
|
Width="300"/>
|
||||||
|
<HyperlinkButton Content="{Binding Library.Link}" NavigateUri="{Binding Library.Link}"
|
||||||
|
Margin="0 4 0 0"/>
|
||||||
|
</StackPanel>
|
||||||
|
</Border>
|
||||||
</UserControl>
|
</UserControl>
|
||||||
|
|||||||
Reference in New Issue
Block a user