Tpig.Components.TogetherUi 0.1.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package Tpig.Components.TogetherUi --version 0.1.1                
NuGet\Install-Package Tpig.Components.TogetherUi -Version 0.1.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Tpig.Components.TogetherUi" Version="0.1.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Tpig.Components.TogetherUi --version 0.1.1                
#r "nuget: Tpig.Components.TogetherUi, 0.1.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Tpig.Components.TogetherUi as a Cake Addin
#addin nuget:?package=Tpig.Components.TogetherUi&version=0.1.1

// Install Tpig.Components.TogetherUi as a Cake Tool
#tool nuget:?package=Tpig.Components.TogetherUi&version=0.1.1                

Tpig.Components.Together and Tpig.Components.TogetherUi, .NET Version

Together codes for .NET version.

It's my work on C# .NET WPF and make libraries to reduce my time. Later, I decide to merge these:

and fix null warning.

Features

Animation

Please see demo in various code, such as: Tpig.Demonstrates.SingleWindow, to see how Animates work.

Please see demo about SequenceAnimation and SequenceAnimationRenderer in Tpig.Demonstrates.SequenceAnim.

Behaviors

Please see demo about behaviors in Tpig.Demonstrates.Behaviors.

Dialog Box

The dialog boxes have 6 classes to disable current UI, wait for something, and enable again. They are:

  • AlphaWaitControl and AlphaWaitWindow
  • ExpandedWaitControl and ExpandedWaitWindow
  • WaitControl and WaitWindow

It provide classes to display message box. They are:

  • MessageWindow and ExpandedMessageWindow

Please see demo about dialog box(es) in Tpig.Demonstrates.DialogBox and Tpig.Demonstrates.ExpandedDialogBox.

Screenshot 1 | Screenshot 2 Screenshot 3 | Screenshot 4 Screenshot 5 | Screenshot 6

Audio

A simple audio, backend NAudio, playing.

Create:

var audio = new AudioFile(dialog.FileName);

-- or --

var audio = new AudioFile(dialog.FileName, true);  // for tolerate file not found error

Play, Pause, Resume and Stop:

audio.Play();
audio.Pause();
audio.Resume();
audio.Stop();

Set volume, 0 to 1:

audio.Volume = 0.5;

Repeat, or just stop when audio file end:

audio.IsRepeat = true/false;

Destroy (optional):

audio.Dispose();

Please see demo about play audio in Tpig.Demonstrates.Audio.

Screenshot 1

Single Window

When I work in old company. It not well to use window. So, I still to UserControl and add features:

  • Animation, when page switching
  • Back and Next
  • Scene timer to limit and return first page

and I call these navigator, because the call Back and Next is almost automatic.

I change it name to Single Window, same as SPA == Single Page Application on web, when I want to merge code.

Please see demo about single window in Tpig.Demonstrates.SingleWindow.

Screenshot 1 | Screenshot 2

Soft Keyboards

.NET WPF component for virtual keyboards.

First, add this line in xaml:

xmlns:kb="clr-namespace:Tpig.Components.TogetherUi;assembly=Tpig.Components.TogetherUi"

Then, put this line to instance soft-keyboard, this must be top:

<kb:SoftKeyboardControl x:Name="SoftKeyboardControl"/>

Then, there are 2 ways to attach soft-keyboards:

  • use attach property, which is simple but less configure
  • use behavior

When you want to use attach property, here:

<TextBox kb:AutoSoftKeyboardBehavior.UseSoftKeyboard="True"/>

If you want to use behavior, add this line:

xmlns:be="http://schemas.microsoft.com/xaml/behaviors"

Then:

<TextBox>
	<be:Interaction.Behaviors>
		<kb:SoftKeyboardBehavior SoftKeyboardType="International"/>
	</be:Interaction.Behaviors>
</TextBox>

You can set SoftKeyboardType as International, EnglishOnly and Numeric.

You can add language, like this:

Loaded += (sender, e) => {
	Dispatcher.BeginInvoke(DispatcherPriority.Normal, (Action)(() => {
		SoftKeyboardControl.AddThaiLanguage();
	}));
};

Sorry, I can use English and Thai only. If you want another language, you have to fork. See SoftKeyboardControl.AddThaiLanguage() as basis.

Please see demo about soft keyboards in Tpig.Demonstrates.SoftKeyboards.

Screenshot 1 | Screenshot 2

Thank For These People

Last

Sorry, but I'm not good at English. T_T

Product Compatible and additional computed target framework versions.
.NET net6.0-windows7.0 is compatible.  net7.0-windows was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.2.0 121 7/20/2024
0.1.2 102 7/10/2024
0.1.1 95 7/10/2024
0.1.0 91 7/10/2024