-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #66 from MarcAnt01/2.0
2.0
- Loading branch information
Showing
33 changed files
with
4,033 additions
and
181 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
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 @@ | ||
|
Binary file not shown.
Binary file not shown.
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,41 @@ | ||
using System; | ||
using Windows.UI.Xaml; | ||
using Windows.UI.Xaml.Controls; | ||
|
||
namespace FluentScreenRecorder | ||
{ | ||
public sealed class CustomMediaTransportControls : MediaTransportControls | ||
{ | ||
public CustomMediaTransportControls() | ||
{ | ||
this.DefaultStyleKey = typeof(CustomMediaTransportControls); | ||
} | ||
|
||
public event EventHandler Deleted; | ||
public event EventHandler InfoTap; | ||
|
||
protected override void OnApplyTemplate() | ||
{ | ||
// This is where you would get your custom button and create an event handler for its click method. | ||
Button DeleteButton = GetTemplateChild("DeleteButton") as Button; | ||
DeleteButton.Click += DeleteButton_Click; | ||
Button InfoButton = GetTemplateChild("InfoButton") as Button; | ||
InfoButton.Click += InfoButton_Click; | ||
|
||
base.OnApplyTemplate(); | ||
} | ||
|
||
private void DeleteButton_Click(object sender, RoutedEventArgs e) | ||
{ | ||
// Raise an event on the custom control when 'like' is clicked | ||
Deleted?.Invoke(this, EventArgs.Empty); | ||
} | ||
|
||
private void InfoButton_Click(object sender, RoutedEventArgs e) | ||
{ | ||
InfoTap?.Invoke(this, EventArgs.Empty); | ||
} | ||
|
||
|
||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<ContentDialog | ||
x:Class="FluentScreenRecorder.Dialogs.VideoInfoDialog" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="using:FluentScreenRecorder.Dialogs" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
mc:Ignorable="d" | ||
Title="Info" | ||
CloseButtonText="Ok" | ||
CloseButtonStyle="{ThemeResource ButtonRevealStyle}"> | ||
|
||
<StackPanel> | ||
<TextBlock x:Name="Frameblock"/> | ||
<TextBlock x:Name="Widthblock"/> | ||
<TextBlock x:Name="Heightblock"/> | ||
<TextBlock x:Name="Sizeblock"/> | ||
</StackPanel> | ||
</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,54 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.Linq; | ||
using System.Runtime.InteropServices.WindowsRuntime; | ||
using Windows.Foundation; | ||
using Windows.Foundation.Collections; | ||
using Windows.UI.Xaml; | ||
using Windows.UI.Xaml.Controls; | ||
using Windows.UI.Xaml.Controls.Primitives; | ||
using Windows.UI.Xaml.Data; | ||
using Windows.UI.Xaml.Input; | ||
using Windows.UI.Xaml.Media; | ||
using Windows.UI.Xaml.Navigation; | ||
|
||
// The Content Dialog item template is documented at https://go.microsoft.com/fwlink/?LinkId=234238 | ||
|
||
namespace FluentScreenRecorder.Dialogs | ||
{ | ||
public sealed partial class VideoInfoDialog : ContentDialog | ||
{ | ||
public VideoInfoDialog() | ||
{ | ||
|
||
} | ||
|
||
public VideoInfoDialog(IDictionary<string, object> frameRate, IDictionary<string, object> width, IDictionary <string, object> height) | ||
{ | ||
this.InitializeComponent(); | ||
|
||
if (frameRate.TryGetValue("System.Video.FrameRate", out object frameRateValue) && frameRateValue is UInt32 framerate) | ||
{ | ||
Frameblock.Text = $"Framerate {framerate / 1000d}"; | ||
} | ||
|
||
if (width.TryGetValue("System.Video.FrameWidth", out object frameWidthValue) && frameWidthValue is UInt32 widthvalue) | ||
{ | ||
Widthblock.Text = $"Width {widthvalue}"; | ||
} | ||
|
||
if (height.TryGetValue("System.Video.FrameHeight", out object frameHeightValue) && frameHeightValue is UInt32 heightvalue) | ||
{ | ||
Heightblock.Text = $"Height {heightvalue}"; | ||
} | ||
|
||
|
||
|
||
|
||
} | ||
|
||
|
||
|
||
} | ||
} |
Oops, something went wrong.