Questions tagged as 'c#'

1
answer

Apply Transition effect when changing the source of an Image control

I have a button to which an image loaded from a ResourceDictionary is associated. In XAML I load them like this: <Button x:Name="selecao" Grid.Row="1" Grid.Column="2" Margin="10" Click="selecao_Click"> <Image x:Name="img" Source =...
asked by 31.03.2017 / 10:07
1
answer

Make function wait for variable to be generated

I have the following code: XmlParaApi = xml; which passes a string variable (xml) to a global string variable (XmlParaApi). Until then all this code is in an Api, since my problem is with the code below: string XmlApi = XmlApi.XmlParaApi...
asked by 20.03.2017 / 17:54
1
answer

How do I get past the Firefox Unsafe Connection alert page with GeckoDriver?

How to go through the certificate error (insecure connection) screen with the WebDriver GeckoDriver for Firefox? I'm tapping on a URL that displays this alert. I've already added in the browser exceptions, but the problem continues. If you...
asked by 16.03.2017 / 21:14
1
answer

DefaultView.RowFilter filter by date

Good afternoon, I'm filling a GridView, but when I'm going to perform the filter, it tells me the following error: "Object reference not set to an instance of an object." The field I'm trying to filter, expiration, is of type date, and I use SQL...
asked by 12.04.2017 / 21:00
0
answers

Delete duplicate lines postgresql

My code automatically inserts data into a database, causing the DB to become too large, and sometimes with repeated information. For this, I want to use the Slowly Changing Dimension (SCD) method so that: - A record with a given id will be added...
asked by 15.03.2017 / 15:01
0
answers

One control - several properties

I have a Combobox and it has as itemssource a struct with some properties, and I have a viewModel that has some properties of this struct, I want to know if there is a way to make the combobox set the parameters of the viewmodel equal to certain...
asked by 07.04.2017 / 22:16
2
answers

How to disable double click on the header of a DataGrid?

Double-click grid method: private void grid_MouseDoubleClick(object sender, MouseButtonEventArgs e) { if (e.LeftButton == MouseButtonState.Pressed && //Verifica clique com o esquerdo uldPo00100.SelectedItems.Cou...
asked by 26.03.2017 / 22:58
1
answer

MainWindow resizes by itself when I run the application

Greetings! I created a small window in XAML in a WPF project where Design view is perfect, but when I run the application in Debug mode the window changes size alone. What do I do to make the window size not change? Below are the screen...
asked by 07.04.2017 / 23:23
1
answer

This operation would create an incorrectly structured document. XDocument

I'm trying to create an XML, but I can not. I want it to have this format: <item> <linktext></linktext> <etc..></etc...> </item> I can add an item, but when I go through the loop again, it g...
asked by 21.03.2017 / 14:21
2
answers

Row editing by a textBox and receiving in the dataTable

I have a class that has two methods that get what is typed in textBox , all stored in dataTable (without database). When I click on a line ( Row ) of dataGridView I show the values saved in dataTable back in t...
asked by 09.03.2017 / 20:51