Programmatically adjust MainWindow size/position?
I'm trying a simple experiment (programmatically adjust the MainWindow's size and position) but the results are not what I expected. A bunch of searching online has not turned up anything useful....
View Articleerratic tab control selection changed behaviour
I have a tab control with two tab items situated on 3/4 of a wpf page. Each tab item has a number of buttons, combo boxes etc. If I select the tab items (flick back and forth a couple of times), and...
View ArticleHow to scatter a lot of text onto FixedDocuments.
Hey,i want to print an arbitrary string with a fixeddocument. So, the text should generate a sequence of FixedDocuments, cause the length of the string could be longer as oe side. Which is the right...
View ArticleHow to debug DataTransferManager? It works inside debugger and fails outside...
I am adding a Share feature to a WPF app on Windows 10 based on the MSDN blog post here (Sharing Content from your Win32, WinForms or WPF App -- Nice post, Arun. Thanks!) I downloaded the sample and...
View ArticleInteger and Floating TextBox in WPF
Hi,I tried developing a UserControl TextBox that accepts Integer and floating point numbers by changing the border color when a non integer or floating point numbers are entered. But the Border cannot...
View ArticleGet DPI factors for different monitors?
Currently, when I need to convert from DIUs to pixels I use the following:Window mainWindow = Application.Current.MainWindow; PresentationSource mainWindowPresentationSource =...
View ArticleHow to Create polar chart using Scatter Chart in WPF
I am working on WPF application in vb.net. I am using WPf toolkit chart control which has line,column,bar,area,scatter chart types, But I want polar chart in WPF without using third party control. I...
View ArticleWPF validation on mandatory field
Hi, I'm new to Wpf..i need to add black asterisks to all mandatory fields like ex: First name *,Last name*.....if user is trying to save the form without entering any mandatory fields then i have to...
View ArticleBinding multiple SearchTextBox
Hello,I have 2 SearchTextBox, i like to bind a terminal(stone) with the two SearchTextBox for giving results between the 2 values entry in research.Binding with one Zone (searchTextBox) work but i...
View ArticleCustom Data Annotation
I have the following, if I type in to a text box with a binding that has this annotation [ExcludeChar("@")] // Custom data annotation public string APPLICANT_Surname;it steps through...
View Articlepopup with arrow placement when near screen edge
Hello All, I have a question is about WPF. First at all, I did a popup with arrow and there placement on right but arrow is pointing at left. When near screen edge, then placement will auto change...
View ArticleFocusLost() not called properly
I have a usercontrol (U1) inside this i have a canvas - which may have multiple canvas based on number of images and diagrams.In user another control i have a tool bar which has options like...
View ArticleApplication crash in TextServicesContext.cs
Hi,i have wpf application in which iam using avalondock .while running the application ,sometimes iam getting a crash ,the details are as followsexception stack shows like at...
View Article2 Dimensional array or matrix binding
Hello,I would like to create a matrix of right in my wpf application.Data are stored as following :Functions ( idFunction, Name )Persons ( idPerson, Firstname, Birthday )Right ( #idPerson,...
View ArticleError template disappears when view is revisited
I am using Prism and when I navigate to an existing view which for example has an error on a text box, the tool-tip displaying the error message is still there but the red border has disappeared - is...
View ArticleWPF - Async Commands in View Model?
I am looking for a "Async Command" solution in my ViewModel, where if a button is clicked, it will launch this command and update the ViewModel appropriately. This command needs to implement...
View ArticleUnable to fill WPF Textbox control with full Height and Width into Stack...
Hi,I am new in WPF Application development and stucked in a very small problem could anyone of you please help me out in this.I want to fill my WPF textbox control into StackPanel on window resize....
View ArticleUserControl and Frame problem
HiI have a problem initializing a UserControl containing a Menu control from another MainWindow.xaml. The UserControl has a Property NavPage which I initialize and set the Page selected by user from...
View ArticleWPF Frame Content's binding not updating
HiI have this code to update the frame's content with binding. It initially loads the Page but not on subsequent changes in the Property it's bound to :<Frame Navigating="DisplayFrame_Navigating"...
View ArticleHow to create SQLite database in WPF?
Hi,I am new to windows desktop development. Will you please suggest me how to create the SQLite database in WPF?Thank you.v.srinivasarao
View Article