Attached Property Behavior with Controls Created in Code
I am conducting an exercise where I am defining a user control using C# code rather than XAML. I am seeing one strange behavior. I have an attached property defined thusly:public static readonly...
View Articledifferent styles for treeview
Hi, I'm trying to find how to set different style for TreeView items. At the first level it should be string (Album name) and at the second - items with image + text (as photo with date). Looks simple,...
View ArticleResize the width of button StackPanel wpf
For example only 2 button would be visible in the stackpanel.
View ArticleWeak event pattern problem
Hi!In the software I'm developing, I have a custom control that connects to an external event that warns the user when a certain setting has changed. I am using a weak event manager to connect to that...
View ArticleBinding ComboBox SelectedItem
I have a ComboBox Bind to my data. It displays: Beer, Soda, Wine, ...<ComboBoxItemTemplate="{StaticResource Drink}"ItemsSource="{Binding Drink}" x:Name="cboDrink"/>On another Page I have a...
View ArticleWPF GroupDescriptions Issue
Hi,In my application I have to show list of compatible printers installed. I have 4 printer installed and it shows like this:If there are multiple printer with same printer type, then I group them. But...
View ArticleCustom Control with Items
Hi to everyone! I have a really problematic question: I want to create a custom control in WPF, and I want it to have a pblic field in which I can store items (a normal ObservableCollection). I want to...
View ArticleContainerFromItem
I want get to textBoxes in ItemControl, I have this line code:ContentPresenter cp = itemControlGridAge.ItemContainerGenerator.ContainerFromItem() as ContentPresenter;what is the argumnt the method need?
View Articlelistview how programatically bind textbloc backgroung color acording to...
Hi , i fill a listview from a datatable, in the first column storage the color value that will be showedin the textblock background, i have some question.1) witch datatype must define in the column to...
View ArticleXAML / Persisting property value set by Event.Trigger
Hello,I suspect that there is something fundamental that I am overlooking, here...As soon as the mouse moves off of the label, subsequent to the Event.Trigger having changed it to Red, (See pasted...
View ArticleXBAP Application
Hello everyone:I'm ready with my XBAP Application.Now, i need to know what kind of steps i must follow to install the application.I'm working on Visual Studio 2012. I think i must install (on Windows...
View ArticleHow would you create a window that built calculations in WPF?
My team wants to build a UI that creates different calculations from report data.Ex. we have a report with item1 and item2 from the report and so the user would type something likeif (item1 + item2 =...
View ArticleDraw Rotating Auger
This is going to be a strange question.I have an existing WPF application which monitors various pieces of equipment. It is working fine as-is.I know that one future modification to this equipment is...
View ArticleSystem.Configuration.ConfigurationErrorsException Help!...
Development: Prism 4.1 Technology: MEFIn trying to read and write to the appName.vhost.exe.config I'm having trouble reading the section after in adds the section.I have an assembly called...
View ArticleClass is a reference type?
Hi,I know that the Class is a reference type but what about the member of value type which lives inside the class.Is it value type or reference type?
View ArticleMemory leak on binding to a WPF TreeView
We're having an issue with a TreeView hanging onto a viewmodel set that has been bound to it. We have a static treeview on the main window, and reset its ItemsSource to Nothing or a new viewmodel when...
View ArticleSystem.InvalidOperationException: Specific element is already the logical...
Hello,I am trying to print some paragraphs and image using Flow Document As shown in Code below...Paragraph invoiceID = new Paragraph(new Run("Invoice No : "+ txtInvoiceID.Text)); Paragraph qty001 =...
View ArticleIf I target .net 4.0 but run on a machine that has .net 4.5 will .net 4.0 WPF...
I am interested in installing the Visual Studio 11 Beta (and the actual release when it comes out).But I am one of the unlucky that has to support Windows XP installs for 2 more years. We run an N Tier...
View ArticleWPF datagrid detect changes to database via external source
I've searched for a long time now and can't find the answer I seek. I have a datagrid that is bound to my entity:Entity e = new Entity(); dataGrid1.DataContext = e.Table;I have this bound to my...
View ArticleTabControl header
Hi All.I would like create template or style for TabControl in case when user selected TabItem near TabItem Header will appear triangle and that triangle will be always in middle of TabItemlHeader. How...
View Article