diff --git a/App.axaml b/App.axaml
new file mode 100644
index 0000000..89a7161
--- /dev/null
+++ b/App.axaml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/App.axaml.cs b/App.axaml.cs
new file mode 100644
index 0000000..8b7ca73
--- /dev/null
+++ b/App.axaml.cs
@@ -0,0 +1,23 @@
+using Avalonia;
+using Avalonia.Controls.ApplicationLifetimes;
+using Avalonia.Markup.Xaml;
+
+namespace SddpViewer;
+
+public partial class App : Application
+{
+ public override void Initialize()
+ {
+ AvaloniaXamlLoader.Load(this);
+ }
+
+ public override void OnFrameworkInitializationCompleted()
+ {
+ if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop)
+ {
+ desktop.MainWindow = new MainWindow();
+ }
+
+ base.OnFrameworkInitializationCompleted();
+ }
+}
\ No newline at end of file
diff --git a/DiscoveredDeviceViewModel.cs b/DiscoveredDeviceViewModel.cs
new file mode 100644
index 0000000..897ebc8
--- /dev/null
+++ b/DiscoveredDeviceViewModel.cs
@@ -0,0 +1,53 @@
+namespace SddpViewer
+{
+ using System;
+ using System.Threading.Tasks;
+
+ using CommunityToolkit.Mvvm.ComponentModel;
+
+ using Rssdp;
+
+ public partial class DiscoveredDeviceViewModel : ObservableObject
+ {
+ private readonly DiscoveredSsdpDevice device;
+
+ public DiscoveredDeviceViewModel(DiscoveredSsdpDevice device)
+ {
+ this.device = device;
+ }
+
+ ///
+ /// Sets or returns the type of notification, being either a uuid, device type, service type or upnp:rootdevice.
+ ///
+ public string NotificationType => this.device.NotificationType;
+
+ ///
+ /// Sets or returns the universal service name (USN) of the device.
+ ///
+ public string Usn => this.device.Usn;
+
+ ///
+ /// Sets or returns a URL pointing to the device description document for this device.
+ ///
+ public Uri DescriptionLocation => this.device.DescriptionLocation;
+
+ ///
+ /// Sets or returns the length of time this information is valid for (from the time).
+ ///
+ public TimeSpan CacheLifetime => this.device.CacheLifetime;
+
+ ///
+ /// Sets or returns the date and time this information was received.
+ ///
+ public DateTimeOffset AsAt => this.device.AsAt;
+
+ [ObservableProperty]
+ private string _friendlyName = "";
+
+ public async Task GetFurtherInformationAsync()
+ {
+ var ssdpDevice = await this.device.GetDeviceInfo().ConfigureAwait(false);
+ FriendlyName = ssdpDevice.FriendlyName;
+ }
+ }
+}
\ No newline at end of file
diff --git a/MainWindow.axaml b/MainWindow.axaml
new file mode 100644
index 0000000..76c9f27
--- /dev/null
+++ b/MainWindow.axaml
@@ -0,0 +1,36 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/MainWindow.axaml.cs b/MainWindow.axaml.cs
new file mode 100644
index 0000000..befcecb
--- /dev/null
+++ b/MainWindow.axaml.cs
@@ -0,0 +1,11 @@
+using Avalonia.Controls;
+
+namespace SddpViewer;
+
+public partial class MainWindow : Window
+{
+ public MainWindow()
+ {
+ InitializeComponent();
+ }
+}
\ No newline at end of file
diff --git a/MainWindowViewModel.cs b/MainWindowViewModel.cs
new file mode 100644
index 0000000..bbfbabb
--- /dev/null
+++ b/MainWindowViewModel.cs
@@ -0,0 +1,44 @@
+namespace SddpViewer;
+
+using System.Collections.ObjectModel;
+using System.Threading.Tasks;
+
+using CommunityToolkit.Mvvm.ComponentModel;
+using CommunityToolkit.Mvvm.Input;
+
+using Rssdp;
+
+public partial class MainWindowViewModel : ObservableObject
+{
+ [ObservableProperty]
+ private string _deviceIpAddress = "192.168.42.193";
+
+ [ObservableProperty]
+ private string _notificationFilter = "upnp:rootdevice";
+
+ public ObservableCollection SddpDevices { get; } = new();
+
+ [RelayCommand(AllowConcurrentExecutions = false)]
+ private async Task SearchDevicesNowAsync()
+ {
+ SddpDevices.Clear();
+ var locator = new SsdpDeviceLocator(DeviceIpAddress);
+ if (!string.IsNullOrWhiteSpace(NotificationFilter))
+ {
+ locator.NotificationFilter = NotificationFilter;
+ }
+ var availableDevices = await locator.SearchAsync().ConfigureAwait(true);
+ foreach (var ssdpDevice in availableDevices)
+ {
+ var discoveredDeviceViewModel = new DiscoveredDeviceViewModel(ssdpDevice);
+ SddpDevices.Add(discoveredDeviceViewModel);
+ }
+ await Parallel.ForEachAsync(
+ SddpDevices,
+ async (device, token) =>
+ {
+ await device.GetFurtherInformationAsync().ConfigureAwait(true);
+ }
+ ).ConfigureAwait(true);
+ }
+}
diff --git a/Program.cs b/Program.cs
new file mode 100644
index 0000000..b64bcf5
--- /dev/null
+++ b/Program.cs
@@ -0,0 +1,21 @@
+using Avalonia;
+using System;
+
+namespace SddpViewer;
+
+class Program
+{
+ // Initialization code. Don't use any Avalonia, third-party APIs or any
+ // SynchronizationContext-reliant code before AppMain is called: things aren't initialized
+ // yet and stuff might break.
+ [STAThread]
+ public static void Main(string[] args) => BuildAvaloniaApp()
+ .StartWithClassicDesktopLifetime(args);
+
+ // Avalonia configuration, don't remove; also used by visual designer.
+ public static AppBuilder BuildAvaloniaApp()
+ => AppBuilder.Configure()
+ .UsePlatformDetect()
+ .WithInterFont()
+ .LogToTrace();
+}
diff --git a/SddpViewer.csproj b/SddpViewer.csproj
new file mode 100644
index 0000000..12e727d
--- /dev/null
+++ b/SddpViewer.csproj
@@ -0,0 +1,22 @@
+
+
+ WinExe
+ net8.0
+ enable
+ true
+ app.manifest
+ true
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/SddpViewer.sln b/SddpViewer.sln
new file mode 100644
index 0000000..f1990a4
--- /dev/null
+++ b/SddpViewer.sln
@@ -0,0 +1,22 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 17
+VisualStudioVersion = 17.0.31903.59
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SddpViewer", "SddpViewer.csproj", "{8383E1D9-75BD-46D0-B0D5-686AA49EFFF1}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {8383E1D9-75BD-46D0-B0D5-686AA49EFFF1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {8383E1D9-75BD-46D0-B0D5-686AA49EFFF1}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {8383E1D9-75BD-46D0-B0D5-686AA49EFFF1}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {8383E1D9-75BD-46D0-B0D5-686AA49EFFF1}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+EndGlobal
diff --git a/app.manifest b/app.manifest
new file mode 100644
index 0000000..cf6a759
--- /dev/null
+++ b/app.manifest
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+