Search results for query: *

  • Users: bhs67
  • Order by date
  1. B

    Simple C#/WPF code for a MouseDoubleClick on a ListBox item?

    Thanks for the response! Perhaps this feature could be added to .NET? I don't know which forum is a place to request this feature. There are many who would use it. Thanks!
  2. B

    Simple C#/WPF code for a MouseDoubleClick on a ListBox item?

    There are numerous comments about MouseDoubleClick for a ListBox and ListView. Most are a bit complicated. One that looks simple is MouseBinding.Gesture Property (System.Windows.Input). However, it is not clear if this would work for a ListBox, or how to implement it. Is there an example...
  3. B

    Resolved How do I group pairs of List<double> in a List<List<double>>

    It works to create: List<Point> listPointsTop = new List<Point>(); List<Point> listPointsMiddle = new List<Point>(); List<Point> listPointsBottom = new List<Point>(); then CreateXYPoints(, ref listPointsTop); CreateXYPoints(listdSignal1X, listdSignal1Y, ref listPointsMiddle)...
  4. B

    Resolved How do I group pairs of List<double> in a List<List<double>>

    I have: List<Tuple<List<double>, List<double>>> listtupledSignals = new List<Tuple<List<double>, List<double>>>(); listtupledSignals.Add(listdSignalX, listdSignalY); Error message, "No overload for method 'Add' takes 2 arguments". The pairs of XY lists are the same length. Each pair of XY...
  5. B

    Resolved How do I group pairs of List<double> in a List<List<double>>

    I have 6 lists. List<double> listdSignal0X = new List<double>(); List<double> listdSignal0Y = new List<double>(); List<double> listdSignal1X = new List<double>(); List<double> listdSignal1Y = new List<double>(); List<double> listdSignal2X = new List<double>(); List<double> listdSignal2Y =...
  6. B

    Visual Studio 2019 stopped opening .cs / .xaml files that were open before?

    Project (menu) => ??? I do not see Project and Solutions. Ditto for File (menu) => Project/Solution => ???
  7. B

    Visual Studio 2019 stopped opening .cs / .xaml files that were open before?

    When opening a Project / Solution, Visual Studio 2019 also opened the .cs and .xaml files that were open when the Project / Solution was closed. It stopped doing that. Please advise.
  8. B

    trouble with the links

    It would be good if this were fixed. Thanks for the prompt response.
  9. B

    trouble with the links

    I had trouble with the links in the first post. Remove the "." and the link is changed to the title on that website. How do I stop this from happening?
  10. B

    Adding the first left point frequency spectrum to the right side end to make it perfectly symmetrical does not fix the problem?

    This is one of the greatest discoveries, thanks to Nyquist. It is used in the music recording business ... store a minimum number of values, then reconstruct the original signal.
  11. B

    Adding the first left point frequency spectrum to the right side end to make it perfectly symmetrical does not fix the problem?

    Start with a 2 Hz signal. The signal is sampled at a 4.167 Hz sample rate. See .https://nyquist.foxping.com/ => "DFT Images 2 Hz, 0 zeros.pdf". The intent is to reconstruct a sampled signal (top right side) to be identical to the original signal (top left side). This code converts a signal to...
  12. B

    How do I combine two signals on one XY plot?

    The .xaml code: <Grid Grid.Row="0" Grid.Column="0"> <Canvas x:Name="gCanvasPlot0" Width="500" Height="150" ... /> </Grid> <Grid Grid.Row="1" Grid.Column="0"> <Canvas x:Name="gCanvasPlot1" Width="500" Height="150" ... /> </Grid> The .cs code: //------------------------------ ...
  13. B

    The xaml ignoring <TextBox FontWeight="Bold" ... />

    I have Arial Narrow for Word, Excel, etc. (Win10). For the xaml, when I change the font from Arial Narrow to Arial, the font displayed changes. Are you able to replicate what I'm seeing?
  14. B

    The xaml ignoring <TextBox FontWeight="Bold" ... />

    This xaml ignores FontWeight="Bold": <TextBox x:Name="gTBxTitle" FontWeight="Bold" Margin="0,6,0,0" Width="500" VerticalAlignment="Center"...
  15. B

    Why does a WPF canvas result in System.InvalidOperationException?

    I forgot to mention, many years ago I switched --- for(int i = 0; --- to --- for (int ii = 0; --- because it was easier to find ii. When there was an inside --- for --- I used iii.
  16. B

    Why does a WPF canvas result in System.InvalidOperationException?

    I'm not allowed to mark your post as a solution too. You should get credit as you helped me find the solution.
  17. B

    Why does a WPF canvas result in System.InvalidOperationException?

    Thanks for identifying the problem. In MainWindow I had Polyline poXYTop = new Polyline { Stroke = Brushes.Blue}; Polyline poXYBottom = new Polyline { Stroke = Brushes.Blue}; OnePlot(listdSignalXValues, listdSignalYValues, poXYTop, "Signal"); TwoPlots(listdSignalXValues, listdSignalYValues...
  18. B

    Why does a WPF canvas result in System.InvalidOperationException?

    I use a variation of Hungarian. The "g" means global within that .xaml / .cs. The iNumOfPoints means that is an int. An "adValues" means an array of doubles. A "listdParams" means List<double>. Below is more of the code. Before I call dlgDisplayTwoXYPlots(), I define poXY: Polyline...
  19. B

    Why does a WPF canvas result in System.InvalidOperationException?

    With this code: .xaml <Canvas x:Name="gCanvasPlotTop" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0,0,0,0" Width="500" Height="150" /> .cs for (int ii = 0; ii < iNumOfPoints; ii++) { var pointResult = new Point { X =...
  20. B

    C# DFT and Reverse DFT

    Does not do reverse DFT.
Back
Top Bottom