Questions tagged as 'wpf'

1
answer

How to put hours in control Datepicker WPF C #?

I need you to choose the day and time but I think it is not compatible with the hours or can you change the format? <DatePicker x:Name="dpFirst" HorizontalAlignment="Left" Margin="430,29,0,0" VerticalAlignment="Top" DisplayDate="2018-06-18"...
asked by 18.06.2018 / 21:47
1
answer

Publish WPF project with database in SQL Server

Good, I have a project that I did in visual studio (WPF) and that is already "finished", this project connects to a database I did with SQL Server Management, my question is how can I "publish" or create an .exe file of this application to be ab...
asked by 17.01.2018 / 19:09
1
answer

there is an overload for 'OnKeyDownHandler' matches the delegate 'KeyEventHandler'

I have the following method that has the OnKeyDownHandler event and I can only send it two parameters and I want to send it a list as well (FileInformation FilesList) private void OnKeyDownHandler(object sender, FileInformation FilesList, KeyE...
asked by 02.10.2017 / 16:14
1
answer

How can I show wpf windows in an MDI type menu?

I am developing the interface of an academic system with WPF C # with styles of MAHAPPSMETRO and MATERIAL DESIGN and I need to show the windows of the system in an MDI style menu of windows forms but when I was researching I read t...
asked by 22.09.2017 / 08:43
1
answer

treeview binded in wpf disable nodes

I have a treeview that is binded to a class: The problem is that I want to add a property that if they have the treeviewitem, to activate or deactivate parts of the tree, but when bindear a class of its own, I do not know how to add that prop...
asked by 06.09.2017 / 19:33
2
answers

Manage key commands from c # and WPF

Hello, I am trying to avoid that the user can copy, paste, cut and print from my application with WPF. What I found in the forum all used in the System.Windows.Forms.KeyEventArgs method however I have to use System.Windows.Input.Key...
asked by 11.05.2017 / 12:37
3
answers

How can I not open the same wpf window twice in c #?

I have a base application but the secondary window should not open twice when I click on the menu. This is my code: private void MenuItem_Click(object sender, RoutedEventArgs e) { Agregar_Vendedor ventana_agregar_vendedor = new Agreg...
asked by 16.12.2016 / 05:19
4
answers

How can I "bin" an ObservableCollection to several views and keep it synchronized between them? WPF

I need to bind a ObservableCollection to several views and that this list stays synchronized among all the views, in case of modifying the list (adding, removing or updating a value in said list) the change is replicated for all the views...
asked by 17.11.2016 / 16:27
1
answer

Style DataGridRow WPF

I have a DataGrid with a DataGridTemplateColumn , a other columns that are loaded dynamically, I'm trying to change the background when the property Eliminado is in true , but it has not worked for me way. The...
asked by 18.11.2016 / 16:28
1
answer

Drag and drop between views and regions with PRISM 4

I am trying to drag a view to another region with PRISM, and so far I have not succeeded. It's possible? Does PRISM 4 support this operation? If it does not support it, what would be the alternative solution? In the PRISM reference book: "Develo...
asked by 03.06.2016 / 13:05