Ways to migrate Windows Forms app to WPF 4.5??
hi there,I'm migrating one old Windows Forms 2.0 application to WPF 4.5 desktop app.Legacy system has approx 25 forms. Average is about 20 entry objects (typically textboxes, combos, and so on) along...
View ArticleMoving WPF controls in runtime?
Hi all of you,I'm looking for one article or tutorial which explain how to move WPF controls in run-time.Any advice or comment would be greatly appreciated!!EnricPrimary platform is Windows 7 Ultimate...
View ArticleIsit possible to merge list view into my camera view ?
<StackPanelWidth="1000"Height="702"MaxWidth="Infinity"><ListView Name="ListViewData" SelectionChanged="ListViewData_SelectionChanged" Height="68"...
View Articlehow to remove event handlers by style?
hi.i want to remove this event handler:<Style TargetType="ContextMenu" x:Key="treeItemContextMenuStyle" ><EventSetter Event="ContextMenu.Loaded"...
View ArticleHow to Uncheck Menuitem isCheked property in MenuItemClick event
I am able to check the menuitem but not able to uncheck and more over it showing previous check in the menuitem. Once I click on the another menuitem it doesn't uncheck the previous menuitem. I'm...
View ArticleIncluding a Hyperlink inside a DataTrigger, that is inside a GridColumn
So I have a grid column that I want to display property 'Name'. If 'Name' happens to be false for property IsAccepted, I want 'Name' to have a link around it that will open in a new window. My...
View ArticleUpdate style that binds to static resource
Hello guys!I have somethi like this as Grid Resources:<Grid.Resources><!-- Particle Styling --><SolidColorBrush x:Key = "ParticleColor" Color = "#006699"/><SolidColorBrush x:Key =...
View ArticleWPF Mulipleitems select in Combox.
Hi all, i am working on wpf .I have a combobox. Now i need to select multiple items from the combobox without using third party tool.based on that items if i click on search ...get the data from...
View ArticleWebBrowser control in WPF
Hi Guys,I have simple WPF app which contains the WebBrowser control. In the WebBrowser control I am displaying a hyperlink using the code...
View ArticleWPF ViewPort3D doesn't transmit Mouse Events to inner User Control
I’ve got a wpf app displaying a card with rounded corners. The card has two sides – front and back – and it can be turned over from one side to another by mouse right button clicking. Each side also...
View ArticleHow to implement a Collection-Type Attached Property instead of a...
I am trying to extend vbfox's code discussed in Using CommandBindings in MVVM that allows databinding in a custom CommandBindings class. Instead of having to...
View ArticleComplete My Class
hi i try to use commands in wpf for mvvm model,this Is my Class , whats problem in my class?public class DelegateCommand : ICommand { private readonly Action _command; private readonly Func<bool>...
View ArticleItemContainerGenerator Recycling Problem
Hi,I am trying to use Recycling within my custom virtualizing panel.Here is my code:protected override Size MeasureOverride(Size constraint) { ... // computatons of firstVisibleItemIndex...
View ArticleAdded few buttons on expander header...Buttons are not clickable
Added few buttons on expander header...Buttons are not clickable...I have done like below...Created a DataTemplate<DataTemplate x:Key="ExpanderHeaderTemplate"><StackPanel...
View ArticleHow to create a TransitionEffect with code-behind
I have created 2 states for hiding and showing a grid. All I am doing is a DoubleAnimation of the Opacity and then using the SlideInTransitionEffect to slide the grid into view. I want to do this for...
View ArticleMEF: Possible to register the same ViewModel with Different names?
Hi, Can you create multiple NonShared ViewModels with a different name? My problems is I have a composite view:<UserControl x:Class="Natsar.ODS.Documents.Spoken.SpokenView" . .. ...<Grid...
View ArticleC# WPF - WinForms Web Browser Styling
I have a WinForms WebBrowser within a WPF Modal Dialog window. I also have a template defined for all of my modal dialog windows:<ControlTemplate x:Key="ModalViewTemplate" TargetType="{x:Type...
View ArticleViewBox Resolution Problem
Hi: I´m developing a WPF application and I need that it fits to any screen resolution. I´m using the ViewBox control with Stretch property in Uniform mode. Also, the screens have several DockPanel...
View ArticleUsing MVVM pattern in WPF
Hi,I have been trying to create my first WPF application using MVVM pattern for almost 2 months. Yes, I am going through the steep curve of learning lots of things at the same time. Because for the...
View ArticleDisplay data in DataGrid when column count and headings are not known at runtime
HiI have a requirement to display tabular data in a WPF GUI and the DataGrid looks to be the natural choice.In this case, the number of columns and their headings can vary at runtime. I have looked at...
View Article