Button sizes become small in a stackpanel
Good Day i have buttons and i have defined them like this Code: <Grid> <StackPanel HorizontalAlignment="Center" VerticalAlignment="Stretch"...
View ArticleNew project technology choice
Hi folks! I'm on the crossroad in choosing the technologies for the development of one new project. I have to use one 3D body model made by 3D Studio Max (3ds file format). It has to be displayed in...
View Article[RESOLVED] TextRange does not get RTF of WPF RichTextbox
I am trying to use the following code but it seems that TextRange only returns the 'plain' text from WPF Richtextbox, it does not return the 'rtf' of the control unlike in Winforms, how can I then get...
View Article[RESOLVED] Displaying RTF in list, what control can I use?
I need to be able to display a list but the items are in RTF and I want to be able to display the formatted text, what are my options to be able to do this?
View Article[RESOLVED] Richtextbox RTF needs to be converted by Word to enable Equations?
I tried saving the default RTF of a Richtextbox but when I try to open it with Word 2007 it has to be converted so I could use Equations, is there in any way I could save an rtf but will not be opened...
View ArticleBinding to listbox (with Richtextbox) is slow
Well, I just got less that 10 items and I can see the listbox populating it, looks like crawling when it is being populated. Here is my DataTemplate: Code: <DataTemplate x:Key="exerciseTemplate">...
View ArticleHow to bind a listbox and combobox?
Hi! I want to show the exact same content in a listbox and a combobox. Is there an easy way to bind the items collection of the listbox to the items collection to the combobox? Here is my code: Code:...
View ArticleDoes ControlTemplate break control functionality?
Hi! I am using a MenuButton from BetterWPF-controls in my project, but since it's looks dont fit ino our project, I wanted to change the appearance by using a ControlStyle to override the default...
View Article[RESOLVED] WPF Contextmenu databinding issues
Hi! I have a button where I want a context menu to appear. But for some reason I can't get the databinding correct. To figure this out, I created a small sample project: Here is the ViewModel Code:...
View ArticleHow to make a button show a contextmenu by mouse left click only?
Hi! I want to show a contextmenu filled with databound items when the user left clicks a button. I have tried this code in this post: http://stackoverflow.com/questions/4...-on-left-click I used the...
View Article[RESOLVED] WPF: Binding to IEnumerator?
I have two buttons, (next button and previous button) that moves to the next or previous record, I am using IEnumerator for this and added the MovePrevious method. Upon moving records, I am manually...
View ArticleMicrosoft Ado.net sync framework conflict
hello all, I have a project that sync the client and the server. i'm using northwind database and customer table for testing purpose. here is the case. SERVER SIDE: Record 001 - Company Name changed...
View Article[RESOLVED] Properly design a user control?
Hi! I have created a very basic user control. It has 3 textboxes andits purpose is to present a string that is split up into three different values. Say the string is xxx-AAAA-BBB. Then the user...
View ArticleHow to bind to usercontrol child controls from parent view?
Hi! I spent some time googling but so far no luck finding a good article, which is strange since thi´s should be a really common topic. The situation is like this. In a current view+viewmodel there is...
View ArticleWould WPF serve this need?
I've got a prototype of a user-interface I'm working on using standard VS.Net Winform stuff - typical ugly looking buttons and list views and such. My partners (business partners - not technical) -...
View Article[RESOLVED] MVVM: Populate a view (with listbox) when an item from another...
I have a list of Topics, and for each topic there are some Examples. What I want to be able to do is that when a topic is selected then I will populate another view with all Examples for that selected...
View Article[RESOLVED] Would WPF serve this need?
I've got a prototype of a user-interface I'm working on using standard VS.Net Winform stuff - typical ugly looking buttons and list views and such. My partners (business partners - not technical) -...
View ArticleBind Textbox to Combobox in WPF (MVVM)
Hey, I am working with WPF and the MVVM pattern for a few days now and it's kinda difficult compared to window forms. I tried to bind the selectedvalue from a combobox to a textbox. Sounds simple but I...
View ArticleCriticize my UI design
Designing the UI is not my strongest skill so I am not sure if my UI looks professional or childish so I wish to get your criticisms on attached screenshot. Attached Images
View ArticleVB.net 2010 - WPF Datagrid Cell Background Style Issue
So, I am trying to setup a datatrigger for a datagridcell in WPF that shows a red square when the cell contains the word "red". It works but the problem is I am modifying the background and when the...
View Article