Questions tagged as 'wpf'

3
answers

Dynamic Search in C # and WPF

Good morning I would like to ask you a question about a dynamic search. Scenario: I have a search screen where the user selects 3 fields, which are: The first is the field of the search screen, where you select which field you wan...
asked by 20.03.2017 / 15:49
1
answer

How to update the value of a cell based on another in the Grid View WPF

I have the following Grid, I would like to know how can I do so that when I leave the Gain or Spend field it updates the Total? If there is another way to do it, I'm happy to meet you. Total = (Gain - Expense) private void txtGanho_L...
asked by 09.11.2015 / 18:46
3
answers

Problem with INSERT INTO

I'm trying to make a INSERT in MS SQL , when running the code, there is no error, but does not INSERT in sql, when running a script manually in sql it writes without any problem I have tried both ways, which is also discus...
asked by 21.07.2015 / 17:18
3
answers

How to apply String formatting in DataGrid - WPF

I have a Data Grid in WPF that has columns of CPF, RG, ZIP, and others, I need to do the formatting for: CPF: 111.111.111-11 RG: 11.111.111-1 With number at end RG: 11.111.111-A With letter at the end CEP: 11111-11 Just fill in th...
asked by 16.06.2015 / 15:17
1
answer

Built-in font with composite name is not displayed

I am embedding some fonts in my WPF application but some are not displayed. Fonts are in the / Fonts folder in the application root and their properties are set to Resource. Usage like this: <TextBlock FontFamily="pack://application:,...
asked by 02.08.2014 / 18:40
1
answer

How to change the text of a cell in a table that is inside a Flowdocument that is in a RichTextBox at a time

I'm trying the following code to replace the text in the question situation, where rtb is richtextbox , .Document is flowdocument . The text is changed in Run (r), but when I open the document the exchange was not made. foreach (...
asked by 07.03.2014 / 20:26
1
answer

Where to connect to the database?

In the MVVM standard where should I connect to the database, in the View, Model, or ViewModel?     
asked by 20.05.2015 / 18:07
1
answer

Format the value of the ComboBox pulled from the SQL database (LINQ) in Project C # (WPF)

I need a help in the code below ... I need to get the SQL database float value to be in the Brazilian Real Number Set format in a C # (WPF) project in a ComboBox (such as Double). That is, bring it as String in the IntemsSource and not be in thi...
asked by 25.03.2016 / 14:10
2
answers

Adding checkbox to datagrid rows

I have an application in WPF , in which there is a window with a datagrid with several lines, having only registers. In this window there is also a button and it is necessary for the user, when clicking the button, to appear on each...
asked by 10.03.2015 / 19:38
2
answers

Recover External IP without third-party services

I have a WPF application. I need to know the external IP of the machine that is running this application. I found some tutorials that teach to do this through the method DownloadString() of class WebClient consuming some service...
asked by 18.11.2016 / 19:33