IPUserControls.Wpf
1.1.0
dotnet add package IPUserControls.Wpf --version 1.1.0
NuGet\Install-Package IPUserControls.Wpf -Version 1.1.0
<PackageReference Include="IPUserControls.Wpf" Version="1.1.0" />
paket add IPUserControls.Wpf --version 1.1.0
#r "nuget: IPUserControls.Wpf, 1.1.0"
// Install IPUserControls.Wpf as a Cake Addin
#addin nuget:?package=IPUserControls.Wpf&version=1.1.0
// Install IPUserControls.Wpf as a Cake Tool
#tool nuget:?package=IPUserControls.Wpf&version=1.1.0
IPUserControls.WPF
With these controls you get an IP Address Text Box, IP Port Text Box and IP Connection Status Icon. Combine them together for a complete IP connection control.
Controls Included
Controls | Description | Bindable Property |
---|---|---|
IpField | IP Address TextBox | string or byte[] |
IpPort | IP Port TextBox | ushort |
IpStatus | IP Connection Status | Connection Status |
Usage
Install the Nuget package
Add this to your SomeView.xaml namespace
xmlns:ip="clr-namespace:IPUserControls;assembly=IPUserControls.Wpf"
Access the IP controls by typing either or all of the commands
<ip:IpField />
<ip:IpPort />
<ip:IpStatus />
insert image
Minimal working example of the UI is shown below
<Window x:Class="NugetPackageTest.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:ip="clr-namespace:IPUserControls;assembly=IPUserControls.Wpf" mc:Ignorable="d" Title="MainWindow" Height="150" Width="400"> <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center"> <Label Content="IP Address" Margin="0,0,10,0" /> <ip:IpField /> <ip:IpPort /> <ip:IpStatus /> </StackPanel> </Window>
To access the properties of IpField, IpPort or set IpStatus, just bind them to your own properties. IpField has IpAddress to give you the IP, IpPort has PortNumber and for IpStatus you can set the ConnectionStatus property to make it change color and text. This is an enum that you can get access to or cast/convert to.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net45 is compatible. net451 is compatible. net452 is compatible. net46 is compatible. net461 is compatible. net462 is compatible. net463 was computed. net47 is compatible. net471 is compatible. net472 is compatible. net48 is compatible. net481 was computed. |
This package has no dependencies.
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 |
---|---|---|
1.1.0 | 1,610 | 4/23/2021 |
This version can set the IP, Port and Connection status externally.