Can A winform app be switched to a WPF one if MVC architecture is used?
If we develop a winform app using an MVC architecture, it should not be too hard to change over to WPF at a later date, correct? ...
If we develop a winform app using an MVC architecture, it should not be too hard to change over to WPF at a later date, correct? ...
I am fairly new to WPF and I am having a problem with inheriting from a user control. I created a User Control and now I need to inherit from that control and add some more functionality. Has anyone does this sort of thing before? Any help would be greatly appreciated. Thank you ...
I have set a canvas' background to an image of a company logo. I would like for this image to be aligned to the bottom right corner of the canvas. Is it possible to do this, or would it require for the image to be added into the canvas as a child? That would not work with this program as all children of the canvas are handled different...
I've got a Page class in my .edmx ADO.NET Entity Data Model file with with Parent and Children properties. It's for a hierarchy of Pages. This is handled in my SQL database with a ParentId foreign key in the Page table bound to the Id primary key of that same Page table. How do I display this hierarchy in a WPF TreeView? ...
I have a really simple WPF UserControl: <UserControl x:Class="dr.SitecoreCompare.WPF.ConnectionEntry" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Name="connEntry" BorderBrush="Navy" BorderThickness="1" Margin="5,0,0,5" > <StackPanel Margin="0,10,0,0" > ...
I am using CaptureMouse() during a drag and drop operation to make sure I don't miss the MouseUp event, but this seems to prevent any mouse events reaching any other objects on my Canvas. This means that my IsMouseOver based triggers don't work, but I need them to indicate valid locations where the object can be dropped. Am I doing this...
So we are sure that we will be taking our product internationally and will eventually need to internationalize it. How much internationalizing would you recommend we do as we go along? I guess in other words, is there any internationalization that is easy now but can be much worse if we let the code base mature and that won't slow us do...
I have a DataTrigger defined in my XAML which I want to use in several places. Is it possible to define it as a resource and then share it? Here's my trigger: <TextBlock.Style> <Style> <Style.Triggers> <DataTrigger Binding="{Binding HasCurrentTest}" Value="True"> <Setter Property="TextBlock.Visib...
I can't seem to set a ContentTemplate for a ComboBoxItem. There reason I'm trying to do this is I want to have 2 appearances for my data in the combo box. When the combo box is open (menu is down) I want a text box (with the name of the image) and an image control below it. When I select the item I want the combo box to just show a text ...
Im considering migrating my c# application from using custom GDI+ drawn controls to a WPF application with custom controlls etc. I would like to know whats involved and what to expect. Are there any resources people can recommend that might help? Or indeed any personal experiences that might be benificial? ...
I've got a class with Parent and Children properties. I want to display this hierarchy in a WPF treeview. Here's my XAML... <TreeView Margin="12" Name="TreeViewPages" ItemsSource="{Binding}"> <TreeView.ItemTemplate> <HierarchicalDataTemplate ItemsSource="{Binding Children}"> <TextBlock Text="{Binding Path=Sho...
I've got a class with Parent and Children properties. I want to display this hierarchy in a WPF treeview. Here's my XAML... <TreeView Margin="12" Name="TreeViewPages" ItemsSource="{Binding}"> <TreeView.Resources> <HierarchicalDataTemplate DataType="{x:Type Page}" ItemsSource="{Binding Children}"> <TextBlock T...
I'm adding C# WPF dialogs to an existing C++ MFC app, using a C++/CLI interface layer. I've got things working, except I'm having a problem with modality. For example: MFC app shows a WPF dialog using ShowDialog. Works as expected. That WPF dialog shows a MFC dialog using DoModal. The WPF dialog is hidden behind the base C++ app, and i...
Hi: I’m trying to run Google earth inside WPF but I don’t know how. Basically I have managed to run Google Earth in a Windows Form Control inside a Windows Form, everything was OK. Trying to do the same thing in WPF, well, give strange result a small Google Earth screen placed anywhere in the form an not inside the User Control I have...
I have a bunch of controls on my window. One of them is a refresh button that performs a cumbersome task on a background thread. When the user clicks the refresh button, I put the cursor in a wait (hourglass) status and disable the whole window -- Me.IsEnabled = False. I'd like to support cancellation of the refresh action by letting ...
I'm uisng the WPF Web Browser control and when it fires the Navigating event, the event args always contain NavigationMode.New. It should be set to NavigationMode.Back if the user chooses to 'Go Back' from the web control. So its off to the COM ActiveX control underneath to determine the direction of navigation. I've been looking at I...
In my small WPF project, I have a TabControl with three tabs. On each tab is a ListBox. This project keeps track of groceries we need to buy. (No, it's not homework, it's for my wife.) So I have a list of ShoppingListItems, each of which has a Name and a Needed property: true when we need the item, and false after we buy it. So the ...
I understand the basics of the Model-View-ViewModel pattern or as Dan Crevier calls it the DataModel-View-ViewModel pattern and I understand that it is a good approach to design WPF based applications. But there are still some open question. For example: Where do I put my business logic where my validation logic? How do I decouple the ...
Whar are the relative merits between GDI+ and WPF? Also does anyone know the minimum system requirements needed in order to develop/run WPF apps? ...