IPUserControls.Wpf 1.1.0

dotnet add package IPUserControls.Wpf --version 1.1.0
NuGet\Install-Package IPUserControls.Wpf -Version 1.1.0
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="IPUserControls.Wpf" Version="1.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add IPUserControls.Wpf --version 1.1.0
#r "nuget: IPUserControls.Wpf, 1.1.0"
#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 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

  1. Install the Nuget package

  2. Add this to your SomeView.xaml namespace

    xmlns:ip="clr-namespace:IPUserControls;assembly=IPUserControls.Wpf"
    
  3. Access the IP controls by typing either or all of the commands

    <ip:IpField />
    
    <ip:IpPort />
    
    <ip:IpStatus />
    

    insert image

  4. 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>
    
  5. 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.