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

WPF XAML naming convention

Is there any XAML naming convention ?For example especially I am interesting about naming you controls.For example I create my customButtoncustomToogleButtoncustomLinkIn tutorials controls name is very...

View Article


ListBox item selected foreground color not working if initial foreground...

Hello,I have a ListBox where I needed some of my items listed and red and the rest in the normal black.  I was able to do that by adding the following: <ListBox.Resources>      <DataTemplate...

View Article


Setting Window.Icon to Vista 256x256 PNG icon causes a FileFormatException

If I set the Icon property to a Vista icon, I get a FileFormatException stating that the image format is unrecognized. If I try the same thing with an old Windows XP icon (without PNG compressed...

View Article

Debugger interacting badly with my UI updates

I put together a Turtle-logo like package in WPF in support of my open source textbook that I'm using to teach C#.    It works fine, with one remaining problem that I cannot seem to sort out. My turtle...

View Article

Printer page sizes

HiI'm printing reports in WPF using a custom preview control and want to update the document's layout when the paper size is changed and so I can't use the standard print dialog. The only way I've...

View Article


How to get a listbox depending on both the calendar and a combobox VIDEO

I have filmed my problem as it is easier to explain on video. I want the listbox to display the time began from the bookings table, that relies on the date from the bookings table and the room from the...

View Article

WCF

Hi,I have been trying to view webpage in webusercontrol(WPF).I would like to auto populate the username and password values.please find the code that am using below it gives me an error.Help me in...

View Article

How to change Grid's Rows and columns on view change in XAML?

I have created 3 x 4 Grid in XAML in Landscape view mode. Means 3 rows and 4 columns. Now on view change to portrait i want to make it 4 x 3 means 4 rows and 3 columns. How to do it. Plz help me to do...

View Article


How to get a listbox depending on both the calendar and a combobox VIDEO

I have filmed my problem as it is easier to explain on video. I want the listbox to display the time began from the bookings table, that relies on the date from the bookings table and the room from the...

View Article


Can I group an item that belongs to more than one group?

Hi there,Let's say a person has two nationalities(Canada and US), I can put the information together with comma seperated. And use PropertyGroupDescription.Converter.I need group information based on...

View Article

Drag/drop operations on treeview which is bound to class object in wpf

HI,Can any one explain how to implement drag and drop operations on tree view whose itemsource is bound to a class object.

View Article

jQuery Masonry layout for WPF?

http://www.queness.com/post/11133/the-famous-pinterest-dynamic-grid-layout-and-design-inspirationsi would like to create a custom Panel class to emulate the layout like the ones in the link above. Has...

View Article

issue while adding an arc to my CustomControl

Hey, i added an Arc to my CustomControl an then receive following error:Cannot find dll System.Drawing. I think this happens everytime i try to use this control. So i guess, his error is common....

View Article


WPF treeview with circular reference not updating the childTreeviewItem

Hi All, i am attaching my class design and the xaml code which i am using to create a treeview item with circular reference. I am able to update the collecitons from the codebehind but unfortuntely it...

View Article

MVVM Entity Data Model. How to change EDM DB connection parameters at runtime

hi,I created a MVVM project with a EntityDataModel (MyDataModel.edmx) and a related DataContext (MyDataContext), bound to a given DB schema. The resulting connection string in App.config is the...

View Article


Enter key navigation in c# WPF using MVVM

Hi,How can I implement Enter Key Navigation in a main window which consists of number of text boxes in c# wpf using MVVM.Thanks

View Article

How to create multiple commands in a viewmodel ( WPF, MVVM Pattern )

My project has a viewmodel class in which I have inherited RelayCommand and ICommand. A Command called ExecuteCommand is created in this view model as shown below and is working fine.public class...

View Article


Animation is a one-way road

Hi,I do have a WPF ListBox, displaying custom items. For this I have a Template and I use animations to indicate a kind of data change. But the animation seems to be a one-way road. The template...

View Article

TextBox.ScrollToEnd takes too long

I posted a question regarding the execution time of TextBox.ScrollToEnd method here. I appreciate any suggestions about how to proceed. Sorry I don't have time to copy the post here.

View Article

Custom panel scrolling even when CanContentScroll is false

Hi I made a custom panel implementing IScrollInfo and it is scrolling fine if the ScrollViewer has its CanContentScroll is true. However i realize that panels like Grid can still scroll even if the...

View Article
Browsing all 18858 articles
Browse latest View live


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