Questions tagged as 'wpf'

1
answer

How to stylize a WPF application to look like Windows 8 applications (Metro style)

I work in a company where they use a system that is very reminiscent of Windows 8, even though I'm on the Windows 7 machine. What I needed to do is to develop a desktop system from my computer (Windows 7) but needed to leave the same face, si...
asked by 10.04.2015 / 19:55
1
answer

How do I read a DataGrid, line by line?

I have a% wpf (%) being populated by an external data source. I need to rotate the entire grid, referring to the values of each row, column by column. How can this be done? What is the "heart" of data in a grid? Can I transform the data...
asked by 26.06.2014 / 21:16
1
answer

How to disable Ctrl + V from contextmenu?

In the textbox you can not paste, the following code works fine: private void Textbox_PreviewExecuted(object sender, ExecutedRoutedEventArgs e) { if (e.Command == ApplicationCommands.Paste) { e.Handled = true; } } The pr...
asked by 12.06.2018 / 18:13
2
answers

Binding inside a CompositeCollection does not work

I'm using a ComboBox in a WPF application and when a function is activated, it loads a List<string> from a webservice to an on-screen property. My problem is that I can not make the ComboBox update update when this property is chang...
asked by 27.03.2018 / 17:50
1
answer

How to add properties to WPF components?

I can use System.Windows.Controls.TextBox as an example. How do I add more behaviors and properties to it? In a real context, I would like the TextBox component to have a boolean property HasErrors , which if set to true,...
asked by 19.02.2017 / 16:48
1
answer

What do the following column / row measurements mean?

When creating WPF rows or columns, what does each of these measures mean? <Grid.ColumnDefinitions> <ColumnDefinition Width="50"/> <ColumnDefinition Width="50*"/> <ColumnDefinition Width="*"/> <ColumnDefinitio...
asked by 10.09.2016 / 04:05
1
answer

How to create a Merged "ResourceDictionaries"

I have a small example where I created an application-level resource: <Application x:Class="teste1.App" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xam...
asked by 02.04.2016 / 12:24
1
answer

ProgressBar within a Task

How can I change the values of an interface control within a separate task from the main thread? Example: private void button1_Click(object sender, EventArgs e) { Task task = new Task(Processar); task.Start(); } pub...
asked by 29.04.2015 / 04:24
1
answer

Texblock - Make a text-changing event

I have already seen that the TextBlock property does not have an event when the text changes. Is there any way to do an event when the text changes? * Remembering that it is for WPF and not Windows Forms. This question is only for WPF...
asked by 18.12.2017 / 15:24
1
answer

LiveChart - Fill Cartesian Graph with Query Data Sql Server

I have a DataContext set in a CartesianChart that does not display data ... no error is displayed, just guess I am making wrong use of the DataContext and I can not fix it, I'm using the LiveChart-WPF package Xaml: <lvc:Cart...
asked by 13.12.2017 / 22:46