Questions tagged as 'wpf'

0
answers

How to start WPF program with a ContentControl already loaded?

I have three ContentControl that I created: ContentControl homeContent = new Home(); ContentControl completeContent = new Complete(); ContentControl individualContent = new Individual(); I want my program to start with the content of...
asked by 14.05.2018 / 21:20
0
answers

Second thread only when Windows is closed

I have following code private void AbrirConexao(string strConexao) { try { conexao = new NpgsqlConnection(strConexao); conexao.Open(); } catch (Exception) { ReconectarDB(null, strConexao); } } p...
asked by 13.05.2018 / 00:50
0
answers

Error while doing restore Database Application Windows Forms

I'm creating the database backup, but I can not restore it. It shows the following error: Thisismycodetoperformtherestoreofthebanktomyapplication.try{var_with1=openFileDialog1;_with1.Filter=("DB Backup File|*.bak;"); _with1.FilterIn...
asked by 26.04.2018 / 20:52
0
answers

How to select text from another window?

Follow the code below: MainWindow.cs: " MainWindow ", has a textbox and the following code, shows a new window that is " Configuration ". var window = new Configuracao { Owner = this }; window.ShowDialog(); Configuration.cs:...
asked by 10.04.2018 / 19:17
1
answer

Change Button name via WPF code?

   I want to access a control in WPF to access properties   modify it.       However, I can not seem to find much of an approach to Wpf today.       What I want to do for example is to change the name of a button to   any name. XAML...
asked by 04.03.2018 / 20:10
1
answer

Do not need to pause the Thread to bring the results

I have a problem getting data from a device. It works like this: this device is called Module , in this Module I can start some operations like start , stop , abort operation ... The application I am working on, sends commands to this...
asked by 22.02.2018 / 18:49
1
answer

Problems with hotkeys to open and hide the interface using "Application.Current" (C # WPF)

The following code works without problem, I did it based on the code available on the internet of SirMestre, however it only opens / closes the MainWindow UI, I have already tried some things to work but the error or does not work in other UI's....
asked by 18.02.2018 / 14:25
1
answer

How to set the TabItem Header in bold?

I have the following TabItem : <TabItem Header="TESTE" x:Name="planoCargaBalanca1" FontWeight="Bold"> I want the Header to be in bold , I tried to use FontWeight="Bold" but all my content was in bold. How to leave...
asked by 16.02.2018 / 18:49
0
answers

TreeViewItem and HierarchicalDataTemplate

Is it possible to use HierarchicalDataTemplate of a TreeView per Attribute and not by Type? I explain: <TreeView x:Name="tv" > <TreeView.Resources> <HierarchicalDataTemplate DataType="{x:Type local:MeuTipo}" > <Bord...
asked by 14.02.2018 / 21:01
1
answer

Problem with Mysql net connector and Entity Framework

When I install the mysql connector in version 6.9.11, I can see the driver for ADO.Net, so far so good. ButwhenItrytocreatethetemplateIgetthefollowingerror: Now when I install the connector version 6.10.6, I can not see the driver for A...
asked by 05.02.2018 / 22:48