Most voted "wpf" questions
Windows Presentation Foundation, or WPF, is a subsystem for presenting user interfaces in Windows-based applications. It features a diverse set of controls, layout options, 2D and 3D graphics, media and text manipulation and allows data binding and model-oriented style.
Learn more…413 questions
Sort by count of
-
3
votes1
answer695
viewsHow to pass text from textbox to report, with VS 2015, in C#?
I’m creating an app for where I work, which should print some information-based labels that I enter into a form I created. For that, I’m creating a smaller version, to test if everything I want…
-
3
votes1
answer449
viewsWPF Combobox - How to fill in using MVVM
I’m having doubts about how popular a WPF Combobox using the MVVM standard. Here at Stackoverflow there is a similar question to mine, however, has not been answered (I would like a brief…
-
3
votes1
answer127
viewsFormat Combobox value pulled from SQL database (LINQ) in C# Project (WPF)
I need some help with the code below... I need to make the Float value pulled from the SQL Database in the Brazilian format of the Real Number Set in a C# (WPF) project in a Combobox (as Double).…
-
3
votes1
answer379
viewsHow to update the value of one cell based on another in WPF Grid View
I have the following Grid, I would like to know how I can do so that when I leave the Gain or Spend field it updates the Total? If there’s any other way I’m happy to meet. Total = (Gain - Expense)…
-
3
votes1
answer322
viewsRelationship between the "Initializecomponent();" method and the loading of a "Splash Screen"
I added a splash screen to a project in the simplest way, that is, by changing the property Build Action for Splashscreen. Although with very similar visual effects, what really happens when we…
-
3
votes1
answer1627
viewsUsercontrol, what is it? When to use?
I am studying the best way to do a user control in a WPF application, but I have some questions regarding the UserControl available in VS 2015. I have already programmed an access control, ie user…
-
3
votes2
answers155
viewsObservablecollection does not Binding
I have the following situation: I make the instance of a property observable in the constructor: public ObservableCollection<Model.OSModel> _os { get; private set; } public…
-
3
votes1
answer76
viewsWhat do the following column/row measurements mean?
In creating rows or columns of WPF, which means each of these measures? <Grid.ColumnDefinitions> <ColumnDefinition Width="50"/> <ColumnDefinition Width="50*"/> <ColumnDefinition…
-
3
votes1
answer176
viewsProgressbar with WPF and Ionic.zip
I use the Ionic.zip dll and on it unzipo and rezipo some files and folders. My manager asked me to put a ProgressBar and I’m doubtful how to do it using WPF. It’s very fast and I don’t know if it’s…
-
3
votes1
answer61
viewsModel/View Programing - WPF and Mysql
I had already made some programs in C++ using the QT framework and its Model/View Programming(http://doc.qt.io/qt-4.8/model-view-programming.html). The concept was simple: created a template that…
-
3
votes1
answer2266
views -
3
votes2
answers58
viewsAre there any components that replace Windows Forms Spinedit in WPF?
I prefer open source components, or if possible a form of adaptation, because I did not find any Spinedit or similar in WPF.
-
3
votes1
answer1975
viewsCalculate square root in C#
I have a calculator made in WPF C# with basic operations +,-,*,/, % . And now I wanted to try to improve my calculator. namespace calculadora { public delegate float? dlgoperacao(float? a, float?…
-
3
votes1
answer85
viewsKeyboard shortcuts in Ribbonwindow
Hello, I’m developing an application using WPF and window based on Ribbonwindow of Ribboncontrolslibrary and I’m having problems with the Gesture of "Ctrl+0", only with the "Ctrl+Numpad0" I was able…
-
3
votes1
answer349
viewsHow Popular a Listview, and her Popular another Listview by Primary Key?
I have two Listviews that I need popular using LINQ to SQL (C#, WPF project) from a search field. When typing in the field(textbox) the Keydown event will popular the first Listview (1), as the…
-
3
votes1
answer141
viewsWhat to test/implement in a viewmodel?
I am trying to implement a standard MVVM (Model - View - Viewmodel) that is related to MVP. Since Viewmodel, by my understanding, is responsible for "passing" the data from the View layer to the…
-
3
votes1
answer560
viewsHow to create professional designs in WPF
Well, I’m not Designer that’s fact, and those who do not have designer skills suffer a lot with the new interface technologies, among them the WPF. Who does not have a knowledge of designer will…
-
3
votes2
answers167
viewsSet an image
I’m trying to set an image, but I’m not getting it. WPF can’t seem to find the image path. Why this happens? <Image Width="60" Height="60" Stretch="Fill" Source="\Images\Tiles\clientes.png" />…
-
3
votes1
answer1031
viewsHow to make a textbox receive only numbers
How do I make for a textbox receive only number, but only for WPF. With winform I can do, but with WPF I could not yet.
-
3
votes1
answer1240
viewsHow to call and display a WPF Window that is in a dll
I have a DLL containing a WPF window, created through a project of the type WPF User Control Library. How do I display this window from another project? XAML window (DLL project): <Window…
-
3
votes1
answer148
viewsViewmodel’s communication: return data to previous screen
I have a screen A that has a text field and a button, that screen button A, opens a second screen B. That screen B has another text field to fill and save, when the person click save the screen…
-
3
votes1
answer335
viewsWPF Xaml Stringformat
Good afternoon guys, I’m having a problem kind of ridiculous, but I can’t find the solution. I’m trying some stringFormat as StringFormat={}{0:#,#.00}} and StringFormat=N2}, besides…
-
3
votes2
answers72
viewsTextbox changes the value to decimal (EN) when pressing the TAB, however I want to leave currency (REAL) the field
I have a field <TextBox x:Name="TbTotalICMS" Style="{StaticResource MeuTextBoxValor}" Text="{Binding Vicms}" /> My Vicms is a decimal. By pressing the TAB key, the value that is 1.00 (example)…
-
3
votes3
answers96
viewsLink selection between two Listviews
It would be possible to link the single selection between two objects ListView via Xaml? For example, I have two ListView, the TopListView and the BottomListView, both configured for simple…
-
3
votes1
answer125
viewsMemberwiseclone of aggregates
I have in memory (not yet stored in database) an object of type List<NotaFiscal>. I need to pass an item from this list as a parameter to a screen to make changes to that object. However it…
-
3
votes3
answers345
viewsDynamic search in c# and WPF
Good morning I would like to ask a question about a dynamic research. Setting: I have a search screen, where the user selects 3 fields, being them: The first is the search screen field, where you…
-
3
votes1
answer1507
viewsHow to Place Text from a Textbox on a Label? C# WPF
I am developing an application in C# WPF, and I have two Forms. A Form has several Abels (with the name of several fields, such as gender age, name, etc...) and under each of the Abels has a Textbox…
-
3
votes1
answer446
viewsProgressbar WPF
Hello, I saw several examples on the internet of progressiBar in WPF , but none works. It appears no longer fills the values, in fact it fills the values only after running the initial method where…
-
3
votes1
answer560
viewsTextbox masks value from 2 to 4 decimal places in WPF C#
I wish my Textbox had the following "mask" When I put two houses after the comma: 0,00 or when I put three: 0,000 or when I put 4: 0,0000 My code in WPF C# and the following: <TextBox…
-
3
votes0
answers119
viewsBinding between components with XAML and C#
I need that when selecting an item in a combobox, the textbox is released for editing and its completion is required, as image below: This Binding is being active by clicking on the new button,…
-
3
votes1
answer33
viewsProblems with wpf Data Grid
Good night. I am developing a project but I am having problems, I use a list that is being generated with the data of my database (Entity for connection), I want to populate a data grid but I do not…
-
3
votes1
answer91
viewsHow to deal with business rules?
I am working on a C# WPF + EF6 application and find myself lost when it comes to reusing business rules. I’m using the standard repository + Unit of work, but I believe that copying-pasting complex…
-
3
votes1
answer61
viewsHow to fill empty space on the Grid with Textblock?
I have the following XAML <Window x:Class="ambiente_teste.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"…
-
2
votes1
answer341
viewsPortable Database for WPF + C#
I am creating a form in WPF + C# in VS Express 2013 for Desktop. Is there any database similar to Sqlite that I can use with C#+WPF? Because as I come from the development in Delphi I got used to…
-
2
votes1
answer66
viewsHow to leave my Button disabled but appearing the image?
Does anyone know if there is any option for me to leave my Button disabled but showing the Button image? What happens if I disable Button. Button XAML code. <Button x:Name="BtnCalc" Content=""…
-
2
votes1
answer179
viewsAssembly structure in a project using the Pattern MVVM
I’m having trouble organizing the Solution of a project using the MVVM. I don’t use any MVVM framework. I currently have the following structure: Solution | --- AppView (Projeto principal onde estão…
-
2
votes1
answer1692
viewsHow do I read a Datagrid, line by line?
I have a DataGrid (WPF) filled by an external data source. I need to rotate the entire grid, checking the values of each row, column by column. How is it possible to do this? What is the "heart" of…
-
2
votes1
answer187
viewsHow to add a Label inside a Textblock by code Behind
How do I add these Labels within the TextBlock, for code behind? <TextBlock> <Label x:Name="NumeroPergunta" FontWeight="Bold" /> <Label x:Name="Pergunta" /> </TextBlock> What…
-
2
votes2
answers931
viewsSelect returns nothing at all
I have the following method: public DataTable Select(bool all = true, string campos = null) { if (all && campos == null) _sql.Append("SELECT * FROM "); else _sql.Append("SELECT " + campos +…
-
2
votes1
answer276
viewsHow to style 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 am on Windows 7 machine. What I needed to do is to develop a desktop system on my computer (Windows…
-
2
votes1
answer372
viewsHide Tray Icon Menu
I created a menu for my TrayIcon: However, if the user does not select an option, it is still visible. Would anyone know how to hide if the user clicks outside the menu area? Here’s the code I’m…
-
2
votes1
answer115
viewsProgress within a Task
How can I modify 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);…
-
2
votes1
answer277
viewsI would like a brief explanation of how to fill a combobox in MVVM standard
I would like a brief explanation of how to fill a MVVM standard combobox. The three parts, Model, View and Viewmodel filled with the table of the Database. Model: class Racas :…
-
2
votes1
answer359
viewsBetter performance in a WPF system
How to leave a system in high performance? Follow a MVVM project pattern? I have the following XAML, but when I run it hangs in time to pass the focus to others textBox. Why? My system is too slow,…
-
2
votes2
answers944
viewsRight-click options menu selected in datagrid
Hello, I have the following problem: I have several records on datagrid and I want the moment I select a record and right-click on it, a menu with options for the selected row appears. The only…
-
2
votes1
answer43
viewsEdit default Errotemplate layout
I implemented the interface Idataerrorinfo, that is working according to the image below. I didn’t create my Errortemplate, what is being used is the . NET default. I wonder if there is somewhere…
-
2
votes0
answers36
viewsAnimation with dependency Property
I’m studying dependency properties in WPF. In all the articles I read I cited the use of this resource in the animations, but I could not find any application. What is the advantage of using a…
-
2
votes1
answer755
viewsChange the color of a line and take the selection of a Datagrid
I have a method where I can change the color of a line in my Datagrid. I followed through this link: Link The problem is being like taking out the selection from when it is painted. Type, go back to…
-
2
votes1
answer90
viewsInformation on 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 go to the Application Title... This is possible? The attribute Title is…
-
2
votes2
answers675
views