-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ff362b6
commit b29799f
Showing
8 changed files
with
261 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<ui:ContentDialog x:Class="ZenovaLauncher.ModDetailsDialog" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:local="clr-namespace:ZenovaLauncher" | ||
xmlns:ui="http://schemas.modernwpf.com/2019" | ||
mc:Ignorable="d" | ||
Style="{StaticResource LauncherContentDialog}" | ||
HorizontalContentAlignment="Center" | ||
Title="Mod Details" | ||
SecondaryButtonText="Exit" | ||
CloseButtonText="Close"> | ||
|
||
<Grid> | ||
<ui:SimpleStackPanel VerticalAlignment="Stretch" HorizontalAlignment="Center" Spacing="10" Margin="10" Width="400"> | ||
<ui:SimpleStackPanel> | ||
<TextBlock FontWeight="Bold" FontSize="16" Text="{Binding SelectedMod.Name}" /> | ||
<TextBlock FontSize="12"> | ||
v<Run Text="{Binding SelectedMod.ModVersion, Mode=OneWay}" /> | ||
</TextBlock> | ||
<TextBlock FontSize="12"> | ||
By <Run Text="{Binding SelectedMod.Author}" /> | ||
</TextBlock> | ||
</ui:SimpleStackPanel> | ||
<Separator Background="{DynamicResource AppBarSeparatorLowForeground}" /> | ||
<TextBlock x:Name="ModDescription" TextWrapping="Wrap"/> | ||
</ui:SimpleStackPanel> | ||
</Grid> | ||
</ui:ContentDialog> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
using ModernWpf.Controls; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using System.Windows; | ||
using System.Windows.Controls; | ||
using System.Windows.Data; | ||
using System.Windows.Documents; | ||
using System.Windows.Input; | ||
using System.Windows.Media; | ||
using System.Windows.Media.Imaging; | ||
using System.Windows.Navigation; | ||
using System.Windows.Shapes; | ||
|
||
namespace ZenovaLauncher | ||
{ | ||
/// <summary> | ||
/// Interaction logic for ModDetailsDialog.xaml | ||
/// </summary> | ||
public partial class ModDetailsDialog : ContentDialog | ||
{ | ||
public Mod SelectedMod { get; set; } | ||
|
||
public ModDetailsDialog(Mod selectedMod) | ||
{ | ||
InitializeComponent(); | ||
DataContext = this; | ||
SelectedMod = selectedMod; | ||
SelectedMod.SetDescriptionTextBlock(ModDescription); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters