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
-
1
votes1
answer73
viewsHow to Perform Label Visibility Binding according to the size of a List
I have a list of objects of type "Basicvariable", a ObservableCollection of them, and I need the Graphical Interface to display a Label when the number of items in this Collection exceeds 1000, I…
-
1
votes1
answer18
viewsLogic problem with Progress Circle
I have a Circle preview in my wpf project, I’m using a class to convert the value 360 to 100, to look like it’s 100%, but I have a problem, I get an X time, and the 100% of the circle has to be…
-
1
votes0
answers112
viewsUpload Datagridview photo and move to picturebox C#
Guys with little difficulty in picking up my registered photo and show it in Picturebox My scenario is this:: I have a registration form that makes the insertion of data and A form that searches the…
-
1
votes1
answer47
viewsWPF C# Current position of Mdichild?
I have implemented a MDIParent with 3 children. I want to know where the children are but I have no access to any property since: child.position is always (0,0). shaman I have: <mdi:MdiContainer…
-
1
votes1
answer42
viewsWPF how to give Focus to previous Window?
Good staff, I have a window in Toolbox WindowStyle="ToolWindow" which only serves to give information to the user what is happening on BackgroundWorker But I am having a problem, I for example have…
-
1
votes3
answers143
viewsC# - Know location of database file dynamically
I am making a program using C# in WPF, and I need to access the database dynamically, in this case I am using a .mdf.file. In code I have connectionString like this: string stringConexao = @"Data…
-
1
votes0
answers30
viewsProblem with Bindind + Keydown C# WPF
I have in XAML a combobox and a textbox, being them: <Label Grid.ColumnSpan="4" Content="Tipo Filtro" Grid.Column="0" Grid.Row="0" Padding="0" VerticalContentAlignment="Center"/> <ComboBox…
-
1
votes1
answer36
viewsProblem with Inotifypropertychanged C# WPF
Guys I’m having a question, I’m messing with c# WPF vs2017, and I did the following: every class I put Inotifypropertychanged and added: public event PropertyChangedEventHandler PropertyChanged;…
-
1
votes1
answer30
viewsChange foreground color in XAML Binding (not working)
I have a text that color should alternate according to the method check below: public Color VerificaAlarmes { get => ChecarLimites? AlarmColors: Color.Gold; } public Color AlarmColors { get { if…
-
1
votes1
answer235
viewsXML serialization/deserialization C#
Good night! I can’t use the data I do the XML deserialization, there is no exception or anything like that... I already checked the path, data but I can not list the data... XML: <?xml…
-
1
votes1
answer21
viewsProblem with Binding and Caretindex
I have a Datagrid List: <DataGrid Name="GridLista" Grid.ColumnSpan="20" Margin="5" Grid.RowSpan="17" Grid.Row="3" CanUserAddRows="False" CanUserReorderColumns="True" AutoGenerateColumns="False"…
-
1
votes0
answers73
viewsChange property of a XAML control by changing value of a property in viewmodel
I have a Page with this style: <Border Padding="{Binding InnerContentPadding}" > <Border> <ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">…
-
1
votes0
answers72
viewsHow to release memory in a WPF application in C#?
Well I created a system in WPF and C# and every day that passes it gets bigger, I honestly had never worried about the issue of memory for small applications doesn’t make much difference, but that’s…
-
1
votes0
answers10
viewsProblem with WPF project in Visual Studio
Hello, I have a problem in Visual Studio and would like to know if anyone has a solution. I have created a new WPF Window: public partial class CadastroCobertura: Window { (...)} however this class…
-
1
votes0
answers59
views -
1
votes0
answers23
viewsBy inserting data generated in Behind code through the model without having to DISPLAY in the view, is it possible?
Look I’ll start by saying that I know what I’m trying to do is break a taboo of the MVVM standard, but it is not possible that there is no other way to do this, it is common to have q create new…
-
0
votes1
answer1097
viewsClickonce failed to load Crystal Reports
I have a WPF application in C# and some reports of that application. When installing the application with Clickonce the reports are not called and the failure message appears when loading report.…
-
0
votes2
answers1066
viewsContext does not load database data
My context is not bringing the database data. Error messages. Value cannot be null. "Value cannot be null. r nName of parameter: Connection" Value cannot be null. Name of parameter: Connection Cód…
-
0
votes1
answer963
viewsHow to set the installation location in Clickonce?
I am developing an application in VS2012 using WPF, I am using Clickonce itself to install the application, only it always installs in users' folders, like: C: Users USERNAME Appdata Local Apps 2.0…
-
0
votes1
answer228
viewsHow do I finish my WPF application and boot it again?
I have in my application a database configuration screen, in which once configured I have to close the system and then open again to take effect the changes made. How can I do this in an automatic…
-
0
votes1
answer2145
viewsHow to limit characters in a textbox
How to limit the number of characters in a Textbox in xaml and via code behind?
-
0
votes2
answers1001
viewsFocus on open window
I am with an application in wpf, with several buttons that open other windows outside the main system. I call them through the: .show(); Focus.(); If the user clicks multiple times the button opens…
-
0
votes1
answer125
viewsWPF - How to create a mechanism to make the application available for testing for x days?
good morning I am creating a WCF application and would like help or direction at the following point: I need to make the app available for anyone to download and test, like a test for 30 days and…
-
0
votes1
answer390
viewsMask for a datepicker field in an application
I have an application in wpf, so there are windows that have fields for date types, I put these fields with datepicker in which there is a calendar for choosing the date. So far so good, what I…
-
0
votes1
answer94
viewsRibbon for Visual Studio Express 2013
How to install or activate Ribbon in Visual Studio Express 2013?
-
0
votes1
answer49
viewsForm derailed after adding a Scrollviewer
I had a form ready in my VS, After it was ready, I realized that I would need to add a Scrollbar. Searching and saw that to solve my problem was just add a Scrollviewer. When I add, my form gets all…
-
0
votes1
answer2209
viewsHow to fill out a web form through c#
Is there any way to fill out a web form via c#? I have a system developed in WPF and when the user clicks a button open a particular page in the browser and your fields are filled automatically with…
-
0
votes1
answer54
viewsCurrent size Textblock Runtime
Guys, I have a question that is the following. I am creating a Textblock at runtime with the following code: TextBlock txtMensagem = new TextBlock(); txtMensagem.Text = texto.Trim();…
-
0
votes1
answer146
viewsJustify Text on Windows Phone
I have an application that the text is displayed in a textBlock and I want to make this text justified, I tried to put the alignment of the text as justified, but it was not, says that the method is…
-
0
votes0
answers96
viewsWhen I change the value of a Combobox they all change
I have a database with two tables, Tab1 and Tab2. On Tab 1 I have Cd_tab1 and Nm_object. In Tab2 I have Cd_tab2, Cd_tab1. The two are related. In my project I have 4 Combobox, all must represent the…
-
0
votes0
answers818
viewsBinding in Datagrid - Unable to access a discarded object
I have a datagrid with evaluations whose first column is PATIENT NAME. However, when it comes to placing Binding Paciente.Nomeit gives error. Within evaluation there is a patient object. DATAGRID…
-
0
votes1
answer804
viewsRight-click options menu in datagrid
I need to create a menu with some options so that when a record is selected on a datagrid and right-click on this record a menu with the options for that record appears.
-
0
votes1
answer371
viewsWPF - Hide Components in Design
Good staff, I recently switched from PC and on the other PC the visual studio 2010 in WPF Design when adding a certain object and defining the property "visibility=Hidden" the object was hidden in…
wpfasked 9 years, 6 months ago FAC sacoor 9 -
0
votes1
answer657
viewsSelect Rows from a Datagrid and send to an Array
I have a WPF application where I have a DataGrid with various information. I wish the user could choose multiple lines and store the line information in one array (or not) for me to send to another…
-
0
votes0
answers49
viewsMark point on image taken by Kinect sensor
Guys, I have the following problem: I have an application that provides me the Kinect images in real time, only I need to develop a functionality where the user marks some points in the image using…
-
0
votes1
answer489
viewsSynchronize Progressbar with Execution of class methods
In my project I have a class that has three methods: static List<string> ListaArquivos(string path){...} static void CriaArquivoUnico(List<string> listaArquivos){...} static void…
-
0
votes1
answer222
viewsCheckbox validation in another form
Hello, everybody. Probably my doubt is a little too silly, but I did not find much similar on the internet... Could you explain to me how I can call the value of a CheckBox to another form? My idea…
-
0
votes0
answers44
viewsOnly numbers in Textbox in C# (with Num Lock, WPF Project)
In this command below only the numbers between the quotes (") and the minus (-) of the keyboard work when the user type in a Textbox. I need it to work as well when Num Lock is enabled on the…
-
0
votes1
answer234
viewsDisable button when selecting item in Datagrid
I have a datagrid with records and an edit button. At the moment I am doing the following: the user selects the Datagrid item and clicks the Edit button, to then be performed the verification…
-
0
votes3
answers210
views -
0
votes1
answer53
viewsPrinting using Crystal Reports in WPF
I’m having difficulty printing using Crystal Reports on WPF, I use the same printing system for another system and it works normal, but on this system is appearing the following error... I believe…
-
0
votes0
answers43
viewsSelecteditem no evento Mousedoubleclick
I have the following situation. A Usercontrol where I can choose a company to work, when I choose, I send it to the application title. My problem is that I can only choose the company with just one…
-
0
votes0
answers113
viewsWPF XAML does not render
I’m having trouble with the view only renders normally when I insert the Resourcedictionary in the Resources of the same, but when I insert the Resourcedictionary in the App.xaml Resources the view…
-
0
votes0
answers112
viewsOrganize Listview by column
I have a Listview with 2 columns : Model | Variants . By clicking on the top I want the table organized according to the column I click
-
0
votes1
answer81
viewsHow to keep scrolling always at the end of the WPF textbox
How can I always keep the scroll at the end of the textbox? I have a textbox, but it receives a lot of content, and when it arrives at the end it does not follow and text that exceeds, is always in…
-
0
votes1
answer81
viewsRun something after an animation - WPF
I have the following animation when I start my project: public ConfigInicial_Empresa() { InitializeComponent(); brush = (Brush)bc.ConvertFrom("#444"); window.Background = brush; DoubleAnimation…
-
0
votes1
answer97
viewsDialog messages launched from Viewmodel through Dialogcoordinator
I came across a problem working on a WPF project where I use "MVVM Light Toolkit" and "Mahapps.Metro". I am trying to take advantage of the "Dialogcoordinator" feature provided by "Mahapps.Metro" to…
-
0
votes1
answer49
viewsTransfer image from one Image control to another of the same type
I have these three controls: <Button x:Name="btn" /> <Image x:Name="imagem01" /> <Image x:Name="imagem02" /> Suppose I carry an image on "imagem01" using: OpenFileDialog ofdImage =…
-
0
votes1
answer237
viewsUpload Datagrid Image to Image
Variable x is associated with an image (blob field) that I loaded into a Datagrid from a Mysql database. DataRowView selectedRecord = (DataRowView)dataGridImagem.SelectedItem; var x=…
-
0
votes0
answers52
viewsC# Drag and Drop without a specific event
I am developing an application in C#(WPF) and wonder if anyone knows how to get the data from drag n drop mouse without any event being fired. Is there any way to return this data from dragndrop…