Skip to content

Commit

Permalink
Fix And More
Browse files Browse the repository at this point in the history
  • Loading branch information
MaKrotos committed Feb 7, 2024
1 parent 806e46f commit c4e4fde
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 365 deletions.
98 changes: 0 additions & 98 deletions VK UI3/Controllers/TrackController.xaml

This file was deleted.

264 changes: 0 additions & 264 deletions VK UI3/Controllers/TrackController.xaml.cs

This file was deleted.

2 changes: 1 addition & 1 deletion VK UI3/Controls/TrackControl.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ private void TrackControl_DataContextChanged(FrameworkElement sender, DataContex
SecondsToTimeConverter converter = new SecondsToTimeConverter();

// Преобразование секунд в строку времени
object timeString = converter.Convert(3600, null, null, null);
object timeString = converter.Convert(track.Duration, null, null, null);
Console.WriteLine(timeString); // Выводит "60:00"
Time.Text = (string) timeString;
}
Expand Down
4 changes: 2 additions & 2 deletions VK UI3/Views/PlayList.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
xmlns:local="using:VK_UI3"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:custom="using:VK_UI3.Controllers"
xmlns:custom="using:VK_UI3.Controls"
mc:Ignorable="d"
>
<Grid>
Expand All @@ -19,7 +19,7 @@
<ListView Grid.Row="0" AllowDrop="True" CanReorderItems="True" x:Name="TrackListView" ItemsSource="{x:Bind Tracks.listAudio, Mode=OneWay}" IsItemClickEnabled="False" SelectionMode="None">
<ListView.ItemTemplate>
<DataTemplate>
<custom:TrackController TrackData="{Binding }"></custom:TrackController>
<custom:TrackControl></custom:TrackControl>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
Expand Down

0 comments on commit c4e4fde

Please sign in to comment.