Measure Control with double.PositivInfinity WPF
Aloha guys, I am working on a custom control that has a custom panel and I really need alot of help. As example inside the custom panel I have a small and simple MeasureOverride method that passes the...
View ArticleHow to ZoomIn WPF ListView Content without zooming scrollviewer?
I have a WPF ListView and a slider to zoom the content of the ListView. When I use the LayoutTransform, the content and the scrollviewer zooming. I want only the listviewitems to zoom but not the...
View ArticleChanging Foreground color of labels, Depending on the current label mouseDown...
Hi all,I have a simple WPF Applicaton in WPF. I have written all the UI code in code-behind. but I want to write this code in the ViewModel rather then writing in code-behind.<Window...
View ArticleWhat steps does the app take during text change and saving the changed text?
I am trying to get the save button to activate when the text is changed in the text box. I am not quite sure the steps that the app takes in this process. If the user types something in the...
View ArticleINotifyPropertyChanged on a Window class
I know that this isn't best practice, but we've sometimes applied the INotifyPropertyChanged interface to a Window object or a user control. In experimenting with it more I definately appears to me as...
View ArticleUnit Testing WPF Command
Hi,I am trying to write unit tests for a command that executes an asynchronous action using tasks (TPL). Here is the example code that I am trying to achieve.class MainPageViewModel { private IService...
View ArticlePlot3d to plot a point in 3d plane
i have used http://msdn.microsoft.com/en-us/library/ms747437.aspx to draw a cube successfully.But i want to plot a point in 3d plane.how can i do it? Can i use plot3d? Please help with an example.
View ArticleHow To Minimize and close window in MVVM
Hi All,I am developing an MVVM application and i want to minimize and close the window in MVVM.so i know that i have Two alternatives to do this:1) Write the click handler in Code-behind 2)and write...
View ArticleLet's talk about MVVM
As a side project I am currently learning MVVM pattern. And MVVM and WPF beling togehter, so I put this here. I found a usefull example (http://msdn.microsoft.com/en-us/magazine/dd419663.aspx). I think...
View ArticleMicrosoft.WinFX.targets error after changed image file
Hi everybody,i'm working on Blend building WPF app.After I changed the image's file from <image source="new_name_file.png">I get this error "Microsoft.WinFX.targets" and the description says...
View ArticleCustom Binding in Subclassed DataGridTextColumn
hii did some research but don't see this exact issue anywherei sub-classed the DataGridTextColumn to provide for some custom functionalitynow aside of the the standard "Binding" property, i would like...
View ArticleScope or future of WPF ?
Can any one please give the clear picture about WPF future ...? I came across few threads/discussion but every one having unique thoughts.What will be Industry Forecasting about WPF ?siva
View ArticleHow to scroll a treeviewitem into view??
Hey,i always search for answers and got the solution to use the Focus() Method, but it doesn't work.The Problem is:i try to set the Focus inside a treeview to a defined TreeViewItem, and a mehod like...
View ArticleDataGrid control shows something in the left corner
Hi. i have a data grid(borderthickness is set to 0, gridlinevisibility is set to none, also i have 3 columns (40%, 20%, 40% width) ). everything is fine untill i fill data into datagrid. i have a...
View ArticleClick and Drag Scrolling using ScrollViewer
Hello, I want to allow Click and Drag scrolling using a ScrollViewer. I have a nested StackPanel inside the ScrollViewer and the scrolling is working. How do I allow the user to click anywhere inside...
View ArticleHosting an ActiveX Control in WPF
Hello All,I want set "URL" property of MediaPlayer from XAML with Binding ...Can anyone please tell me. How to do...
View ArticleWindows Media Center SDK for VS2010 (Windows7)
Thanks to read my postHi,I loved Windows Media Center (functionality and style) and would like to get the WMC SDK for VS2010 (Windows7) but non of the SDKs I downloaded add the required template in the...
View ArticleXAML namespace conflicts?
Hi, In my window xaml I have 2 namespacexmlns:reportdoc="clr-namespace:MyProject.Test" xmlns:print ="clr-namespace:Test.Show;assembly=Test.Show"here , MyProject is the main project.Test,Show is another...
View ArticleWPF threading problem
I have a Windows Form application that creates a WPF window in a speech command recognised event, upon the event being triggered the WPF window is created but not shown.First of all when I tried to do...
View ArticleBegin Invoke/Exceptions - Thread Life
Hi, I am writing an app that uses code similar to the below...The code updates a label as "loading..." while invoking the method doSomething().If the user closes the window in the app that has kicked...
View Article