Questions tagged as 'wpf'

1
answer

How to create grid lists with C # in WPF?

I'm new to C #. I would like to know how to create a grid list that contains images, something similar to what android has: Thank you in advance.     
asked by 15.01.2018 / 20:32
0
answers

sqlite exception in windows 8

I'm getting this exception when trying to open a window inside a program I made, the program was done in visual studio 2017, with sqlite 3, it opens normal only from this problem when trying to open a window that contains sqlite commands. I'm...
asked by 14.01.2018 / 23:13
1
answer

error while loading a ProgressRing (Mahapps)

I have a ProgressRing in a Page in WPF that needs to be displayed while the Grid is loading (Purpose: Show the user who is loading) and then be deactivated when the load of the Grid is completed. But it is giving this error: public Client...
asked by 26.12.2017 / 18:22
1
answer

How to use DrawToBitmap in WPF to take print from screen?

Following is the functional code of WinForms : Bitmap pic = new Bitmap(label1.Width, label1.Height); Rectangle rect = new Rectangle(0, 0, label1.Width, label1.Height); rect = label1.ClientRectangle; label1.DrawToBitmap(pic, rect); // pic...
asked by 20.12.2017 / 00:19
1
answer

Problems inserting image into a Button

I'm having trouble inserting an image of the "PackIconFontAwesome" package into a button. I installed the Mahapps Icons package and referenced it in my view, but an error appears as shown below. What is missing? <ResourceDictionary><...
asked by 05.01.2018 / 14:42
0
answers

Generate a new control for each listed item

Hello, based on the code below, I would like to know how to generate a new control (in my case a grid) for each existing item in my ListBox ... My ListBox: <ListBox Height="380.585" Width="258.998"> <ListBoxItem x:Name="i" Conte...
asked by 25.11.2017 / 18:33
0
answers

Problems changing color of rows in a DataGrid in C # Wpf

I am having problems changing the color of the DataGrid rows, I use the following function int i = 0; private void gvDados_LoadingRow(object sender, DataGridRowEventArgs e) { DataGridRow rowContext = e.Row; if (rowContext != null) {...
asked by 26.09.2017 / 22:23
0
answers

How to Reverse an animation (execute it in reverse) via pure xaml

I made an animation OpenMenuzin Storyboard and so on, I already did this before reversing the animation by C # //pode estar errado mas foi mais ou menos isso sb = (Storyboard)Resources["Animaçao"]; sb.AutoReverse = true; sb.Begin(); sb.Seek(Ti...
asked by 02.10.2017 / 01:52
1
answer

MultiThreading - Opening new window in WPF

I would like to know if any of you know how to solve this damn error, (I want to open another window but it gives this error when it starts) = can help?     
asked by 12.09.2017 / 02:39
1
answer

WPF C # Outlook MailItem insert image in body of email

I'm using the code below and I can insert an image into the body of the email. How would you like to add more images? Is it necessary to create multiple "imageCid"? The code below only shows the last image. Microsoft.Office.Interop.Outlook.Att...
asked by 23.08.2017 / 00:07