Skip to content

Commit 8b33186

Browse files
committed
v0.1.39
1 parent 56f7d63 commit 8b33186

File tree

5 files changed

+452
-3
lines changed

5 files changed

+452
-3
lines changed

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project>
22
<PropertyGroup>
3-
<Version>0.1.37</Version>
3+
<Version>0.1.39</Version>
44
<Company>TensorStack</Company>
55
<Copyright>TensorStack - 2025</Copyright>
66
<RepositoryUrl>https://github.com/TensorStack-AI/TensorStack</RepositoryUrl>

Examples/TensorStack.Example.Upscaler/Views/InterpolationView.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@
114114
SplitterPosition="Source"
115115
SplitterDirection="LeftToRight"
116116
Progress="{Binding Progress}"
117-
Source="{Binding ResultVideo}"
118-
OverlaySource="{Binding CompareVideo}"
117+
Source="{Binding ResultVideo, Mode=TwoWay}"
118+
OverlaySource="{Binding CompareVideo, Mode=TwoWay}"
119119
IsLoadEnabled="False"
120120
IsLoadOverlayEnabled="False"/>
121121
</Grid>
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
<CommonControls:BaseControl x:Class="TensorStack.WPF.Controls.AudioElement"
2+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4+
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
5+
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
6+
xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
7+
xmlns:CommonControls="clr-namespace:TensorStack.WPF.Controls"
8+
xmlns:CommonConverters="clr-namespace:TensorStack.WPF.Converters"
9+
x:Name="AudioElementUI" >
10+
<Border DataContext="{Binding ElementName=AudioElementUI}" BorderThickness="1" BorderBrush="{StaticResource ComboBoxBorder}" Background="{StaticResource DefaultBackgroundColor}">
11+
<DockPanel>
12+
13+
<Grid>
14+
<MediaElement x:Name="AudioControl"
15+
Source="{Binding FileSource, Converter={StaticResource StringToUriConverter}}"
16+
Volume="{Binding Volume}"
17+
LoadedBehavior="Manual"
18+
UnloadedBehavior="Close"
19+
ScrubbingEnabled="True"
20+
Loaded="AudioControl_Loaded"
21+
MediaOpened="AudioControl_MediaOpened"
22+
MediaEnded="AudioControl_MediaEnded"
23+
MouseLeftButtonDown="AudioControl_MouseDown" />
24+
<Image DockPanel.Dock="Left" Source="{StaticResource PlaceholderVideo}" Stretch="Uniform" MinWidth="{Binding ActualHeight}"/>
25+
</Grid>
26+
27+
28+
29+
30+
<DockPanel LastChildFill="False">
31+
<TextBlock Text="{Binding FileSource}" DockPanel.Dock="Top"/>
32+
33+
<StackPanel DockPanel.Dock="Bottom">
34+
35+
<ProgressBar
36+
Height="10"
37+
Margin="1"
38+
Value="{Binding Progress.Value, Mode=OneWay}"
39+
Maximum="{Binding Progress.Maximum, Mode=OneWay}" >
40+
<ProgressBar.Style>
41+
<Style TargetType="{x:Type ProgressBar}" BasedOn="{StaticResource {x:Type ProgressBar}}">
42+
<Setter Property="IsIndeterminate" Value="False"/>
43+
<Style.Triggers>
44+
<DataTrigger Binding="{Binding Progress.Value, ElementName=VideoElementUI}" Value="-1">
45+
<Setter Property="IsIndeterminate" Value="True"/>
46+
</DataTrigger>
47+
</Style.Triggers>
48+
</Style>
49+
</ProgressBar.Style>
50+
</ProgressBar>
51+
52+
<UniformGrid Columns="4" DockPanel.Dock="Bottom">
53+
<Button Command="{Binding LoadCommand}" Visibility="{Binding IsLoadEnabled, Converter={StaticResource BooleanToVisibilityConverter}}" >
54+
<CommonControls:FontAwesome Icon="&#xf0ee;" />
55+
</Button>
56+
<Button Command="{Binding SaveCommand}" Visibility="{Binding IsSaveEnabled, Converter={StaticResource BooleanToVisibilityConverter}}">
57+
<CommonControls:FontAwesome Icon="&#xf0c7;" />
58+
</Button>
59+
<Grid>
60+
<Button Command="{Binding PlayCommand}" >
61+
<CommonControls:FontAwesome Icon="&#xf04b;" Visibility="{Binding MediaState, Converter={StaticResource InverseEnumToVisibilityConverter}, ConverterParameter=Play}"/>
62+
</Button>
63+
<Button Command="{Binding PauseCommand}" Visibility="{Binding MediaState, Converter={StaticResource EnumToVisibilityConverter}, ConverterParameter=Play}">
64+
<CommonControls:FontAwesome Icon="&#xf04c;" />
65+
</Button>
66+
</Grid>
67+
<Button Command="{Binding StopCommand}">
68+
<CommonControls:FontAwesome Icon="&#xf04d;" />
69+
</Button>
70+
</UniformGrid>
71+
72+
</StackPanel>
73+
</DockPanel>
74+
</DockPanel>
75+
</Border>
76+
</CommonControls:BaseControl>

0 commit comments

Comments
 (0)