WPF & MVVM: Any Examples Using VB?

Sep 26, 2009

Almost every example of MVVM I found is coded in C#, are there any examples/tutorials coded in VB.Net? I'm having a hard time translating C# to VB.Net since I haven't really used C# in any meaningful way...Also, does a MVVM Template/Toolkit for VB.Net exist yet?

View 4 Replies


ADVERTISEMENT

Looking For Tutorial On MVVM Using WCF And WPF?

Mar 14, 2011

I'm wondering if someone can point me towards a good article/tutorial explaining how to use the MVVM pattern in an WPF Application that uses WCF web services. My WPF client calls a service reference to get data objects that contain data from the database but from everything I've seen and read so far about MVVM I am still not clear on how to use MVVM to work with the data objects I am retrieving from the WCF services.

View 1 Replies

PC Audit Software Examples?

Nov 16, 2009

Are there any examples of PC Audit software or tutorials/code? While I found 80% of my questions on this forum, like how to retrieve ram info, how to retrieve hard drive space, etc..

View 1 Replies

.net - MVVM Design Consideration

Feb 3, 2011

I am currently developing a new WPF application and have the majority of my business logic layer developed (ie my Models). I am about implement ViewModel classes to represent one feature of my application. I am quite new to the Model-View-ViewModel pattern and I have a question about which approach would be best to use when implementing my ViewModel classes.

[Code]...

View 3 Replies

C# - Reusing A Menu With Mvvm And Wpf?

Jun 7, 2011

I was wondering what the best approach is for sharing a menu across all wpf windows/views. My Application doesnt really fit the navigation model, so will probably use a Ribbon control. I am leaning towards creating a user control for the menu and dropping it on each view, but have also seen Josh Smith's msdn article, where he loads user controls.

View 2 Replies

Implementing MVVM In Silverlight?

Nov 11, 2009

IM Looking at Implementing MVVM in Silverlight.Kind of new to Silverlight and I'm Definately new to MVVM Pattern.I get it all But I want A set of small Prism VB.Net MVVM exmaples if that makes sense.

View 1 Replies

.Net Examples Of User-Defined Exceptions?

May 22, 2011

example of a user-defined exception in VB.Net. I already have two examples that I was able to find online, but other than that, I cannot think of any more. I need to find at least 5 to put in my notes, and then submit to my teacher.The two I have so far are: invalid login information (such as improper username or password), and expired credit card information on an online store.

View 3 Replies

C# - Multiple Language Examples In XML Documentation?

May 24, 2010

