How to iterate all the items in a treeview in wpf
I have a treeview and this is my xaml code for this:<TreeView x:Name="tree" Margin="0" SelectedItemChanged="tree_SelectedItemChanged"> <TreeViewItem Name="Category" Header="Category"...
View ArticleChange background of a DataGridColumnHeader when a TextBox hosted in the...
Hi everybody,I'm encountering a small difficulty with my WPF application. I have a WPF window with a TextBox and this window hostes a Page that includes a DataGrid. When the cursor is in the TextBox, I...
View ArticleHow to make picture to have a clickmode ability
Goal: When you click on the arrow picture you should execute a specific C# code. The arrow need to have a clickmode or similiar.Problem: I do not know how to do in order to make these arrow pictures to...
View ArticleAdd Background Color to Listview's Specific Row
Goal: Change the listview's background color to light colored grey if the current time pass the appointment time. For instance, the time is 10.15 and you have background color for the 09.30 - 10.30 and...
View ArticleStart and Stop Service with Elevation
hello guys, how to start and stop a service with elevation.got this code below but it doesn't run i suspect due to admin rights issues.any ideas on how to make this code works? Dim service As...
View ArticleMissing DataTriggerBehavior in my Blend 2013
Hi,Following the PluralSightCours "Extending XAML Applications With Behavior" I now just tried to apply what I learnd.In the course it was shown how to set radiobuttons via behaviors, using the...
View ArticleLINQ consult
Hello everybody,I have the following file with these records:Number ; Issue01 ; A 02 ; A02 ; B02 ; C03 ; GI have created the following example code:public class MyItem { public string Number{...
View ArticleCreating a ControlTemplate for a ComboBox
Hi everybody,I'm trying to create a control template for a WPF ComboBox. Here is my 2 files :<Window x:Class="MyProject.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"...
View ArticleWhat event should be used in order to navigate a ComboBox in the same fashion...
My goal is to keep the selections of a ComboBox and a DataGrid synchronized. If row No. 7 is highlighted in the grid, item No. 7 becomes highlighted in the combo, and viceversa.As the user presses...
View ArticleHow do I close the window and the buttons?
I have this window that has a "close" button.When I press the "close" button, it only hides the blue window without hiding the 2 buttons in the image as well.I want it to hide everything. I've attached...
View ArticleHow to implement a ComboBox with Binding AND an unbound top item such as...
This is a follow-up to my previous question: What event should be used in order to navigate a ComboBox in the same fashion as a DataGrid?In my ComboBoxes, I always have a top item like this:(Select...
View ArticleIssues with IDataErrorInfo and ComboBox using SelectedValue or SelectedItem
Hi, I have a DataGrid with a DataContext mapping to a ViewModel of of Customer ObservableCollection of tblCustomer.public ObservableCollection<tblCustomer> Customer { get; set; }In this DataGrid,...
View Articlehow to import listbox items to Sql
Hello,ı could not import listbox items which is 1000 combinations; C(108,50) to sql.thanks for your assistance,,
View ArticleHow to refresh the Frame using a view model in C#
I have a Frame named ChildWindows and I am using MVVM pattern for my design , so earlier I was refreshing the frame in the button click handler but now I want to use command so that I can remove the...
View ArticleError while loading CustomControl in stackpanel at runtime.
Hello Everyone,I am working on a small project in which a custom user control is need to be filled by the Data from the XML file, and then this custom-control is need to be added to the main form's...
View ArticleProgramming a Datagrid with code
I have a data grid in WPF. The user will choose a dataset from a comboBox. The comboBox is a list of SQL views.I need to program a column at run time to have a button. I do not known until runtime...
View ArticleMasked Input for TextBox
Hi,I need to make a masked input for my text box that will receive numerical input. The mask will constrain input for swedish version of personal number so called Person Nummer.The format is...
View ArticleGraph Visualization Library for 1 million nodes/links
I'm looking for a way to visualize a network of a million nodes and links.Our customer extracts data, cleans it, and prepares it for analysis without visualization. However, they like to use a...
View ArticleIs WPF dead or going to be
I read this article and not sure if its worth learning WPF in case its not used in future - anyone got any thoughts?http://www.theregister.co.uk/2010/09/09/microsoft_html_5/
View Articlescrolling in a stackpanel
I have a StackPanel which needs to be scrolled, particularly vertically. No matter what I do the vertical scroll won't activate. Even when I force it visible it has no slider to actually scroll....
View Article