CrossTalkCommentsWinUI 1.0.4
dotnet add package CrossTalkCommentsWinUI --version 1.0.4
NuGet\Install-Package CrossTalkCommentsWinUI -Version 1.0.4
<PackageReference Include="CrossTalkCommentsWinUI" Version="1.0.4" />
<PackageVersion Include="CrossTalkCommentsWinUI" Version="1.0.4" />
<PackageReference Include="CrossTalkCommentsWinUI" />
paket add CrossTalkCommentsWinUI --version 1.0.4
#r "nuget: CrossTalkCommentsWinUI, 1.0.4"
#:package CrossTalkCommentsWinUI@1.0.4
#addin nuget:?package=CrossTalkCommentsWinUI&version=1.0.4
#tool nuget:?package=CrossTalkCommentsWinUI&version=1.0.4
CrossTalk Comments WinUI 3 Component Library
Embed CrossTalk Live Chat, Video Player with Live Chat and Comments into your WinUI 3 applications using CrossTalkCommentsWinUI nuget package. Add audience engagement and increase user interaction
Installation
dotnet add package CrossTalkCommentsWinUI
Usage
Add the line below to the XAML page or component where you intend to you CrossTalk widgets
xmlns:widgets="using:CrossTalkWinUILib.Widgets"
You can rename the widgets prefix to whatever you like, do make sure to update the widget tags accordingly in the rest of your code.
You can then use the following CrossTalk widgets in your XAML code:
<CrossTalkComments>- see live demo at CrossTalk Comments<CrossTalkLiveChat>- see live demo at CrossTalk Live Chat<CrossTalkVideoPlayer>- see live demo at CrossTalk Video Player with Live Chat
You'll need a CrossTalk account (yes, we have a forever-free plan, no credit card required), head over to CrossTalk Dashboard to access the Web Property information.
Comments
Use the <CrossTalkComments> UI Control to add comments to your page.
PS: Ensure either PageID or URL is provided.
Params for <CrossTalkComments>:
| Param Name | Param Info | Required or not | Type |
|---|---|---|---|
WP |
Web Property name | Required | string |
URL |
Page URL | Optional | string |
PageID |
Unique PageID | Optional | string |
Theme |
Light or Dark theme | Optional | string |
Reactions |
Whether to show Reaction Images or not | Optional | bool |
Locale |
Locale of the UI component | Optional | string |
<?xml version="1.0" encoding="utf-8"?>
<Window
x:Class="YourSample.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:WinUILibSample"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
Title="CrossTalk Comments WinUI"
xmlns:widgets="using:CrossTalkWinUILib.Widgets">
<StackPanel Orientation="Vertical">
<TextBlock Margin="10,10,0,0" Text="CrossTalk Comments Sample" FontSize="16" FontWeight="Bold"/>
<widgets:CrossTalkComments WP="YOUR_WEB_PROPERTY" PageID="YOUR_PAGE_ID" Theme="dark" Reactions="true" />
</StackPanel>
</Window>
Until you make an account on CrossTalk, you can use the Web Property crosstalkDemo to test features using the samples below.
CrossTalk has a forever-free plan so if you love what you see, come join us!
Bare-Minimum CrossTalk Comments XAML Sample Code
<?xml version="1.0" encoding="utf-8"?>
<Window
x:Class="YourSample.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:WinUILibSample"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
Title="CrossTalk Video Player WinUI"
xmlns:widgets="using:CrossTalkWinUILib.Widgets">
<StackPanel Orientation="Vertical">
<widgets:CrossTalkComments WP="crosstalkDemo" PageID="home" Theme="light" Reactions="true" />
</StackPanel>
</Window>
Video Player with Live Chat
Use the <CrossTalkVideoPlayer> UI Control to add Video Player with live chat to your page.
You can use PageID or URL to link the video player to a specific page for Live Chat messages, if neither are provided, a unique PageID will be generated based on the video source provided.
Params for <CrossTalkVideoPlayer>:
| Param Name | Param Info | Required or not | Type |
|---|---|---|---|
WP |
Web Property name | Required | string |
URL |
Page URL | Optional | string |
PageID |
Unique PageID | Optional | string |
Theme |
Light or Dark theme | Optional | string |
Src |
Video link | Optional | string |
SrcType |
MIME Type of the video. Example: application/x-mpegURL |
Optional | string |
Locale |
Locale of the UI component | Optional | string |
CrossTalk Video Player also supports embedding external video platforms, below are the currently supported platforms:
| Param Name | Video Platform | Video ID information |
|---|---|---|
YTID |
YouTube | Embed ID of the YouTube video |
VimeoID |
Vimeo | Vimeo video ID |
VKID |
VK Video | VK video ID |
VKLIVE |
VK Video Live | @handle of the user who's currently Live |
RTID |
RuTube Video | RuTube video ID |
<?xml version="1.0" encoding="utf-8"?>
<Window
x:Class="YourSample.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:WinUILibSample"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
Title="CrossTalk Video Player WinUI"
xmlns:widgets="using:CrossTalkWinUILib.Widgets">
<StackPanel Orientation="Vertical">
<TextBlock Margin="10,10,0,0" Text="CrossTalk Video Player Sample" FontSize="16" FontWeight="Bold"/>
<widgets:CrossTalkVideoPlayer WP="YOUR_WEB_PROPERTY" PageID="YOUR_PAGE_ID" YTID="YOUTUBE_EMBED_ID" Theme="dark" />
</StackPanel>
</Window>
Bare-Minimum CrossTalk Video Player with Live Chat XAML Sample Code
<?xml version="1.0" encoding="utf-8"?>
<Window
x:Class="YourSample.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:WinUILibSample"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
Title="CrossTalk Video Player WinUI"
xmlns:widgets="using:CrossTalkWinUILib.Widgets">
<StackPanel Orientation="Vertical">
<widgets:CrossTalkVideoPlayer WP="crosstalkDemo" YTID="dq21YV5mdHI" Theme="dark" />
</StackPanel>
</Window>
Live Chat
Use the <CrossTalkLiveChat> UI Control to add Live Chat to your page.
PS: Ensure either PageID or URL is provided.
Params for <CrossTalkLiveChat>:
| Param Name | Param Info | Required or not | Type |
|---|---|---|---|
WP |
Web Property name | Required | string |
URL |
Page URL | Optional | string |
PageID |
Unique PageID | Optional | string |
Theme |
Light or Dark theme | Optional | string |
Locale |
Locale of the UI component | Optional | string |
<?xml version="1.0" encoding="utf-8"?>
<Window
x:Class="YourSample.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:WinUILibSample"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
Title="CrossTalk Live Chat WinUI"
xmlns:widgets="using:CrossTalkWinUILib.Widgets">
<StackPanel Orientation="Vertical">
<TextBlock Margin="10,10,0,0" Text="CrossTalk Live Chat Sample" FontSize="16" FontWeight="Bold"/>
<widgets:CrossTalkLiveChat WP="YOUR_WEB_PROPERTY" PageID="YOUR_PAGE_ID" Theme="dark" Locale="ja" />
</StackPanel>
</Window>
Bare-Minimum CrossTalk Live Chat XAML Sample Code
<?xml version="1.0" encoding="utf-8"?>
<Window
x:Class="YourSample.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:WinUILibSample"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
Title="CrossTalk Live Chat WinUI"
xmlns:widgets="using:CrossTalkWinUILib.Widgets">
<StackPanel Orientation="Vertical">
<widgets:CrossTalkLiveChat WP="crosstalkDemo" PageID="home" Theme="dark" />
</StackPanel>
</Window>
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0-windows10.0.19041 is compatible. net9.0-windows was computed. net10.0-windows was computed. |
-
net8.0-windows10.0.19041
- Microsoft.Windows.SDK.BuildTools (>= 10.0.26100.7705)
- Microsoft.WindowsAppSDK (>= 1.8.260317003)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Initial release