Questions tagged as 'wpf'

1
answer

Help with an MVVM view

I'm reading the this tutorial on MVVM. But I do not understand the following: <Window x:Class = "MVVMDemo.MainWindow" xmlns = "http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x = "http://schemas.microsoft.com/winfx/...
asked by 06.12.2016 / 11:52
1
answer

Building DataGrid with C # WPF at runtime

I have a DataTable where I will store some data that the user informs and through it I want to pass the information to the DataGrid. gvDados.ItemsSource = dt.DefaultView; //Essa é a ligação entre o DataTable e a Grid In case the user inform...
asked by 09.02.2017 / 17:20
2
answers

Save an image by identifying it from FrameworkElement

I have this layout: <StackPanel> <Button x:Name="button" Content="Button" Click="button_Click" Height="50" /> <Image x:Name="image" Source="vermelho.jpg" /> </StackPanel> The code I tested to write the image...
asked by 08.01.2017 / 11:08
1
answer

Ribbon for Visual Studio Express 2013

How to install or activate Ribbon in Visual Studio Express 2013?     
asked by 10.03.2015 / 18:10
1
answer

Options menu with right mouse button on datagrid

I need to create a menu with a few options so that when you select a record in a datagrid and right click on that record a menu with options for that record will appear.     
asked by 25.05.2015 / 01:42
1
answer

Form messed up after adding a ScrollViewer

I had a ready form in my VS, After it was ready, I realized that I would need to add a ScrollBar. Search and saw that to solve my problem was just to add a ScrollViewer. When I add, my form gets all out of order, a label on one side and a textbo...
asked by 13.04.2015 / 14:41
1
answer

How to fill a web form through C #

Is there any way to populate a web form through C #? I have a system developed in WPF and when the user clicks a button open a certain page in the browser and that their fields are filled automatically with the system information. I was ab...
asked by 09.04.2015 / 21:56
2
answers

Context does not load Bank data

My context is not bringing the bank's data. Error messages.    Value can not be null.       "Value can not be null. \ r \ n Parameter name: connection"       Value can not be null. Parameter name: connection Connection string string...
asked by 21.07.2014 / 16:06
1
answer

Run Event TextBox c # WPF

I have a Textbox and need to press the right button and click paste, it checks, tried several methods like TxtTexto.PreviewMouseLeftButtonDown+= new MouseButtonEventHandler(OnMouseClick); TxtTexto.MouseUp += new MouseButtonEventHandler(OnMouse...
asked by 05.10.2018 / 22:24
1
answer

Is it possible to have a 'Partialview' in WPF?

I wanted to know if it's possible to implement the concept of partialview in a WPF View. Something like a flap system, which changes the content of the grid but does not change the layout of the view. I just need to know how to make the contents...
asked by 18.07.2018 / 16:37