|
Παρουσίαση με Ετικέτες
Όλες οι Ετικέτε... » wpf (RSS)
Εμφάνιση σελίδας 2 από 4 (82 συνολικές δημοσιεύσεις)
-
While adding some properties to the back panels of ClipFlair windows, I came upon the issue of how to space items in a StackPanel. A Padding property is missing from multiple item containers (only single content controls have such), but a nice solution is described at: ...
-
During the development of ClipFlair (currently at Alpha1-internal version), I’ve been doing lots of research, hunting for information (documentation, related discussion threads, useful download links) needed when writing and refactoring source code etc. I have tried to organize these links as (Windows) Internet shortcut files into folders. They do ...
-
At ClipFlair I’m using a modified version of FloatingWindow control, where I try to make the WPF and Silverlight flavours of the original control share as much code as possible (this is work in progress currently, hoping to eventually have the WPF and Silverlight projects both link to the same source files [this is currently [...]
-
I’ve managed to combine http://www.codeproject.com/Articles/85603/A-WPF-custom-control-for-zooming-and-panning and a cut-down version of it for Silverlight that was out there: http://www.codeproject.com/Articles/167453/A-Silverlight-custom-control-for-zooming-and-panni I did it in a way that the Silverlight version is source-code compatible ...
-
System.IO.IsolatedStorageSettings doesn’t exist in WPF (only in Silverlight) but can easily be ported from Mono project’s Moonlight implementation (the Moonlight project home is at http://www.mono-project.com/Moonlight), as suggested at: http://groups.google.com/group/wpf-disciples/browse_thread/thread/4ed6c009f3fb7d69 I found that ...
-
Just came across http://wangmo.wordpress.com/2007/09/27/themesgenericxaml/ which gave me a hint on why a WPF control wasn’t getting instantiated correctly when loaded from an external assembly (dll): to load generic.xaml for WPF, at the start of Properties\AssemblyInfo.cs you need (note this isn’t used/needed in Silverlight): using System.Windows; ...
-
I’ve been looking into porting Kael Rowan’s ZoomableCanvas (related to ZUI code used in Code Canvas, Debugger Canvas etc. VisualStudio add-ons) from WPF to Silverlight. One of the issues I found was that Silverlight’s Rect class (I guess this is a case for .NET Compact Framework in general) doesn’t have a method to check if [...]
-
Καλησπέρα,
αυτό που θέλω να κάνω είναι να κάνω Collapse τα παιδιά των πρώτων αντικειμένων που υπάρχουνε μέσα σ’ ένα ΤreeView με CheckBoxes σε WPF App C#.Το πρόβλημα μου είναι πως αυτό το TreeView γεμιζεί (μέσω της μεθόδου ItemsSource() ) απο μία κλάση που έχει φτιάξει κάποιος άλλος την οποία την έχει ονομάσει ViewModel. Έχει επίσης 2 Properties ...
-
Καλησπέρα,
αυτό που θέλω να κάνω είναι να κάνω Collapse τα παιδιά των πρώτων αντικειμένων που υπάρχουνε μέσα σ’ ένα ΤreeView με CheckBoxes σε WPF App C#.Το πρόβλημα μου είναι πως αυτό το TreeView γεμιζεί (μέσω της μεθόδου ItemsSource() ) απο μία κλάση που έχει φτιάξει κάποιος άλλος την οποία την έχει ονομάσει ViewModel. Έχει ...
-
In this post I will provide you with hands-on examples on how to retrieve data from a WCF Data Service and bind the data to WPF data bindable controls that reside inside a WPF window.The client application in this case will be a WPF application again. (read more)
-
In this post I will not be investigating at what some people call the “Windows single technology applications” which basically means that we build WinForms apps for the windows operating systems using only Windows Forms controls or alternatively build a windows WPF application using only the built-in or 3rd party WPF controls. (read more)
-
That is, our class implements the INotifyPropertyChanged interface and also raises the notification for the “Description” property whenever the Id or the Name properties are changed in order for the Listbox contents (databound to Description) to be refreshed. Our ViewModel for the application is as follows:
public class ...
-
Είναι γεγονός! Επιτέλους θα πωλείται κανονικά και στη χώρα μας.. και ...
-
Copying from Expression Blend 4 User Guide’s “Learning and community resources” section: Apart from this User Guide, the following additional content and resources are available. Expression Blend and other Expression Studio products Expression community website (training, tutorials, videos, and webcasts) Expression Blend and Expression Design team ...
-
Καλησπέρα σε όλους,όπως μου είχε προτείνει ο KelMan(τον ευχαριστώ πολύ) χρησιμοποιώ το mediator Pattern για επικοινωνία μεταξύ viewModel και view.λοιπόν,στο mainWindow έχω ενα menu όπου σε κάθε item του έχω ορίσει ενα command.Όταν κάνω click σε ένα item στέλνω μήνυμα το οποίο το έχω κάνει register στο ...
-
Καλημέρα σε όλους,προσπαθώ να καταλάβω με ποια λογική μπορεί ένα property απο ενα viewModel να πάρει τιμή απο ένα άλλο viewModel.Πιο συγκεκριμένα:έχω ενα application το οποίο έχει δύο windows (χρησιμοποιούν διαφορετικά viewModels), το mainWIndow και ακόμα ένα (ας το πούμε popWindow) το οποίο ανοίγει με το πάτημα ενός κουμπιού.Αυτο που θέλω ...
-
Καλησπέρα σε όλους, προσπαθώ να φτιάξω μια μικρή εφαρμογή σε wpf με το Pattern mvvm. Στο data layer για βάση δεδομένων χρησιμοποιώ .sdf file και Entity Framework.H εφαρμογή έχει 3 views και ενα ViewModelΣτο dataContext του mainWindow κάνω bind το ViewModel και τα άλλα δυο userControls παίζουν με το ίδιο ViewModel.Σε ένα UserControl έχω ...
-
In this post, we see how we can add a DataBound image in the DataTemplate of a WPF ListBox. We experiment with three different approaches of achieving that and discuss on which one to use depending on the situation. In all cases, the image files are embedded within the application as “Resource” files. Later in this post, we will see ...
-
I was just experimenting with extensibility using MEF (MEF is a .NET resident for .NET4 and SL4), when I created a small proof of this functionality that I could share via my blog. It is a semi-patterned (only for the main shell, my shell, not a PRISM one with viewregions and stuff, just an MVVM main area implemented with MVVMLight), but it does ...
-
I was just experimenting with extensibility using MEF (MEF is a .NET resident for .NET4 and SL4), when I created a small proof of this functionality that I could share via my blog. It is a semi-patterned (only for the main shell, my shell, not a PRISM one with viewregions and stuff, just an MVVM main area implemented with MVVMLight), but it does ...
-
I have been studying WPF for some time now and I am impressed with its extensive API and the incredible-stunning applications that one can build.
In this post I would like to show you how to create a WPF application that will fetch data from a database
-
How do they all connect? Well it boils down to the following questions:
If I am using Entity Framework in a Desktop application when should I open the Context and for how long should I keep it open?
I have ComboBoxes that will be used to select values for the Reference Properties of my Entity Framework objects. How am I going ...
-
Here is an implementation of a nice Textbox in WPF that suggests possible values based on the current user’s input. It is different from WPF’s native editable Combobox since it does not load all possible values at initialization (saving time and memory). The Textbox calls a method that returns the suggested values as soon as it detects ...
-
In previous posts (Part 1 and Part2) I have presented the implementation of a toy application using the Model-View-Presenter pattern and Routed Commands. In this final post, I will present the migration to MVVM. In Part2, we have reached a point where we have managed to partly centralize the logic that is needed to be implemented for ...
-
In my previous post, I have presented the first two approaches for implementing the GUI and the logic of a toy application:
Approach #1: All the logic in the code behind file.
Approach #2: The Model-View-Presenter pattern.
In this post, we will pick up from where we stopped, in our route to migrate to the benefits of ...
2
|
|
|