Focus issue of Custom Control like ComBox using as a Editor in DataGrid.
I have designed an User Defined control like ComboBox using ToggleButton and Popup.Now I am trying to use this control in CellEditingTemplate of DataGrid. And it is working fine. But issues is that...
View ArticleHow to access the const variable in XAML file?
Hi all,I have an const variable in a class, as following:public class Names{public const string MyName = "test";}then I want to access the value in XAML, as following:<Textblock Text="{MyName...
View ArticleGoogle material design
Hi,i am wondering if the Google material design could be achieved using WPF . really impressive !
View ArticleExpander Header Binding (WPF)
I am trying to bind an expander header (string). I have a datagrid who's source is set to a CollectionViewSource. The contents of my grid are grouped into expanders. All the data is binding fine, but I...
View ArticleTextBox ,only allow User to enter '0-9' and 'a-f'(ignoring case)
if entering other character, it cannot show . is there an example ?
View ArticleWhat does it do at Rendering priority?
I have a relatively complex WPF application that performs Canvas and DrawingVisual work and draws complex layouts in the window. Another part lets the user edit data from a database that is used for...
View ArticleMove Groupbox header
Hi i have this groupbox template.<Style x:Key="bordesTransparentes" TargetType="{x:Type GroupBox}"><Setter Property="BorderBrush" Value="Black"/><Setter Property="BorderThickness"...
View ArticleGetting type of of PathSegmentCollection elements.
Hello,I need to interate over the segments of a PathSegmentCollection. However, I do not know what type of segment types the collection will have, so I must to test the type for each one and make the...
View ArticleWhy use the ValueConversionAttribute?
I've seen many samples of value converters (IValueConverter implementations) that apply the ValueConversionAttribute to the converter class. I cannot find an explanation for why one would do this....
View ArticleCreating WPF 3D Room that spans entire viewport
I posted this question on other website and got that people think I am asking for "do it for me". Kindly and please apologize me for this if you think the same. Having very few days in hand, I am...
View ArticleMouseBinding defined in code
I am trying to insert a textblock into the column header of a datagrid when autogeneratecolumns="true". I have the following but when I have set a beakpoint in OnColumnHeaderClick the object is null....
View ArticleCreating a pie chart in WPF?
I have been looking on several forums for the past few days and cannot find a decent answer on how I should be going about this.I am looking for the easiest way to make a pie chart in a WPF application...
View ArticleHow to databind an image source in a datatemplate in code behind
I'm trying to master WPF (life-long task?) and I'm creating a project that would be a Scrabble (WWF) like game so I'm displaying a 15 x 15 matrix of Squares that may or may not contain a tile. Each...
View ArticlePopulate textBoxes with database rows selected from Comboboxel
Hello. I need to insert 5 strings in my TextBoxes that values is stored in database. From Database values is populated to Combobox. But I cannot to populate from combobox to textboxesThis Code was...
View Articlebind again listbox when the scroll is bottom
Hello I need to have a listbox by scroll when the scroll becomes to bottom , listbox bind by new data (actually it should be add in the end) I searched and try to create some thing but i couldnot...
View ArticleDisplay cell based on its above cell value in datagrid in wpf
Basically I am developing a chat application. Messages are displayed in datagrid element. In that I need certain behavior.When I send a message for the first time, it should display "me" in sender's...
View ArticleValidating ComboBox within a DataGridTemplateColumn
Hello!I am having a problem with validating ComboBox within a DataGridTemplateColumn. When I add a new DataGrid record, I need to select a mandatory contact from a Combobox list. If I double click on...
View ArticleWPF DataGrid Combo Box binding issue in 4.0 framework
Hi,I am facing a problem with DataGrid Combo box binding. My requirement is 1.DataGrid to have combo box enabled Column and bind with dictionary. User can select cell value from drop down.2.The same...
View ArticleWhy Contents of combobox in the listview header disappers in a page,when back...
Am having a listview with a combobox in its header with header named city. Contents in that combonox are binded in according to the selected State.My Problem is that when its loaded the values in the...
View ArticleListview & scrolling
hello,I have a problem with ListView component, especially I can't reset the position of the ScrollViewer during scrolling.Source code:https://onedrive.live.com/redir?resid=4E7847F5333F72B6%21106The...
View Article