Questions tagged as 'wpf'

1
answer

WPF - Change the color of a button when the mouse is on top

Good, how can I apply a style to a button when the mouse passes over: This would be my code to apply the style to my button: <Window.Resources> <Style TargetType="Button" x:Key="TabButtonFirst"> <Setter...
asked by 23.02.2017 / 23:32
2
answers

How to take the index, of the rows visible in a WPF DataGrid?

I'm working with WPF, and I can not find a way to take the index of the visible rows of a datagrid. I'm working with MVVM ... thank you very much to anyone who can give me a hand!     
asked by 02.02.2017 / 21:48
1
answer

pass data from the datagrid of one form to the textbox of another form wpf

I have the following code to load my data into a datagrid of a form Private Sub cargarGrid() Dim conexion As New ConexionBD Dim data As DataTable dataGridVehiculos.ItemsSource = Nothing Try data = conexion.mostrarDatose...
asked by 08.02.2017 / 16:00
1
answer

Anchoring column when doing horizontal scrolling in wpf, XAML?

How can I make the first column of a datagrid be anchored by horizontal scrolling, which always remains immobile, thank you very much!     
asked by 28.01.2017 / 14:02
1
answer

Inquiry about c # mvvm and patterns [closed]

For a while now I've been looking at c# , mvvm and wpf , and every time I get more into the subject I also lose more. I clarify that I love how the mvvm works and the theme of undocking things. I have read that it sh...
asked by 28.12.2016 / 23:44
1
answer

client / server application with TCPClient

Good morning, I am developing an application that communicates with a control box and receives data from it. the control box sends me a plot in ascii with which I determine if a sensor is being covered or a loop is being stepped on, and I send i...
asked by 05.01.2017 / 18:12
2
answers

vb.net - image is not displayed when running WPF

Good morning, I have the following design: <Window x:Class="MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.c...
asked by 03.01.2017 / 20:56
3
answers

Get the value of a cell from a DataGrid wpf

How can I get the value of a cell from a DataGrid (WPF)? I have this: DataRowView item = (DGContactos as DataGrid).SelectedItem as DataRowView; _contacto.Nombre = item.Row.ItemArray[0].ToString(); _contacto.NumeroCelular = ite...
asked by 28.12.2016 / 12:06
1
answer

Use a Storyboard for various controls

Good afternoon, thank you in advance for the help. My question is, how can I use a storyboard in other controls since when I create it it is associated with a specific control in the Storyboard.TargetName, in my application wpf is linked to o...
asked by 28.10.2016 / 00:37
1
answer

Crash when assigning RenderTransform with ScaleTransform in win7 and some win10 installations

Crash when assigning RenderTransform with ScaleTransform in win7 and some win10 installations this.RenderTransform = scaladoDePantalla; en constructor. public Clientes(Window mainWindow, ScaleTransform scaladoDePantalla, List<Object> _l...
asked by 10.08.2016 / 16:38