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
-
2
votes1
answer2713
viewsThe index was out of range. It should be non-negative and smaller than the collection size
I am creating a program that stores the profiles of all teachers online currently in a list and then displays the first 3 in a label (where a button advances by displaying the next 3 online), but…
-
2
votes0
answers240
viewsInsert picture text into a Sharepoint Listitem
I create items in Sharepoint, with a WPF/C#app, as in the example: using System; using Microsoft.SharePoint.Client; using SP = Microsoft.SharePoint.Client; namespace…
-
1
votes1
answer319
viewsHow to make a query inside an XML file?
I need the value of <version> is returned to a variable in a WPF application. The XML file is on the server and contains: <?xml version="1.0" encoding="ISO-8859-1" ?> <Application>…
-
1
votes1
answer910
viewsHow to group my Data Grid by modules?
How can I group data in my Datagrid? For example It would have as I group these values and add them in a Datagrid more or less as I described above?…
-
1
votes1
answer2741
viewsMove files between folders with C#
I have an application that checks and downloads a file as soon as it runs through the Window_Loaded. Here is the method that performs this task: XmlDocument doc = new XmlDocument();…
-
1
votes1
answer299
viewsHow do I leave specific items in my dynamic listbox disabled?
I have a Listbox that is dynamically loaded using EF. One of the filters used is that the product exists in stock. var query = (from p in db.Products join s in db.Stocks on new { p.SchoolID,…
-
1
votes2
answers108
viewsBinding Linked Combobox Update
I’m working with the standard MVVM, so far so good, I have a class PessoaViewlModel. In it I own a property IEnumerable<Municipio> Municipios, in which he presents to me all the…
-
1
votes1
answer2703
views -
1
votes1
answer402
viewsHow do I update my WPF application after it is installed?
I’ve found several programs that create an installer for my application, but I’m worried when I need to make system updates, I need it to be something automatic, when the user logs in, the system…
-
1
votes1
answer102
viewsWPF Buttons automatically grouped in a stackpanel
I have the following little problem: I’m creating buttons from the results I find in the data bank. I would just like to position you both accordingly, and when He gets to the end, breaks the line…
wpfasked 10 years, 2 months ago Carlos Mansilha 105 -
1
votes0
answers120
viewsSearch button through Content and filter in search
I would like to implement a search field, and it filter the buttons and show only the filtered ones, in my case my buttons are inside a UniformGrid. This search function is similar to Windos 8…
-
1
votes2
answers1314
viewsHow to change the color of a Datagrid line in C#?
When a Datagrid row was selected and then a button was clicked, the color of the selected row changed, I use Visual Studio 2013 and it is Wpf application.
-
1
votes1
answer335
viewsHow to paint a cell from a Datagrid?
See the code in How to change the color of a Datagrid line in C#? He’s painting the whole line, as far as that’s concerned, what happens and that at the time I give one scroll the painted line is…
-
1
votes1
answer64
viewsProblem to the popular Datagrid
I’m making the population of a Datagrid, but I don’t know why you’re not showing. Result: Only empty lines are returned. Fiscalizacao.Cs public class Fiscalizacoes { private String Concessionaria {…
-
1
votes1
answer84
viewsPass variable through Converterparameter
I have the following code snippet: Visibility = "{Binding TipoDestinatario, Converter={StaticResource conversorTipoDestinatario}, ConverterParameter=}. You would need to pass a boolean variable…
-
1
votes1
answer1271
viewsClose only one Window
I created a window JanelaUm, every time I click on button this window is displayed. in the code-behind of JanelaUm have the event window_KeyDown with the following code: if (e.Key == Key.Escape)…
-
1
votes1
answer338
viewsShortcut on clickonce User Startup
I have an app ClickOnce, I have the option to create a shortcut on Desktop, but there is a way to make it add a shortcut in Initialize Windows? Programmatically, the user when installing the…
-
1
votes1
answer166
viewsDatabase replication in WPF + EF system
I have a sales system in WPF / EF that is in use in different cities, but the database is at headquarters. I am having problems when the city link is very slow, resulting consequently in the slow…
-
1
votes2
answers187
viewsDoubt about using in Visual Studio
I create a new project but can’t put those using as in this example below. He appears as in the other code below... Help me please =/ using System; using System.Collections.Generic; using System.IO;…
-
1
votes1
answer450
viewsBlock if you just type a word into a Textbox
I work with C# - WPF and have a field where the client can enter his full name. I’d like to validate where it can’t just type the first name if it doesn’t open a blocking message. I mean, he would…
-
1
votes1
answer369
viewsGrab project URL
Hello, I need to get the url where my project is (wpf). The reason is this: there is an image upload inside the Image folder (which is in the Image File of my project) and I need the image File to…
-
1
votes3
answers661
viewsHow to make the text disappear from the WPF C#field
I’m using wpf for the first time, as is the declaration of a textbox field in which I have a text (Ex: "Login") and when I click it disappear and soh the pointer so I start typing? If you don’t…
-
1
votes1
answer88
viewsSet the Itemssource of a Combobox within an Itemtemplate
Hello, I have a Combobox inside the Itemtemplate of a Listbox, the items in that Listbox are defined from an Observablecollection in Viewmodel, and each item in that list is an object with a…
-
1
votes0
answers299
viewsBinding in Textbox with Datagrid (WPF)
I have a Textbox where you get the customer id and I also have a Datagrid where he has some personal information. Well so far so good, what I’m not getting is to connect the two in the following…
-
1
votes1
answer197
viewsAdded multiple items in a Datagrid by List<>
I have two textbox. One for email and the other for notes. When the user clicks on the add button, it should be adding to my datagrid, but without success! How can I do this? As the user clicks on…
-
1
votes1
answer48
viewsCustom Control Libary WPF - Dispatchertimer Does Not Start VB.NET
I wanted to know why of this function created in a dll for WPF application in the VS 2013 does not start the DispatcherTimer. Code: Public Sub Iniciar TIniciaAntiDebuggers = New DispatcherTimer()…
-
1
votes1
answer561
viewsInformation from a User Control to the Parent Window
I’m trying to send some information from my User Control to the title bar of the main screen that would be the parent window. The information I’m trying to send is the company selected from a…
-
1
votes1
answer244
views -
1
votes1
answer221
viewsEnable WPF C# Button through a function
I have a form to fill in some data through Textbox. I have a class that has some validation functions of fields name, password, user for example. And in my Code Behind just call the function that…
-
1
votes3
answers38
viewsHow do I replace windows form Dialogresul in wpf?
I have that code: DialogResult dr = ofd1.ShowDialog(); Moving to WPF does not work. I searched the internet and found nothing yet, that satisfy me. As I replace in WPF? Note: ofd1 is a OpenDialog…
-
1
votes0
answers195
viewsHow to insert a chart as subreport in WPF Report Viewer
I am developing a WPF application and need to insert some charts in a report. I have created two files. RDLC one called Infographic and the other Sub-Fographic. In my subreport I would like to add a…
-
1
votes1
answer128
viewsProject only runs if Visual Studio is installed on the client machine
Hello. I have a project done in WPF, which uses data returned by web services to interact with the user. This system, when starting, consults the IIS to see if it is standing, if the web services…
-
1
votes1
answer641
viewsRemove border from WPF window
I have this window with an image defined as background, ok, but note that the image is not occupying the whole window. How can I remove these edges? Remembering that, the window is with the…
-
1
votes0
answers40
viewsTrackbar component with two meters
I created a component trackbar with 2 meters , more when I manually rescan it on xaml , to barra and the marcadores disfigure and the barra rises and the marcadores go to the side. Code : using…
-
1
votes2
answers473
viewsSync items in comboboxes at runtime
I’ve been trying to figure out how to synchronize a combobox with another one for some time. I’m looking to synchronize comboboxes at runtime. When the user selects a category in the combobox,…
-
1
votes1
answer1288
viewsPrint width on thermal printer, WPF and C#
Hello, I am making a program to print list of activities in thermal printers, in it I put this information within a table (created in print-only code, full width around 250, and font size like…
-
1
votes1
answer32
viewsProblems with Ribboncombobox
Good afternoon, we are developing a text editing tool. In it we are using the menus with the "Ribboncontrolslibrary", and until the moment everything is right. When I decided to use Ribboncombobox I…
-
1
votes1
answer75
viewsError in WPF application, but only on some machines
I made a small application to extract a file .zip. It works, but when I run on three other machines, it doesn’t work. The error is this: An error occurred while creating ZIP file Undefined object…
-
1
votes1
answer117
viewsDefine multiple styles for a Usercontrol via Staticresource’s in WPF
I’m starting to work with WPF because of its resemblance to HTML. I realized through my research that when I use an expression like this Style="{StaticResource MeuStyle}" looks a lot like a class…
-
1
votes1
answer25
viewsRemove UI Debugging Tools from Window
I would like to know how to remove the option UI Debugging Tools for XAML appears at the top of the window WPF (as shown below)…
-
1
votes1
answer65
viewsProgrammatically change the date displayed in a "Datepicker" control?
I’m trying to display data from a table field MySQL in a control DatePicker. The code is as follows:: if (dataGridProdutos.SelectedIndex != -1) { DateTime selectedDate; DataRowView selectedRecord =…
-
1
votes2
answers71
viewsError while trying to change cursor during C#algorithm
Hello, I am developing a C# software to help in the scanning of old photos, and in the middle of one of the algorithms to process the images, I want the cursor to change to the loading mode so that…
-
1
votes1
answer55
viewsError in namespace when creating "Resource Dictionary ..." inside a folder
In an empty project (test - WPF Application) I test two scenarios. Scenario 1 Right click on the project Add Resource Dictionary ... I get the following: <ResourceDictionary…
-
1
votes1
answer80
viewsCreate controls dynamically in WPF
I need to create checklists that depend on previous inputs and processing. How do I create these "checklists" dynamically in WPF? (a code snippet, please).
-
1
votes1
answer335
viewsWhy use MVVM in a WPF + EF + C#
I searched several forums and articles and all say that the MVVM standard should be used when working with an EF + WPF project. Can anyone tell me why that is? because I want to implement a system…
-
1
votes1
answer666
viewsAlter color of the Datagrid cell
I have a Datagrid in C# WPF, and I need to change the color of some cells according to one condition. For example I have the Stock column and if the Stock is less than a specific value I put its…
-
1
votes3
answers333
viewsProblem saving accent with Entity Framework and Postgresql
I need to migrate a system with SQLSERVER database to a Postgresql 9.3. I’ve never worked with Postgre before so I’m using Entity Framework 6 with model-first to make the process easier. The…
-
1
votes1
answer82
viewsChange Menuit Popup Template in WPF
I am trying to modify the style of my Menuitems and their Submenuitems but the popup where Submenuitems are in a standard style. Just to be clear: Popup is standard Nacor of a WPF Window…
-
1
votes1
answer61
viewsThe 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 are making a mistake in…
-
1
votes1
answer429
viewsMatrix Printer Printing with WPF C#
How do I print my tickets to a matrix printer (LX300) from routines made in WPF C#? Do you have anything specific for this? A drive or plugin?