how to make a unbound datagrid (wpf) with custom columns
I need to create a flex grid where I have to show different Items on a single cell (one or more button, some label). The number of item can change on different cells so is not possible to create a...
View ArticleIs there a way to embled some part of Outlook UI into WPF?
Hi,my question is straightforward. Thanks and Best regards,Weera
View ArticleWindow design view gives:"NullReferenceException: Object reference not set to...
Using Visual Studio 2013, C# and WPF.I have a simple User Control when used in a window causes: "NullReferenceException: Object reference not set to an instance of an object."However when code is...
View ArticlePrevent drop-down menu to close
I have a big problem. I want to prevent an opened drop-down menu to close when hovering another menu item. How can I achieve this? Thanks.Regards Marius
View ArticleEntity Framework bound to WPF DataGrid...
Hi,I have a strange behaviour. I have an entity set bound to a DataGrid which looks to be ok since it retrieves the data all right and the binding seems to work more or less. When I change a value on...
View ArticleMake Customized ContextMenu hide after an item is clicked
Hi everyone,My application use a Customized ContextMenu control at this page : https://social.msdn.microsoft.com/Forums/en-US/7c5d0665-89f4-497f-81c1-b534ce06901a/modify-contextmenu?forum=wpf It has...
View ArticleCustom control extending multiple controls
I need to create a custom controls which inherits from a Canvas control. But I want the canvas to be inside a ScrollViewer. Whats the best way to accomplish this in my control?Do I have create two...
View ArticleBinding vector image technique
Hello.I try to put a drawing with each item of a collection. The drawing depend on a property of the binded item.I know how to do this with png files : I use a converter that transform property value...
View ArticleLargeImageSource not filling RibbonButton
I'm have a WPF 4.5.2 app. In it, I'm using the Microsoft Ribbon control . I'm setting the LargeImageSource of the RibbonButtons, but no matter what size picture I use (PNG), it never fill more than the...
View ArticleWPF: AllowsTransparency="True" makes FrameworkElement that was returned from...
The problem is that controls returned from AddIn library (actually, ms.internal.controls.addinhost) and then added to window are not displayed with AllowTransparency="True", but the WPFInspector says...
View ArticleC# WPF -- How to start included exe
Hi guys,Im on project and I want to start an exe file. Following: I made:Right click on project > add > existing element.There I selected the executeable programs and added the exe file. Now I...
View ArticleHow To Display Hierarchical Data
Hello,I want to display a expandable list of categories. Each category has a name, an amount, and a list of its styles. Each style also has a name, an amount, and a list of its colors. Each color has a...
View ArticleAnimation single direction, Left to right and right to left
HelloI recently posted tihs thread. The animation works fine except that the extreme left and the extreme right are joining and opens from the middle of Grid. Something like -------> <----------...
View ArticleStringFormat with DynamicResource
Helloi am using this code to display amount with Thousands Separator .<TextBlock Padding="5" Text="{Binding TotalCompensation, StringFormat={}{0:N0}}" FontSize="13" HorizontalAlignment="Right"...
View ArticleXBAP HostScript new Window
I'm running into an unusual one that I can't explain and hoping someone can enlighten me. I've got an XBAP app that interacts with the default.aspx (ASP.NET) page through the...
View ArticleSystem.OutOfMemoryException in WPF code ...
Hi,I do have the following WPF code written in C#:public Bitmap BitmapImage2Bitmap(BitmapImage bitmapImage) { try { using (MemoryStream stream = new MemoryStream()) { BitmapEncoder enc = new...
View ArticleBing Maps: distance between two locations including country borders info, to...
Hi Everyone !I want to develop a desktop application in C# (preferably WinForm) which will give me the distance travelled within a country through Bing Maps i.e. if the route crosses a country border...
View ArticleHow to change the style on a datagrid?
I have a dictionary with some styles. For datagrid I have two styles:<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"...
View ArticleVisualTreeHelper.getParent issues in databound tree
I have a databound tree with two custom object types (containers and orders)I made a prototype app that reproduces my issue. The issue seems to be fixed in 4.5 but I can not move my app from 3.5 just...
View ArticleWhy the default styles are modified when I add a resource to...
I have a dictionary resources, that I want to add to the App.Current.Resources. I do it in this way:System.Windows.ResourceDictionary myDic= new System.Windows.ResourceDictionary();...
View Article