Questions tagged as 'wpf'

0
answers

Row Header definition of a DataGrid across the rows of a column of a DataTable using C # WPF

I have a DataTable with the following information: Column1 | Column2 1 | A 2 | B 3 | C 4 | D With this DataTable I would like to load a DataGrid using the first column of the DataTable to be the Row Header, thus A...
asked by 10.02.2017 / 19:50
1
answer

Save the image associated with an Image control to disk

Let's suppose that an image is loaded into the Image control of the following example ... <Button x:Name="button" Content="Button" /> <Image x:Name="image" /> What code do I need to associate with the button button to pop up...
asked by 06.01.2017 / 18:50
0
answers

C # Drag and Drop without a specific event

I'm developing an application in C#(WPF) and would like to know if anyone knows how to get the drag n drop mouse data without any event being triggered. Is there any way to return this data from the dragndrop of the mouse...
asked by 02.01.2017 / 19:57
1
answer

Transfer the image from one Image control to another of the same type

I have these three controls: <Button x:Name="btn" /> <Image x:Name="imagem01" /> <Image x:Name="imagem02" /> Let's say I upload an image in " imagen01 " using: OpenFileDialog ofdImage = new OpenFileDialog(); ofdImage.Fil...
asked by 14.12.2016 / 17:02
0
answers

Change the DPI of a C #

I'm developing an app in WPF and at some point I need to convert the DPI of an image, how do I? I'm using the class System.Windows.Media.Imaging.BitmapImage And to load the image use the following code: var fileUri = new Uri(open...
asked by 14.12.2016 / 03:12
1
answer

Load ComboBox from a MySQL table - Manipulate key and other field

I have a table with the following structure: +----------------+-------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +----------------+-------------+------+-----+---------+-------+ | idLo...
asked by 04.12.2016 / 17:50
1
answer

DataGrid - Last column lengthens too long

I have a datagrid displaying data from a table in a MySQL database. If all columns are with Width="Auto", when resizing the window the grid does not match. If I put it in the last column Width="*", it works as I wanted, following the resizing of...
asked by 08.11.2016 / 22:49
0
answers

XAML C # Resources - How to add a list of resources dynamically based on a folder

I am making a FlipView using MahApps.Metro. I have a list of images that would be passed to this flipview. It works, but I'm making them dynamically added in a way that I think is incorrect: <Image x:Key="Fdl1" Source="...
asked by 29.08.2016 / 22:31
1
answer

Connection String not found WPF Entity Framework

I'm in a WPF project using some MVVM practices, I'm using the Entity Framework database first and the connection string is already in the app.config, I've already followed all the procedures I've read on several issues but in the view this messa...
asked by 14.07.2016 / 14:27
1
answer

Create side menu equal to Windows Weather App 10

Friends who have been with me around here may have read a previous question I did with that same theme. But as I mentioned in my last comment there, I ended up giving up on the initial idea, as concluding that I was going too fast for someone...
asked by 15.07.2016 / 14:54