Is there a way to include examples for multiple languages (C# and Visual Basic, for example) in XML documentation?

I'm using SandCastle to build MSDN-style documentation and would like to include usage examples for a few .NET languages.

View 1 Replies

Examples On Update And Delete In Datagridview?

Oct 6, 2009

from the insert code, I don't quite know how to make it into update.some examples on update of data.Here is the code for the insert part:Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

conn.ConnectionString = "PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source = G:MajorProjectFileProjectSampledatabaseUser.mdb"
sql = "SELECT * FROM customer"

[code].....

View 3 Replies

GPS Street Navigation Dlls Or Examples?

Aug 28, 2009

I have been searching but unable to find any code examples of using a GPS coordinate to navigate to another GPS by road way. Is there a dll from MS Streets and Trips or any other software that would allow this to happen? This would also need to be done offline, so no Google or other online serive call outs.

View 1 Replies

Html Agility Pack - Why Are Most Examples In C#

Dec 2, 2011

I am looking to learn as much about the free source html aglity pack but 99% of what I am running into is code mostly in c sharp. Is VB.NET not the preferred language for html agility pack?

View 2 Replies

Linq - Examples Of .NET Lambda Expression?

Feb 3, 2011

Where can I find complex LINQ examples made using VB.NET Lambda Expression syntax?During my searches I always found 101 LINQ Samples but they use the other notation and for me is not always clear how to transform that code into a lambda expression.

View 1 Replies

Looking For Examples Of Error Handling Code

Sep 14, 2009

I have a routine that is called when an unhandled exception occures.It is called by the MyApplication_UnhandledException method in applicationEvents (which handles Me.UnhandledException)

I am looking for some code that manages disects the data provided to generate information that is of benefit to the debugging team.

View 16 Replies

Multi-threaded Code Examples?

Aug 10, 2011

I'm trying to teach myself how to create multi-threaded applications in Visual Basic Express 2008. I found a page headed "Creating Threads and Passing Data at Start Time" in the Library here -

[url]

However, I can't get any of the examples on that page to run. I pasted the code from an example into a new Project in my IDE but pressing F5 just gives me build errors which I have no idea how to resolve. It's probably something trivial but I can't progress with these examples. Please can somebody tell me what I need to add to get them to run

View 1 Replies

Simple C# Or .NET Examples To Read A File From UNC?

Aug 25, 2009

how to fix the exception that occurs when an .EXE file is run from the the Network Share. This application works fine when running from the local machine. I have been trying a lot to fix this issue for a while, but without any success.

Here is the simple code I am trying to test :

string AssessmentFilePath = @"\abce.com
ootmditdevelopment estfile est.xml";
INetworkFileShareReader reader = new NetworkFileShareReader();
XPathDocument document = reader.GetAssessmentFileFromVendor(AssessmentFilePath);

[code]....

View 2 Replies

C# - MVVM ViewModel Default Constructor?

May 25, 2011

I have been getting up to speed with the MVVM pattern in Silverlight and was wondering how to implement binding from the View to the ViewModel when the ViewModel constructor has a parameter if an interface type.If I bind the viewmodel to the view in XAML then you can not use a parameterised constructor. Given that I was creating a default constructor passing an instance to the parameterised constructor but this breaks the abstraction.

View
<navigation:Page x:Class="QSmart.DataViewer.Report.RecentFailures.Report"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

[code]....

Is it recommended to use the code behind of the view to pass into the parameterised constructor and then bind to the viewmodel?

View 1 Replies

Implement A Constructor In MVVM Unity?

Feb 28, 2012

I have just started using MVVM design pattern with unity and I'm strugling to work out how you add a constructor.my code currently works if I comment out my constructor that requires input the view gets added to the shell.

Protected Overrides Sub ConfigureModuleCatalog()
MyBase.ConfigureModuleCatalog()
Dim moduleCatalog As ModuleCatalog = CType(Me.ModuleCatalog, ModuleCatalog)
moduleCatalog.AddModule(GetType(GridModule))
End Sub

how do I pass in variables into my GridModule ?

View 5 Replies

Way To Requery CanExecute In Silverlight MVVM?

Mar 22, 2011

I have a simple LoginForm.Here is how the code-behind looks like:

Private Sub btnLogin_Click(sender As Object, e As RoutedEventArgs) _
Handles btnLogin.Click
If Me.loginForm.ValidateItem() Then

[code].....

View 1 Replies

WP7 MVVM - Call Me.setfocus() From The ViewModel?

Apr 15, 2012

I'm attempting to improve my MVVM abilities in my next WP7 App (which is written in Vb.NET). I have a textbox that has been given focus and has a WP7 keyboard displayed. I am using command binding and a xyzzer's bindable Application bar (which is excellent).[URL] I want to be able to cancel the focus of the TextBox from the ViewModel, by setting focus on the form. Normally (Non MVVM) I would do this from within the form by calling:

[Code]...

View 3 Replies

Wpf - Bind A DataGridComboBoxColumn To EntityFramework Using MVVM?

Feb 16, 2012

I'm trying to get a DataGridComboBoxColumn working with my ViewModel. Everything appears to work correctly but when I change the value of the combo box, the entity isn't changed. The datacontext of the window has these properties:

[Code]...

View 4 Replies

.net - School Assignment: Examples Of Different Types Of Applications?

Nov 18, 2010

I'm a student taking a beginner computer programming course. My teacher told me to use this website if I have any questions. The lesson I have just studied is about the different types of applications in VB.NET. My assignment asks me to "Give at least five examples of each type of application." I'm supposed to do a web search to find these. The different types of applications I'm supposed to find examples for are: Console, Window, Web, Class Library, Control Library, and Smart Device. Then I'm supposed to provide a description or a screen shot of each example.

I hope my question isn't considered too simple for this forum, but I don't know what else to do! I've spent a long time trying to search for examples myself and I can't seem to find anything.

View 1 Replies

Good Examples Of Application Talking To MySQL?

Jul 11, 2011

I hope someone can help. I was "volunteered" to come up with an application for a local charity group. What they are looking for is a system that will track[code]...

They picked me to help as I have done some computer work and for them that means I'm an expert.What they want is for me to use a Visual Basic front-end talking to MySQL. I know enough to realize that most systems DON'T work out first time and the chances are even less if that person (Me) has not much experience.

View 1 Replies

Good Examples Of Using Microsoft Chart Controls?

Apr 22, 2010

Anyone got any good examples of using the Microsoft Chart Controls?

What I'm trying to do is use a line graph. What I'm trying to do is graph stock prices. I have the date of each day for the past year in a list of strings called stock_date, and the closing price in another list of strings called close.

How do you get the stock_date to be on the x-axis, and the close price on the y_axis[code]...

View 2 Replies

Multilingual - Good Examples Of Support Different Languages

Jun 18, 2010

Trying find some good examples of support different languages in VB.NET. I've read sites on System.Globalization and resource files but none explain fully how to implement them in my application.

What happens to the form title, msgbox strings etc. How do I make these multilingual?

View 2 Replies

Proper Coded Examples Of MVC 3 Error Handling

Oct 5, 2011

I'm coming from the Winforms world where I trapped everything and handled errors with messages to the user with MessageBox.Show(ex.message) or just logged it.Now I'm in the web (MVC 3) world and I can't seem to find a definitive coded example of how to employ proper error handling. Let me show you what I'm using:

User clicks on a link which runs a controller action:

[Code]...

Then it falls to the catch block, and then routes to the HttpError action.. Twice! and then my Error.aspx view never opens, instead I get either no JSON result or a 500 internal server error... makes not a lick of sense to me. Basically, I don't know what I'm doing.

View 1 Replies

.net - Pieces Required For A Usable MVVM Framework?

Sep 17, 2010

As my company migrates towards the .NET framework from VB6, it looks like we are going in the direction of WPF (my boss is in love with the Office-style Ribbon control). I've been working to mock one of our VB6 applications in WPF and decided to experiment with MVVM at the same time. I'm being discouraged from using an existing MVVM framework, so I guess I need to write my own. The biggest concern right now seems to be a method for registering and managing all my views from a central spot - a manager class - but I'm not exactly sure how to implement this.

View 4 Replies

Implement Extensive Data-Validation In MVVM?

Jul 14, 2011

Possible Duplicate:How can I handle a Validation.Error in my ViewModel instead of my View's code behind?The usual examples of how to use Data-Validation in WPF usually only involves defining an error template for the control and displaying the error message in the control tooltip. What I want to do is to create a collection of all ValidationErrors, display it in an ItemsControl to the user and focus the invalid control when the user clicks on the associated (error) item in the ItemsControl.

View 2 Replies

Wpf - Bind To SelectedItems From DataGrid Or ListBox In MVVM

Mar 26, 2012

SEE MY ANSWER AT THE BOTTOM Just doing some light reading on WPF where I need to bind the selectedItems from a DataGrid but I am unable to come up with anything tangible. I just need the selected objects.

[Code]...

View 3 Replies

Data Logging / Graph And Analog Input Examples

Jul 4, 2011

I want to write my own Datalogging example. But need some simple examples to start from.

View 2 Replies

.net - Call Winforms-style Invoke/Delegate From MVVM?

Oct 12, 2010

I'm hacking away at some code which seems to have been started, at least in theory, as an MVVM project in Expression Blend, by my predecessor at this company.

I've got a thread running in the background, which is running some operations on items as they happen. In order to prevent any clashes, I've also got that thread running any operations my users call for.

Once those operations are completed, I'd like to bring up a MessageBox to give a summary of the user-initiated operations, but now that they're running off in their own thread, the finishedProcessing event handler is now running on the background thread instead of the interface thread and it's causing my MessageBoxes to appear non-modally.

Back in the WinForms days, I'd have handled that using InvokeRequired, Invoke and a Delegate. I've read that this has been replaced by something called "Dispatcher", but the ViewModel class I'm using doesn't seem to have a Dispatcher object.

The "thisViewModel" class I'm using inherits a class called "WorkspaceViewModel", which inherits "ViewModelBase", both of which look generated to me...

where I can link up to this "Dispatcher" from here?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved