Multiple level treeview
Hi all,I want a treeview with several level, but each time a different number of level.I do : In xaml : <TreeView Name="TreeViewTask" ItemsSource="{Binding}"...
View ArticleGroup Total Problem
Dear all,i have Created small WPF application.. here is the codeCode for Test.XAML<UserControl x:Class="Test" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"...
View ArticleItemTemplate for UserControl problem
Hi, I have as list of usercontrols (Days) wich is bound to an ItemsControl. I want every UserControl to have a border but when i try to do that with an ItemTemplate nothing happens. It's like the...
View ArticleWPF setting Background property of Label from code at runtime
Hello, I have the following label in the window:<Label Name="ProgressLabel" Grid.ColumnSpan="2" FontSize="130" VerticalContentAlignment="Center" HorizontalContentAlignment="Center"...
View ArticleWPF Data validation
Dears,I am implementing WPF Application,I have this form Rowdetails is bound to same datasourceview of Datagrid1what I need to do is:when I add new row to datagrid1 I am using rowdetail part to enter...
View Articlewpf GridView column which is implemented a cell template sort by
hi there How can I sort a wpf GridView column which is implemented a cell template Eg<GridViewColumn Header="Order_no" DisplayMemberBinding="{Binding Path=Order_no.DataValue}"...
View ArticleSuperscript and Subscript in WPF Richtextbox
I am using following code to do this EditingCommands.ToggleSuperscript.Execute(null, richTextBox);This is working perfectly for Plationo Linotype Font Family .My problem is that this is not working...
View ArticleRemove the datagridview border
I have a datagrid view in my WPF window (VS2008). I need to remove the first colonne or border shown in the picture the xaml code is:. ....
View ArticleDifference between two datagrid values and display the result in a new row
I have a datagrid that displays a table from a database vertically as follows : Scores1 | 75 Scores2 | 100 Difference | ? I have to added a new row called Difference which should...
View ArticleHow do I use for each loop in this context correctly?
ContainerOfTaskViewer ObjectContainerOfTaskViewer = new ContainerOfTaskViewer(ClassMainForm); //naming the tasklist. ObjectContainerOfTaskViewer.Name = Convert.ToString(LstTaskBox.Items[x]); //setting...
View ArticleGrid view with dynamic custom columns and dynamic hierarchical header with MVVM
I have following logical data structure of manufacturing process:Top of the structure - Collection of Periods (PeriodName, IndexNumber).Period has collection of Stages. Stage (StageName, IndexNumber...
View ArticleHow to generate Crystal report with RTF Data (Text + Images)
I am Facing problem in Crystal report generation with RTF Data (Text + Images), So please help me.. I am working on WPF Application, I am using VS 2010, SQL Server 2008, CRVS2010. I am storing...
View ArticleDrag and drop between 2 listboxes, COMException
Hi,This problem occurs every now and then when I drag one element from ListBox to the other listbox. "Error HRESULT E_FAIL has been returned from a call to a COM component." COMException is thrown when...
View ArticleBackgroundWorker with WPF
Hello all!I would like to draw a ProgressBar during the execution of my algorithms and display my map on the window.I follow this tutorial : http://elegantcode.com/2011/10/07/ex...busyindicator/But...
View ArticleRestrict characters in decimal field in WPF (MVVM)
Hi,My application is WPF with MVVM.I have a decima field which is binded to a text box. I want to restrict the characters to that textbox. How can i achieve this?public Nullable<Decimal> Weight...
View ArticleHow to stuck GridSpliter on right side of window same as my computer explorer...
Hi All, I draged gridSpliter Lefi to Right side in explorer window.I want to stuck GridSpliter on right side of window.i am fallowing this...
View ArticleMake datetime field format as per the regional setting of the machine. WPF...
Hi,I have a datetime field in WPF(MVVM). and it is binded to a text box.I want to put the string formt of the text box as per the format of the current system regional settting. Can you please help,...
View ArticleDragMoveBehavior
Hi everybody!I'm coding a behavior (Interaction behavior) which is basic idea is to make any UIElement draggable with the mouse. In order to make it flexible enough, I thought of applying a...
View ArticleI got “System.Collections.Generic.List” instead of data
I tried to make a autoComplete textbox like google Search with C# in a WPF application, basically what I want to do is have a autocomplete textbox which is bound to a sql database table. the table has...
View Articlethis.Invoke not in WPF but can it be called from a parent Forms control
I am converting a windows application to WPF whole doing so i have kept some of the key controls hosted [ i have kept the windows forms controls as it is].However, this application has a progress bar...
View Article