How do I change a DataGrid checkbox without clicking twice?
I have a DataGrid with a checkbox column. When I click on a checkbox, the DataGrid selects the appropriate row but doesn't change the checkbox, so I have to click the checkbox again to change it.How...
View ArticleQuestion about rendering WPF Canvas containing multiple Images
Hello Devels,I want to save the Content of a WPF Canvas (which is in a ScrollViewer, so not all Content is visible) to a png. With the following code I get it working.void SaveUsingEncoder(Canvas...
View ArticleAnonymous Type and observablecollection
I want to create an anonymous type of a data type class that has more fields that I wantThat's not the problemI want to return an observablecollection(of ?) from the anonymous typeI assume that I could...
View ArticleAutocomplete box in Blend
Ok, let me start by saying I'm not a programmer. Never had luck with any of it so I avoid it like crazy. But, I still have to create in Blend. So I'm struggling a bit right now with autocomplete boxes....
View ArticleVisual Print not showing any value
Hello,I am using Some TextBoxes to Get Values for Printing Using Print Dialog Visual Print. All Values are visible in Form But Not Printing in Print. Here is Image attached for demonstration. Here is...
View Articlechecked and unchecked always false
Hi, I have checkbox and want to do something in my code depend on is isChecked true or false. So, here is the code: Private Sub My_Check(sender As Object, e As RoutedEventArgs) Handles...
View ArticleHow to set xaml file not to embedded in assembly as content
A xaml file used to set build action as "Page".It will embedded xaml file in assembly.How can xaml file to be a real file in output directory that program read it from a file.It just like ASP.Net MVC's...
View ArticleBrowser back button pressed event handler - XBAP
Is there an event handler to be enables when the user click the back button in the browser?
View ArticleAdding a TextBlock (or label) on the end of a LineSeries DataPoint of a...
I'm creating a User Control componente of type DataVisualization.Chart. Right now, he accepts 4 range limits (1 range minimum of accept value and 1 maximum, also 1 range minimum of warning value and 1...
View ArticleRendering Baseline / Progressive JPEG Image in WPF application like Web Browser
I typically have large jpg file to show on a WPF application. Typically what I do is to create BitmapImage like thisvar result = new BitmapImage(); result.BeginInit(); result.UriSource = new...
View ArticleNeed help binding XmlDataProvider as a source...
Hi,Technology: Prism, Mef, Mvvm, C#Read a quite a few articles and examples on the internet and I'm still having trouble connecting my.xml data to either a TreeView or ListBox via XmlDataProvider. I...
View ArticleHow xaml work when a ContentTemplate's Content is FrameworkElement but...
A ContentTemplate:<ControlTemplate TargetType="{x:Type XXX}"><Border /></ControlTemplate>ControlTemplate inherit FrameworkTemplateA part of code of...
View ArticleDocumentViewer translation
HiI'm hosting a DocumentViewer (WPF control) on a Windows Forms control. The DocumentViewer works fine but my problem is if i use the application on e.g. a Spanish or France OS then the tooltips etc....
View ArticleChange RenderTransformOrigin after Rotation applied
Hello everybody,currently I'm working on a Program to design UI Controls on a Canvas.I want to rotate Controls by default in the Center (RenderTransformOrigin="0.5,0.5"). If I now apply a Rotation...
View ArticlePersisting last selected menu item WPF - Menu Control (Urgent Help)
Hi All,I'm new to WPF and would require help in fixing an issue.Scenario: We have tab control, say Configuration, Admin etc., based UI for administrator use. In one of the tab control (Configuration),...
View ArticleWeird behavior of WPF MediaElement/MediaPlayer seeking (set Position)
I am making a small tool to play mp3 file, associate with lrc file. The main functionality is to show and highlight the current playing paragraph, and do loop-playing on current/specific paragraph on...
View ArticleWPF: 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 ArticleDisplay name from foreign Key constraint within a combobox
Hi guys,I have three tables. Employee, ClientEmp and Client. ClientEmp has the FK of both Employee and Client. So far, I am able to save changes to CliemtEmp in my database (using EF) based on the...
View ArticleCRUD operations in a wpf datagrid C# MVP pattern
Hello everyone. Recently I found that everything I have done is wrong relating to CRUD operations in my datagrid and I need to do it all over again. The issue I have is that right now I go through all...
View ArticleHow to prevent a WPF custom control from drawing focus around itself while...
I'm developing a custom control deriving from Control and defined using ControlTemplate. After stripping out all bells and whistles, the control displays just four TextBoxes: <Style...
View Article