Round Trip problem in WPF
I am having a view component (AvalonDock DockingManager) on which I would like to execute a method on:SaveDockingManagerLayout(xmlLayout); to save the currently used layoutvar layoutSerializer = new...
View ArticleCustom shaped button
Hello All,I have a custom button, where I hide the normal button background, and then display an image instead. The image is png, and can be just about anything, such as a picture of an apple or of a...
View ArticlePrintVisual NotSupported
Hiya guys,when calling PrintVisual I get an exception, (below):I'm printing a canvas with the background set to a visualbrush. I've posted some the print code below as well.Have any of you guys ever...
View Articlehow to disable button in windows in wpf,multibinding,mvvm
hi, i want to disable a button on window load , that butoon is enabled property is already binded to imultivalueconveter,and that is relaeted to some validation error rule class,now i want that when...
View Articlemigrate wpf 4.0 application to wpf 4.5
migrate wpf 4.0 application to wpf 4.5 to required also upgrade expression blend 4 to expression blend 4.5.or expression blend 4 is ok with new Migrated WPF 4.5 Application.
View ArticleCombobox binding Problem i am using wpf and entity framework
<Window.Resources> <CollectionViewSource x:Key="Centerlist" /> <CollectionViewSource x:Key="Centerlist1"/> <CollectionViewSource...
View ArticleInterfaces vs Abstract classes why even use contracts?
Okay, I know there are lots of posts on this. I've read several and they have all helped me get to a reasonable understanding of the differences between both; however, I still can not seem to...
View ArticleDatagrid Column header AccessKeys enabled after upgrading to .NET Framework 4.5
I have WPF solution build using Visual Studio C# 2010 and .NET Framework 4.0. For labels I replaced '_' with '__' to disable the mnemonic keys The datagrid column header didn't need any change as it...
View ArticleHow do I cause a rebinding of the Text property of a TextBlock when data...
We've got a situation in which we've got several user controls we've defined, that collect data from the user. Some of the data is what we call "ratings". On one of the other user controls, which I'll...
View ArticleCreate table in WPF
HI,I want to create table with 5 column and the first column should be with check boxes for every rowwhich indicate which row is selected and than take this data from selected rows from the table and...
View ArticleVisibility.Collapsed/Hidden not working?
Ok im not sure why this aint working. Basically I have a BorderControl which hosts a Grid which hosts various controls. The borderControl starts with its Visibility set to Collapsed. When I click a...
View ArticleHow to scroll ListBoxItem OnMouseOver in Silverlight
Dear Friends,I need your help to scroll the Horizontal ListBoxItem OnMouseOver event in Silverlight. Actually for my website I wanted to create main menu in a ListBox inside horizontal StackPanel, When...
View ArticlePlay a Video Instantly in MediaElement
Hi,I am trying to create a video player where i need to play a video file instantly without delay.i tried using MediaElement also using Mediaurielement(wpfmediakit) but it takes a delay in playing a...
View ArticleThe calling thread cannot access this object because a different thread owns it.
I want use Mutli-Thread save all UserControl as image at the same time want to show animation view on the screenbut have a error is The calling thread cannot access this object because a different...
View ArticleScrollViewer does not work if Grid is within a StackPanel
Hi Does anyone know why the vertical ScrollViewer is inactive when a place the grid within a stackpanel. If I leave out the Stackpanel and place the Grid directly on the window, the scroll viewer works...
View ArticleSetting Datasource to Datagrid In WPF
I Want to know how to set the data returned from database to datagrid IN WPFi c# We could simply set gridview1.datasource=dataset.table[0];but in WPF datagrid dont have datasource property.Thanks
View ArticleData grid with check box question
HI,im using the following code for using data grid and I have two question1.when I click on the checkbox its not selected on the first click ,how can I change it that when the userclick just one time...
View Article.Net WPF XAML How to Style GridViewColumns
I'm using a ListView which implements a GridView and am having a lot of trouble figuring out how to Style my GridViewColumn content. Here is the XAML:<ListView ItemsSource="{Binding...
View ArticleSystem.ArgumentException Cannot bind to the property or column
I have a simple C# application which tries to display a column (named Longitude) as a textbox in a windows form. When I result = frmLocation.ShowDialog();I get:An unhandled exception of type...
View ArticleStrongly Typed ItemsControls
Hey all,I was just coding up a WPF storm and I realized how much I was casting selected items in listboxes, comboboxes, etc.Wouldn't it have made sense to make ItemsControl generic, so that you could...
View Article