wpf - Adding NAudio controls to toolbox


I am trying to use the controls from NAudio library such as WaveViewer, VolumeMeter, VolumeSlider, Fader, WaveformPainter etc. I am using Visual Studio 2012 and have net 4.5 installed. I have also downloaded and referenced NAudio 1.7 and its .dll to my project. When I right click on toolbox and click on choose items, navigate to .NET components tab and choose browse, click on the NAudion dll and then check these new controls to add, a message box appears with the following error:

Controls Fader, PanSlider, Pot, VolumeMeter, VolumeSlider, WaveformPainter, WaveViewer were added. Make sure the controls added are compatible with the current designer and .NET Framework version.

I have tried resetting the toolbox and re-adding these controls.

I am using VS2012 to create a WPF project to play a video and also show it waveform below (I have already extracted the audio into a .wav file which I wish to show by using one of the controls from NAudio if I could only get these controls to be enabled - not grayed out - in the designer's toolbox.)

I am a new to c# and WPF and to NAudio so any help is much appreciated.

1 Answer: 

Those are Windows Forms controls, not WPF controls. NAudio does include a WPF demo application which contains some bits you could reuse, and also the .NET Voice Recorder application shows how to display waveforms and volume meters in WPF while using NAudio.


More Articles

formatting - Excel 2007 floating format toolbar customisation

Is it possible in Excel 2007 to customise the floating format bar that is shown when you right-click on a cell? To avoid confusion, I don't mean the "Cell" commandbar menu, but the second floating toolbar with formatting buttons.e.g. is it possible to add a Styles dropdown, or have any other text al

wpf - Giving a stackPanel the same LinearGradientBrush as the toolbar has by default

I have two ToolBars side by side (I had to do that so I could align buttons right and left)But now, I have to add some text that can be aligned right left or center between both toolbars. I added the text in a TextBlock inside a StackPanel disposed on a Grid at the second position (between the toolb

compact framework - Toolbar button sizes in windows mobile 6.5.3

We have a VB.net CF2.0 Apllication that up until now has run on windows mobile platforms from 2003 to 6.0 without any major issues. Our current team use HP iPAQ devices running winodws 6.0 and everything runs fine. There is a good, hardware related reson why we use these devices. We are looking to u

c++ - Windows Toolbar - Controlling button size and padding

I'm trying to understand the behaviour of a Windows toolbar - in particular how the following values interact:the size of the bitmap image usedthe effective size of a toolbar buttonthe padding between the image and the button edgethe height of the toolbarText displayed by a button is not relevant in

xamarin.android - How to align UI controls on a Custom Toolbar in Android xml

I'm creating a layout in Xamarin.Android and I'm working on a custom Toolbar with an image button a TextView and another label. What I need to do is Make sure the imagebutton BackButton is left aligned all the way to the left of the parent Contain, the TextView is Center Aligned and the MenuButton

How to disable "Project Files Changes" alert in phpstorm?

How to disable this alert box in phpstorm.

How to show a Horizontal Android Indeterminate Progress Bar

How to show an indeterminate horizontal progress bar in android? The animation of the progress bar should start from 0 to 100 and then go back from 100 to 0 continuously. I am not looking for the wheel progress bar.

WPF Application - Visual Studio 2008 Toolbox Not Loading Correctly!

I'm pretty new to WPF however i've got a solid understanding of WindowsForms. When I create a new WinForms application in Visual Studio the Toolbox displays a huge list of different controls that can be used for developing the program.However, this is only the second time i've started to design stuf

c# - Datagrid Binding in code behind versus DataGrid binding in XAML

I am testing WPF and bindings.I have a demo which is working fine with my bindings done in the code-behind.Here is my XAML code and C# code.<Window x:Class="WpfApplication1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/wi

Debugging with PhpStorm locally

Kind of a noob question. I'm uploading to a remote server. I've been advised to debug locally (versus remotely). How am I to pull up my files in a browser, then use the debugging tools in PhpStorm? As it stands, my remote host (in PhpStorm) is configured. I've done my own research but can't seem to