TreeView.ItemContainerGenerator: problem with Status and recursive structure
HiI need to do some code behind in a custom treeview that derives from TreeView. I need to look at the DataContext of all TreeViewItems to select or deselect them.A precondition is to make sure that...
View ArticleMFC OnKillFocus
I have 2 edit boxes A & B. A should be always larger than B. Initially A =10, B =1.I have DDX and DDV for both. DDV is check minimum value and maximum value allowed.DDX_DoubleFormat (pDX,...
View ArticleHow to create a control to show CPU usage by circle in WPF
Hi All,I am working on a WPF Project which needs to show CPU usage as the follow: How should I do to make a control like this? Thanks.
View ArticleHow to create a path in wpf?
My english is poor. But I must solve the problem.I need to create a program which the user can create the path by themselves. The orginal demand is to clip specified region in an image .I think,...
View ArticleHow to set keyboardnavigation.Tabindex from code
I am binding textbox1 data on LostFocus event. I set keyboard navigation. Tabindex=7 fortextbox1 and for textbox2 keyboardNavigation TabIndex=8. Now my problem is am doing regular expression validation...
View ArticleLoading multiple Images on WPF canvas degrade the performance of apllication.
Hi,I am using WPF canvas. I am having many images say around 1500-2000, which I need to load on the same canvas. But when I do this the application performance is sarificed. I am adding these images...
View ArticleUsing Async/Await pattern for updating ProgressBar
So, now we have ability to create asynchronous code with async/await keywords.What I am after is a way to leverage this pattern for updating ProgressBar. After some trials I have come up with the...
View ArticleTabControl style
Hi,Can style Tabcontrol as shown in Image ? if yes then how? ,it looks like explorer bar . which should contain grouping of sub tabitems.Sincerely, dhampall Please remember to mark the replies as...
View ArticleWPF: How to dynamically change the image source and how to ensure that the...
We see the following link example about how to do dynamically updating image sourcehttp://social.msdn.microsoft.com/Forums/en-US/wpf/thread/d3d44031-0b0a-4d39-a10b-20aba3a07d6e/We have implemented a...
View ArticleBinding DataTable to ComboBox Items with Itemtemplate
Hi and thanks,I got a data template for my comboBox area, it will be used to create a list of MyItem on runtime.However, the comboBox item value List is get from SQL database, so I got a DataTable...
View ArticleProper way to register same Dependency Properties in different controls.
Hi,I just wanted to ask about the proper way of registering the same Dependency Properties in different controls. For example, imagine I have two different UserControls. Thay have different logic, are...
View ArticleDatagrid Design Issue
I have a datagrid that displays integers of about 40 columns and 40 rowsTo format certain numbers I use a converter as the datagrid is loaded.The data to the datagrid contains the index numbers of the...
View ArticleCapture Payment Gateways response in WPF client appication
Hi Friend,I need help. I am developing WPF client application. My application like Cient PC will check internet connectivity. If yes then we simply call payment gatways in a browser. If gateways return...
View ArticleSQLite Problem on Implementation
So my big problem is simply implementing SQLite in my WPF Project. Most tutorials for implementation of SQLite is outdated :( They use 2010 and some are lower version I found this :...
View ArticleHow to get all the elements in WPF.MapControl in a rectangle without looping...
Hi,I have a Wpf.MapControl. I have images on the Map View. I need to get the list of all the Images that fall in a specified rectangle that the user can draw anywhere on the map. All these images are...
View ArticlePass TextBox text from One Window to another window's Textbox In MVVM
I want to learn passing textbox's text from one window to another window's textbox using MVVM structure in WPF. Could you please post me any good example to do this and better way of undestanding MVVM...
View ArticleHow add comma to StringFormat in XAML
Hi, i have this code in XAML<DataGridTextColumn Header="Cena" Width="auto" Binding="{Binding Path=Price,StringFormat='###,###.##,-'}"/>I need show numbers in this format 456,896,- but...
View Articleaccess the control 'Callout' in Microsoft.Expression.Drawing from VS2010
I am working on a WPF project. I want to use the control 'Callout' from Silverlight. I'm working in VS2010, in vb.Net. I get an error when I try to "Import Microsoft.Expression.Controls". How can I...
View ArticleCollapsed routed event for TreeViewItem
Hi, I have a treeview with custom treeviewitem. I would like to do some animation when this item is collapsing. But not kind of closing nod. Collapsing like visibility changing...
View ArticleHow to animate HierarchicalDataTemplate in a treeview?
Hi! I have a treeview with a custom item template which is described in HierarchicalDataTemplate.It's looks really simple: <TreeView x:Name="C_Tree" IsTextSearchEnabled="True"...
View Article