Restrict Panning within the boundary(some border)...?
HI, I have a panning and zooming code: private Point origin; private Point start; void Pan_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { if (((Path)sender).IsMouseCaptured) return;...
View ArticleNew Features in WFP 4.6: The Roadmap for WPF
Microsoft today published a post on the .NET Framework blog where they list a few examples to what new features in WPF you can expect to see in upcoming releases of Visual Studio 2015 and .NET 4.6,...
View ArticleNew Feature in WPF
AS i have seen The Roadmap of WPF. how can use transparent child windows ?Prem Shah
View Articleproblem with progress bar in c# application
Hi, In my c# application while tab2 page is getting loaded if we switch to tab1 which is already loaded then progress bar gets displayed in tab1 also Why this happens?
View ArticleOverrideMetadata for Selector is (somewhat) not working
Right after building, the default value for SelectedIndex shows as overridden, but after resetting, it reverts back to the value before overriding. In my case, I've overridden the property so that the...
View ArticleTabItem not getting highlighted/focus
Hello,The Tab Items in a tabcontrol are generated programmatically at runtime.I am trying to set focus on this tab item on click of Save button. But somehow focus is not getting set there. If i...
View ArticleMoving Focus to UserControl's TextBox
I have a Search User Control having a textbox on which i want to set focus.In a tab this UC is used and beneath it another UC with a lot of data gets populated. So when I search something in the Search...
View ArticleLarge XPS documents load very slowly in DocumentViewer
I have converted some large PDF files to XPS files by printing them from Adobe Acrobat to the Microsoft XPS Document Writer printer. I have noticed that the XPS files are 3 to 4 times as large as the...
View ArticleDisable a button with ICommand in MVVM
I have a button click event.private async void Start_Click(object sender, RoutedEventArgs e) { try { Start.IsEnabled = false; Start.IsHitTestVisible = false; Start.Background = Brushes.Red;The...
View ArticleBinding two columns to two different comboboxes and binding the two...
I use Method() to return a datatable with column1 and column2, and other columns for other use.I got combobox1 binding to column1 and combobox2 for column2.When I changed the selectedIndex of one of...
View Articlelinking hypertext transfer protocols in Visual C# in VS2013 Community
How do I create a button click event to link to an external website from a WPF form (windows 7, Windows 8, Windows 8.1)?privatevoidlinkPress_Click(objectsender,RoutedEventArgse) {...
View ArticlePlease help me do this simple animation
Hello,I'm new to WPF animation (although an old hand at WPF in general), and am getting very confused, as there seem to be a lot of different ways of doing things, and a lot of poor explanations of how...
View ArticleLoading New Windows
Using WPF and C# -I am writing a program which has two windows - Window1 (login window) and Window2 (main part of the program). When the program starts Window1 opens normally and prompts user for...
View ArticleReceiving a COM Error
Hi,I am using some VB6 Components in my WPF Code in order to interact with the methods in VB6.In case of ContextSharing I am receiving the following Automation Error:.This comes in the CurrentInfo...
View ArticleDataGrid
Hello;How to show data in a datagrid from a postgresql database in wpf in vs 2008 !!some conceptual link/tutorials also needed ..please help . Database : PostgressqlVS2008/WPFThanks in advance.
View ArticleOptimize PolyLineSegment Points
Hello,In my code I create a PathGeometry that corresponds to the outline of a widened PathGeometry.This outline contains several points into its PolyLineSegment. I need to minimize the number of...
View ArticleHow to set the background color on a disabled button by a converter?
I have a button which action can be take a lot of time. Is an async method, so in this way I don't block the UI, but also I would like to disabled the button to avoid the chance of execute another same...
View ArticleHow to let TextBox lost focus?
Hi all,I would like to press enter key in a textbox, then do some stuff, at last, this textbox lost focus. so how to lost focus by code?thanks,Joey
View ArticleHow to set the width of DataGridTemplateColumn?
Hi all,DataGridTemplateColumn cannot binding (StaticResource or ViewModel) Width for the below code. Since the HeaderTemplate will contain a complex content, but the column with is not able to fitting...
View ArticleFlow Document Paper Size (Not Page Size)
I an trying to make a flow document and print with, I was able to adjust the data to required size, and I am getting the required output.Below is the code for my Flow Document:<Window x:Class="test"...
View Article