|
@@ -2,6 +2,8 @@
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:vm="using:VeloeMinecraftLauncher.ViewModels"
|
|
xmlns:vm="using:VeloeMinecraftLauncher.ViewModels"
|
|
xmlns:m="using:VeloeMinecraftLauncher.Models"
|
|
xmlns:m="using:VeloeMinecraftLauncher.Models"
|
|
|
|
+ xmlns:entity="using:VeloeMinecraftLauncher.Models.Entity"
|
|
|
|
+ xmlns:utils="using:VeloeMinecraftLauncher.Utils"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:titlebars="using:VeloeMinecraftLauncher.Views.TitleBar"
|
|
xmlns:titlebars="using:VeloeMinecraftLauncher.Views.TitleBar"
|
|
@@ -158,11 +160,38 @@
|
|
HorizontalScrollBarVisibility="Auto"
|
|
HorizontalScrollBarVisibility="Auto"
|
|
VerticalAlignment="Stretch"
|
|
VerticalAlignment="Stretch"
|
|
HorizontalAlignment="Stretch">
|
|
HorizontalAlignment="Stretch">
|
|
- <StackPanel
|
|
|
|
- Name="ChangeLogStackPanel"
|
|
|
|
- Width="760"
|
|
|
|
- Margin="5,5,5,5">
|
|
|
|
- </StackPanel>
|
|
|
|
|
|
+ <ItemsControl ItemsSource="{Binding Changelogs}">
|
|
|
|
+ <ItemsControl.ItemsPanel>
|
|
|
|
+ <ItemsPanelTemplate>
|
|
|
|
+ <StackPanel
|
|
|
|
+ Width="760"
|
|
|
|
+ Margin="5,5,5,5"/>
|
|
|
|
+ </ItemsPanelTemplate>
|
|
|
|
+ </ItemsControl.ItemsPanel>
|
|
|
|
+ <ItemsControl.ItemTemplate>
|
|
|
|
+ <utils:ChangelogDataTemplate>
|
|
|
|
+ <DataTemplate DataType="entity:Changelog" x:Key="True">
|
|
|
|
+ <TextBlock
|
|
|
|
+ Text="{Binding Text}"
|
|
|
|
+ VerticalAlignment="Stretch"
|
|
|
|
+ TextWrapping="Wrap"/>
|
|
|
|
+ </DataTemplate>
|
|
|
|
+ <DataTemplate DataType="entity:Changelog" x:Key="False">
|
|
|
|
+ <StackPanel>
|
|
|
|
+ <TextBlock
|
|
|
|
+ Text="{Binding Title}"
|
|
|
|
+ VerticalAlignment="Stretch"
|
|
|
|
+ TextWrapping="Wrap"
|
|
|
|
+ FontSize="16"/>
|
|
|
|
+ <TextBlock
|
|
|
|
+ Text="{Binding Text}"
|
|
|
|
+ VerticalAlignment="Stretch"
|
|
|
|
+ TextWrapping="Wrap"/>
|
|
|
|
+ </StackPanel>
|
|
|
|
+ </DataTemplate>
|
|
|
|
+ </utils:ChangelogDataTemplate>
|
|
|
|
+ </ItemsControl.ItemTemplate>
|
|
|
|
+ </ItemsControl>
|
|
</ScrollViewer>
|
|
</ScrollViewer>
|
|
</Panel>
|
|
</Panel>
|
|
</TabItem>
|
|
</TabItem>
|