WPF Treeview shows arrowmark instead of plus/minus sign in windows 7
In Win 7, when i use WPF Treeview i am facing a strange problem that it shows an arrow mark instead of plus/minus symbol. It is expandable, but i want to retain the plus/minus symbol. How do i do this?...
View Articlehow can i handle CommandPreExecute and Excuted Event in WPF
Modalviewnamespace WpfApplication10 { public class ViewModel { private SaveCommand _SaveCommand = new SaveCommand(); public SaveCommand SaveCommand { get { return _SaveCommand; } set { _SaveCommand =...
View ArticleShowing Invisible window without resetting data
I have application which has lots of windows and for navigation purpose when i goto next window on a button click on current window the current window is hidden simply and next window is instantiated....
View ArticleViewBox not sizing to parent correctly.
Hi,Please follow me a bit first :) (all code is simplified):I have a tilegrid custom layout panel in which tiles are shown. When i define the Tile's template like this (again, simplified):<Button...
View ArticleThai (th-TH) culture of DatePicker control in WPF is not working
HI,I set thai culture at WPF app startup as folllowing :string culture = "th-TH"; System.Threading.Thread.CurrentThread.CurrentCulture = new CultureInfo(culture);...
View ArticleIssue with WebBrowser component
Hello!WebBrowser in WPF don't allows get information after # in url. This issue a few years.When Microsoft fix this??? Is it really so difficult?Thank you.
View ArticleSaving Text as an image that can be used as a Texture in 3d graphics
Hey guys,I have created a program that creates 3d charts. It creates bars of different length and has hash marks that go up the side for comparison. The whole thing can be rotated, zoom in or out and...
View Articledraw chart controls wpf
HI i'am new with wpf and i need to create a chart control (piechart or other). and bind it with some fields in my table(DB). please help thank you
View ArticleWPF DataGrid TwoWay Binding - What's Wrong?
Hi all,I need help understanding why I can't edit the data grid so that the changes are reflected in the bound data. I have the following class:public class Player : INotifyPropertyChanged { public...
View ArticleHow to create datagrid template as resource
Hi,I have an app that needs to dynamically generate a tabItem with a single datagrid on it. The only difference between the datagrid on each tabItem is the ItemsSource but they are all of the same data...
View ArticleTextBox in TreeViewItem LostFocus event
I have a textbox inside the TreeViewItem. The textbox doesn't lose focus when selecting another item in the treeview or in the application. The user can select a TreeViewItem, which enables focus on...
View ArticleAccessing BindingExpression.IsDirty Property
Hi folks,I want to control the status of a TextBox bound to some other properties with Mode=TwoWay. To do this I have to distinguish between text changes in the TextBox coming from the bound source an...
View ArticleDisplay the Table values in form of a graph or pie chart
how to display database table values in form of a graph or a pie chart ? I have database which has 2 tables ,each for CPU Usage and Disk Space Usage. My Goal is to do like this on WPF form ( or in...
View ArticleIntroducing Kona - guidance for developing WIndows 8 apps (think Prism for...
I am extremely excited to announce a new project from the smart people at Microsoft’s Patterns & Practices team called Kona. What is Kona you ask? Kona is the new developer guidance for...
View ArticleSetting content of combobox from a list in WPF
I have list whihc has some of contents of a combobox.how do i set automatically value of combobbox content to value in list ?combobbox has content ,e.g. {1,2,3,4};list has {3},combo box should show 3...
View ArticleRepeat wpf Datagrid data in textBoxes of another window
Hi every one, I'm new, I want to repeat datagrid data in textboxes of another window. Data has been saved in sql databse and i want to retrieve them on the new window based on click on one datagrid...
View ArticleWPF app referencing another WPF assembly (dll) not starting in Release mode
Hi,My WPF app references another WPF assembly compiled as class library (dll). My WPF class library has only one simple class to present a Login window where user authenticates before the main WPF app...
View ArticleDetect changes in a bound DataGrid cell
This has been asked a few times already, but with no resolution (aside from moving to different technology, as in this question).I just need to detect when a cell's displayed value is changed because...
View ArticleHow do you populate a DataGrid ComboBox from a second DataTable
Currently, I have two DataTables inside of a DataSet. The first DataTable contains a listing of names and IDs (along with a few other things) that populates the majority of a DataGrid in a WPF...
View Articledeserialize streamReader as Observablecollection
Hope someone can help me resolve below error.<The thread '<No Name>' (0x1d2c) has exited with code 0 (0x0).A first chance exception of type 'System.InvalidOperationException' occurred in...
View Article