Giter VIP home page Giter VIP logo

logitech-lcd's Introduction

Build status

NuGet

Logitech-LCD

A C# Wrapper allowing one to use the functions of the logitech SDK in .NET

Usage

  1. Clone the project in any location
  2. Add the project to your solution
  3. Add a reference from your project to this one

Alternatively you can replace these 3 first steps by using the NuGet package :

Install-Package NuGet.Logitech_LCD

  1. Add in your project a Lib folder containing an x86 and an x64 folder, each of these must contain the LogitechLcd.dll (the wrapper dll in the logitech LCD SDK, you may have to rename it as the name might have changed) file
  2. You're ready to go and use this wrapper
  3. All of the SDK's base methods are exposed in the LogitechLcd class

Applets

WinForm :

To make an applet using more than plain text and a background image, one can create a userControl and make it inherit from the Logitech_LCD.Applets.BaseApplet class.

You will then have to override the OnDataUpdate method and you're ready to design your control like you would do for any other Winform Control.

WPF :

To use the WPF applet, you'll have to create a new WPF window/usercontrol

This control will have to look like this :

<UserControl
            x:Class="TestWPFApplet.UserControl1"
            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
            xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
            xmlns:applets="clr-namespace:Logitech_LCD.Applets;assembly=Logitech-LCD"
            d:DesignHeight="240"
            d:DesignWidth="320"
            mc:Ignorable="d">

    <applets:BaseWPFApplet>
        <Grid Background="White">
            <Label>Applet Content</Label>
        </Grid>
    </applets:BaseWPFApplet>

</UserControl>

If you have some code to run before any visual update, there is an event called OnDataUpdate who will be called before any visual update.

Known Issues

WinForms

If you are in Release build configuration or the first build of the lib wasn't done yet, the designer won't be able to initialize. When disiging the your control, be sure to be in Debug build configuration, run a build of the lib, close the designer window and reopen it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.