Questions tagged as 'wpf'

2
answers

Construction of timer

I am building a timer using WPF . When I ran some tests, I noticed that the timestamp in WPF lags behind the timer of my iPhone . The difference starts appearing after 8 seconds after the start of the timing. Below I've made available the...
asked by 17.11.2017 / 22:46
1
answer

WPF using MVVM - Whose responsibility is it to open a new window?

In MVVM we have Views, ViewModels and Models. All the business logic of my application is in models, where I use viewModels to manage them, as well as binds and commands that are sent from Views. But now I have a problem, I need to open a new...
asked by 06.02.2017 / 17:18
1
answer

Animate a side menu in WPF

Hello, I am now entering the WPF world (I come from MVC), and I have a question: I am trying to animate an expandable menu, that is, when the user clicks the button, it expands and when it clicks it again it hides. I even managed to do the ani...
asked by 01.06.2017 / 20:15
1
answer

How to use an enumerator as an ItemSource of a ComboBox?

Assuming I have the following: enum Dias {Segunda, Terça, Quarta, Quinta, Sexta, Sábado, Domingo}; How can I use the enumerator Dias as ItemSource of a ComboBox in a WPF application? For example: <Combo...
asked by 23.09.2016 / 23:35
1
answer

How to change the source of an image control from a ResourceDictionary

I have the following ResourceDictionary: <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace...
asked by 03.04.2016 / 20:08
2
answers

I can not make an animated gif work in my WPF project

I downloaded a gif.animado in this link . The problem that in the link I double click and it works. I drag it to my application and it no longer works. The image appears, but still and not moving. I want to put this gif instead of a progressbar...
asked by 18.03.2016 / 17:11
1
answer

Information in Title - WPF

I have an application where the user can select the company to be worked on. When he selects, I would like this information to be for the Title of the application ... Is this possible? The Title attribute is in the parent window. Since this M...
asked by 22.06.2015 / 22:03
2
answers

Right-click options menu in selected row in datagrid

Hello, I have the following problem: I have several records in datagrid and I want the moment I select a record and right click on it, a menu with options for the selected line appears. The only options in this menu are delete, details and...
asked by 26.05.2015 / 15:38
1
answer

Better performance on a system in WPF

How to leave a system in high performance? Follow a pattern of MVVM projects? I have the following XAML, but when I run it hangs at the time of passing the focus to other textBox . Why? My system gets very slow, I do not understan...
asked by 26.05.2015 / 14:38
1
answer

Use the same click event for several buttons in C # WPF

I'm doing a C # project using WPF, which has many buttons. Is there any way to identify which button was clicked so that you do not need to click_event for each Button?     
asked by 19.10.2015 / 18:47