Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Browsing all 18858 articles
Browse latest View live

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 Article


How 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 Article


Google material design

Hi,i am wondering if the Google material design could be achieved using WPF . really impressive !

View Article

Expander 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 Article

TextBox ,only allow User to enter '0-9' and 'a-f'(ignoring case)

if entering other character, it cannot show . is there an example ?

View Article


What 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 Article

Move 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 Article

Getting 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 Article


Why 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 Article


Creating 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 Article

MouseBinding 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 Article

Creating 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 Article

How 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 Article


Image may be NSFW.
Clik here to view.

Populate 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 Article

bind 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 Article


Display 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 Article

Validating 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 Article


WPF 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 Article

Why 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 Article

Listview & 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
Browsing all 18858 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>