Change the visible property of the text box from the view model ( WPF, MVVM)
Hi,I am a beginner here in WPF and MVVM. I have certain controls on a window in my project. For example, I have a text box in my window. I am using MVVM Pattern and here I want to change the visible...
View ArticleWindows Forms Grid View in WPF
I have used Windows Forms DataGrid Control in WPF and i am binding some data to it.Now i want to read the data row wise form that grid view.How it can be done ?
View Articlexaml parse exception
System.Windows.Markup.XamlParseException: Unable to cast object of type 'System.Windows.Controls.Label' to type 'System.Windows.Controls.TextBox'. Error at object 'System.Windows.Controls.Label' in...
View ArticleDataTable problems...
I know y'all are probably going to start fussin' that this question doesn't belong here, but I'm not exactly sure where to put it.... Not sure exactly what I'm asking to be quite honest. :)I have a wpf...
View ArticleMediaPlayer don't work well in WPF
I have a very strange problem with MediaPlayer in WPF. The player is set in the main window consturctor, its works fine, but if I put it in some timer or inside a method its just dont play the sound...
View ArticleWPF Panel with next and Previous
Hello pp lwould like to know if we can do a panel like this in WPF. Where I sent a list item for the usercontrol, and after that the control showed items that were possible, and if more it shows the...
View ArticleAutomationpeer? On-Screen-Keyboard
Hi,I want to enable my .Net 4.0 WPF-application to "interact" with the on-screen-keyboard. Actually all I want is the normal usage: popup when focus is on textboxes.All sources I find tell me, to use...
View ArticleZoom into mousepoint in Canvas
Hey guys,I have a problem with the zooming in a canvas. The canvas is filled with elements and I want to zoom into an element when I put my mouse over the element and scroll with the mouse. With this...
View ArticleTreeview images appear slightly blurry when displayed in the main application...
Hello,I have a UserControl that contains a TreeView defined like:<TreeView Name="treeViewGroupings" Grid.Row="2" Grid.Column="0" Width="335" Height="400"...
View ArticlePrism + MahApps.Metro
MahAppsI would like to apply the BordelessWindowBehaviour, however, this behaviour can only be added to Window Type. If I try to add it in an UserControl, I get:Cannot attach type...
View ArticleDataGrid binding and Linq to SQL
Hi All,We have a question about data binding in DataGrid with LINQ data context which is using SQLConnection class. As we need a dynamic UI to allow user select tables to modify data, hence we cannot...
View ArticleHow to fit a checkbox in DataGrid cell in WPF
Hi, I am facing a problem while rendering check box in DataGrid cell . When the row height has been changed , check box is not rendering accordingly and there is no change in check box height at all....
View ArticleDataTrigger stops working (after a while)
Hi,I've got this problem where a DataTrigger stops working after a while. I've not been able to work out a pattern.It basically moves a Rectangle around a Canvas, in directions N, NE, E, SE, S, SW, W,...
View ArticleWPF enabling and disabling items inside a ListView
Hey Guys,I'm working on a ListView that has a ComboBox as one of the added items. Here is the XAML for the ListView:<ListView x:Name="Item_List" HorizontalAlignment="Left" Height="299"...
View ArticleBackground Color of DataGridCells Changing when Scrolling
All, after a long time working out how to change the background color of cells at run-time, I now have a problem where the correctly colored rows are not staying coloured when I scroll the DataGrid!? I...
View ArticleBind Filter Text Box in the columns Headers of WPF DataGrid to ViewModel
Hi All,I've built DataGridColumnHeaderStyle where each column header contains text box for filtering.The point is how to bind it to view model to add filtering for each column in the data grid.Thanks...
View ArticleCheckbox controls not displaying correct database value
I'm having trouble getting checkboxes to bind correctly with a database (using VS 2010; WPF 4.5). If I use XAML to bind, no problems. But, if I try to bind to a Boolean entity property using code...
View ArticleHow do I effect the style of the TabItem header, only?
I'm trying to style a TabItem, and setting control template triggers so that when the IsSelected is true, then the text in the header of the TabItem is bold, and it isn't otherwise. I can set that...
View ArticleTracing time while sending mail via smtp server in wpf
I have created an email application in wpf which sends email via smtp server.While sending mail with attachments it takes lot of time to send the mail.How to trace a time taken by the server to send a...
View ArticleDataGrid using MVVM with CanUserAddRows with validation enabled?
Hello,I've been struggling for days to implement a DataGrid using the MVVM pattern that sets DataGrid.CanUserAddRows=true and uses Binding.ValidationRules for validation. Unfortunately this has lead...
View Article