c# & wpf

  1. dj45-sys

    SAPI does not implement phonetic alphabet selection.

    Hey, Coders Programming my virtual assistant I have encountered this error - SAPI does not implement phonetic alphabet selection. I have reviewed the solution in forums and I have found that I have to add this line of code gb.Culture = new System.Globalization.CultureInfo("es-ES"); I have...
  2. J

    MVVM ICommand explanation ...

    Hi, here is my short code in MS VS 2019 C# WPF - MVVM, can someone please explain me: 1/ where is pointed my code to after "return _SaveCommand;" which is placed to "public ICommand SaveCommand" property ? It is classic MVVM. 2/ And who is caller of "CommandManager.RequerySuggested += value;"...
  3. S

    Query to find a single object from a single row

    Hi, I have problems to find the correct syntax to get a single result of a single row. I get the row (categories) and I can see in this row there is a CategoryIsObsolete field (it is that value I want) But when making af FirstOrDefault query the Category result is null - and I do not know why...
  4. redexception

    Create a new window in WPF

    Hi, I've created a SQL Loginsystem (doesn't matter, but okay ^^). When someone clicks on the register function, a new window should appear. But how do I do that ? And how can I edit this window ? Would there appear another window.xaml? Greetings from the US.
  5. R

    Issue with DatePicker needed to be used twice with DataGrid.BeginEdit

    This is a WPF application, using a Data Grid with Date Picker. The goal is to click on the calendar, select a date, then the Data Grid goes in edit mode so as soon as I click on another cell, the Update is done on the database and the row is added on the grid, that part is working. But, when I...
  6. me123123123

    For loop: open window, wait until it is closed, then progress to the next step in the for loop

    I am working with RelayCommands and a MessageBus. I want to write a learning program. I have three windows: 1. Learning Tab -> Here I choose which List of Cards I want to learn and here I think I should write the for loop 2. Question -> The first question of the list of cards I gave to the for...
  7. A

    Question Naming and Saving Child Windows

    Hi, I am studying C#/WPF. I am trying to create child windows upon click event as follows private void NewWindow(object sender, RoutedEventArgs e) { Window newWindow = new Window(); newWindow.Owner = this; newWindow.Title = "Window 1"...
  8. R

    Incorrect display of data

    I have a class that describes the level of subordination of departments: public class SeniorPosition : INotifyPropertyChanged { public event PropertyChangedEventHandler PropertyChanged; private string managementPositionName; private string...
  9. destro

    Resolved How can I bind my objects horizontally using itemTemplate?

    I have an observablecollection of class type as follows: public ObservableCollection<selectedLevel> selectedLevels { get; set; } selectedLevels = new ObservableCollection<selectedLevel>(); public class selectedLevel { public string Level { get; set; } public...
  10. vlad.ua96

    Question Incorect ML Time Series forecasting with big values RRS feed

    Hey there) Was making very simple stock prediction app (Simple Colege Project). For feracast i used Microsoft ML Time Series Model. It worked good but i noticed when i make predictions for data with big values like 1700 or 3800 it makes very incorrect predictions. For instance if csv file has...
  11. destro

    Question How can I bind the property of class Object with a textblock?

    I have two classes in my script and an observable collection of secondary class type. The method in the main class adds several objects of Person class type in an observable collection defined and initialized in primary class as follows: public class PrimaryClass : BaseViewModel {...
  12. I

    Question clickonce Web Deployment

    Hi. I have build an application which I need to deploy via the web. I have uploaded the files to my smarter asp FTP but please could someone help me with running the setup and also updates. I can find the file path using a www web address on my website but it only downloads the setup file, and...
  13. L

    Resolved How to save cell value of a DataGrid directly when editing?

    Hello everyone I have a DataGrid in my WPF application. The cells must be edited. To save the cell value I have to press "Enter" or jump in another cell. Is there a way to save the value at the "CurrentCellChanged" event? Or can you define it directly in XAML? Thanks in advance.
  14. Dragon4ik

    Resolved Alghoritm of autocompleting puzzles

    I have a task to write a programm, which slice the image into the equal rectangle puzzles . Then the program must solve this puzzle without knowing the way it was sliced. I wrote the code, but it works time after time and i can't understand what problem is. Thank you in advance for any help...
  15. H

    Resolved Changing a sinngle number in a variabel name

    if(player == "X") { btn1.Content = "X"; player = "O"; } else { btn1.Content = "O"; player = "X"; } Is there a possibility to just change the 1 from btn1 into a 2? Because i need 9 buttons all doing the same. I would like to creat a method using this code but changing the number...
  16. destro

    Resolved How to set click event for primary menu items in xaml?

    My Menu is perfectly bound with observable collection in view model and all submenu items fires click event properly using below xaml, but I am unable to set the same click event for first menu items. Is it possible to set same click event on all primary menu items? <Menu Background="Lavender"...
  17. destro

    Resolved change the selected Value of a bound combo box from a window button?

    How do I change the selected Value of a combo box from a window button when combo box is binded with enumList in its own viewmodel? I have two Windows and several user controls in my project, one of the user control Ribbon is placed on MainWindow. The Ribbon is groupBox user control containing...
  18. G

    Answered Combine multiple lines into a single line in a textbox

    Hi, I have a wpf application that has a textbox to which value is inserted using a scanner. At one time when I scan a single data, multiple lines comes into textbox which can be scrolled down to see. But I dont want them as multiple lines. I want to combine all lines into a single line and see...
  19. G

    Find count of certain elements in the dataset

    Hi, I have a database and a dataset in C# application. The dataset has the list of my friends with phone number, address and a id. This is for learning purposes. I need to find the count of certain elements , say for example the total count of all the friends with ID > 3. How can I do that?
  20. G

    Question Update using Table Adapter

    Hi, I have a sql server database with ID, First Name, Last Name, Phone Number and Address. I have created a wpf application that has a dataset of the database and uses a datagrid view to view the table. I did this as a learning procedure. Now I am learning how to update the database using wpf...
Top Bottom