Questions tagged as 'wpf'

1
answer

How to traverse the records of a dataset in C # WPF?

I am creating an application, and in one of the windows to see the records that are in the database, when I click on the navigation buttons I get an error The error it throws is:    'Object reference not set as an instance of an object.'...
asked by 26.10.2018 / 09:35
1
answer

Put / get name of an ITEM in listView WPF

I have created a listView that by default shows 6 elements with a field Nombre and another Def in this way: listView.Items.Add(new grafica(){Nombre = "Seno de x", Def = "a * sen(b*x)" }); listView.Items.Add(new gr...
asked by 23.10.2018 / 12:17
0
answers

how to consume web api by mvc in a synchronic way?

I need to consume a web api through an mvc project synchronously, however most of the examples are asynchronous, I have the following code: [HttpGet] public async Task<ActionResult> Buscar(int? id) { //Get...
asked by 24.10.2018 / 21:20
1
answer

TreeView in WPF

Continuing with the solution of Problem of bindig in WPF with MVVM , in which I already got the DALs answered ( MOCData , EFData , AdoNetData and XMLData ), now I try to be able to change the ListView of MainW...
asked by 10.10.2018 / 09:14
0
answers

The MouseDown event does not fire on an Image

I'm working with xaml and I have a problem, the MouseDown event is not running when I double click on an image, that's how I have the code: <Grid x:Name="gridContainer" HorizontalAlignment="Center"> <Image x:Name="bgImageDge" Sour...
asked by 25.09.2018 / 20:04
2
answers

Modify DataContext of a View from ViewModel WPF

Good afternoon, classmates. I would like to know how I can modify the DataContext of a view with its ViewModel, from another ViewModel or from the same ViewModel. public partial class Window2 : UserControl { public Window2() {...
asked by 05.09.2018 / 19:09
0
answers

Problem with InvalidOperationException

I am creating an application, this is being developed with WPF, the functionality of that app is to create a database in SQL Server through the code, since I made their respective properties in the Model and ModelView it is also worth mentioning...
asked by 03.09.2018 / 02:18
0
answers

How to fix textbox so that they do not move when adding records in a tablix in a report made with ReportViewer?

I am creating a report with ReportViewer and I have a tablix and below a textboxs , the problem is that when more than one record is added in the tablix , the textbox are run and I need that they remain fixed bec...
asked by 19.07.2018 / 20:32
1
answer

how to change the background of a toggle button inside a combobox when ismouseover

I have a combobox in a wpf application and I want when IsMouseOver the background changes to an image. this is the style of the toggle button now with background with a color. Any ideas? this is the combobox code <Style x:Key="cbbOpcion...
asked by 12.07.2018 / 19:33
0
answers

How to call the main of another project from WPF?

What happens is that I have a project in C # console, what I want is from another WPF project call the main console project.     
asked by 15.06.2018 / 04:57