Questions tagged as 'wpf'

1
answer

Send more than one string to serial

I am creating a string through two values, one of them read through a slider and another of a check box. Together the two in a string called a and sending at the same time in the serial. Follow the code: private async void Sen...
asked by 29.11.2017 / 01:29
1
answer

How do I bind an element that was inherited from a User Control?

I've assembled a User Control that will be a screen template for me to implement other screens and avoid repetition of layout components. It contains a TextBox txb Search. <UserControl x:Class="SistemaComercial.Presentation.WPF.Views.Lists....
asked by 10.10.2017 / 00:56
1
answer

How to handle a render exception in Windows Presentation Framework (WPF)

Randomly, my system causes this exception (which I only see because of the logs left in Windows events). It is an application that runs 24 hours a day every day. When the error occurs, the screen freezes and if I click anything, the program clos...
asked by 16.08.2017 / 13:41
1
answer

Printing in Dot Matrix Printer with WPF C #

How do I print my tickets to a dot matrix printer (LX300) from routines made in WPF C #? Do you have anything specific for that? A drive or plugin?     
asked by 11.08.2017 / 13:59
1
answer

Change MenuItem Popup Template WPF

I'm trying to modify the style of my MenuItems and their SubMenuItems but the popup where the SubMenuItems are is in a default style. To be clearer: Popup is a default Windows component of WPF ...     
asked by 04.07.2017 / 02:32
1
answer

How to cancel the execution of a function in C # [closed]

I'm developing a desktop application in C # WPF where there is a function responsible for sending email EnviarEmail() , when this function is executed it takes a certain amount of time for it to run completely. And when it is being execute...
asked by 05.07.2017 / 15:49
1
answer

Why use MVVM in a WPF + EF + C # application

I've researched a number of forums and articles, and everyone says that the MVVM standard should be used when working with a project with EF + WPF. Can anyone tell me why this is so? because I want to implement a system but I do not know what...
asked by 31.03.2017 / 03:00
1
answer

The show () method in my wpf does not work

I made a tiny desktop application using wpf. I have a very simple login screen and this screen should call the main screen. I did so: Menu menu = new Menu(); menu.Show(); You're making a mistake in the show, saying it's not recognized. The...
asked by 08.08.2017 / 00:53
1
answer

MahApps - Change icons to a desired PNG format

I found a WPF project on the web very cool. It uses a framework called MahApps. In the Hamburger menu there are some icons that use images from a Mahapps package. I would like to know if there is a possibility that I can change the block and con...
asked by 19.06.2017 / 01:34
1
answer

Create child window with WPF

I'm trying to create a daughter window that gets tied to the main window (in WPF). After creating the child window, I initialize it with nomeDaJanela.Show() . However the window becomes loose, as if it were not part of the main window, eve...
asked by 20.03.2017 / 18:39