| |
browse.develop.com
Browse.develop.com is a community that was established to collect and
organize valuable web information. Our technical staff have selected and
indexed information and courses that they feel will help you stay
current on best practices across the SDLC.
|
56 Articles match "Windows"
See all articles with
"Windows"
| The Latest from Mark's Blog of Random Thoughts | MORE | | Replacing Services in MVVM Helpers ll start with a brand-new WPF application and add MVVMHelpers through NuGet – a new service from Microsoft for adding dependencies easily: Next, let’s add a single button and a TextBlock to the window, in two equally spaced rows – binding the first to a command called “CalculatePi” and the second to some text “PiText”. One of the key features in any good library is to provide a wide set of services for applications to use, but also some level of flexibility to replace those services when the built-in implementation aren’t what is needed. and provided on [link] for.NET 3.5. Happy Coding! Mark's Blog of Random Thoughts - Wednesday, March 9, 2011 Using the Message Mediator Service in MVVM Helpers set this view model as the DataContext for the window in XAML and data bound the properties of the TextBox to the View Model properties: <Window x:Class= "MessageMediatorExamples.MainWindow". FontSize= "{Binding FontSize}" /> Running the application produces the expected results: Next, I added two more windows to the project – one to hold fonts and the other to hold colors. For the second (font) window, we’ll use the attribute syntax – this involves adding a [MessageMediatorTarget] attribute to the target method: [MessageMediatorTarget(ViewMessages.ChangeFonts)]. Mark's Blog of Random Thoughts - Tuesday, February 22, 2011 MVVM Helpers 2.0 is live To hook up a ViewModel to it you use the ViewModelCreator markup extension, in prior versions of the library you supplied the type to create (and optionally the designer type): < Window x : Class ="WpfMvvmApplication1.Views.MainWindow". If you add this, the type (if supplied) will be ignored: < Window x : Class ="WpfMvvmApplication1.Views.MainWindow". Recall from prior posts that it is responsible for creating new popup windows (either modal or modaless) inside the VM – to display child dialogs for example. public partial class ChildWindow : Window. {. Mark's Blog of Random Thoughts - Friday, April 16, 2010 | | The Best from Mark's Blog of Random Thoughts | MORE | | WPF MVVM Helper Library (WPF + MVVM = testability) < Window x : Class ="TestMvvm.MainWindow". Everything is driven off ICommand - you can bind commands to the lifetime of the view (so you can detect activation, deactivation, loading, closing) through the LifetimeEvents attached behavior: < Window x : Class ="TestMvvm.MainWindow". You then get the window to display through the IUIVisualizer interface: LoginViewData ld = new LoginViewData(); IUIVisualizer uiController = ServiceProvider.Resolve. (); if ( uiController.ShowDialog( Dialogs.NewLogon , ld ). The completed procedure is invoked when/if the window ever closes. Mark's Blog of Random Thoughts - Friday, April 17, 2009 WPF Data Providers < Window Title = " AsyncDataBind " Height = " 300 " Width = " 300 ". One of the nifty new features of the WPF platform is the pluggable data providers. It ships with two out of the box: ObjectDataProvider: allows you to execute binding expressions against an object and it's methods. XmlDataProvider: loads an XML data source and makes it available as a binding source. Both of these derive from the abstract class System.Data.DataSourceProvider which implements the binding glue ( INotifyPropertyChanged ) needed for data binding. State, Age, Income. xmlns = " [link] ". Until then. Mark's Blog of Random Thoughts - Wednesday, January 17, 2007 Part 3: Shifting focus to the first available element in WPF The first page looks like this: The XAML layout for window1.xaml looks something like this: <TabControl x:Name="Pages" SelectedIndex="0"> What I want is to have focus immediately positioned within the first text box but it turns out that you can't get WPF to do this directly from XAML - because the TextBox isn't a direct descendent of Window - it's part of the Page1 user control. You can try putting the focus shift into the user control but it turns out that it won't work there either - it's got to be assigned to the focus scope which is the window. but all is not lost! Mark's Blog of Random Thoughts - Friday, September 12, 2008 | - MVVM: Views and ViewModels
Copy the project template into your Visual Studio 2008 templates directory located off your user documents - mine is at %UserProfile%DocumentsVisual Studio 2008TemplatesProjectTemplatesVisual C#Windows. In this case, the TotalFiles and TotalFileSize gets displayed in the StatusBar of the window when the directory has files. In the previous post, I provided a link to the project template you can use to start a new MVVM project using the JulMar MVVM library. Here's the two links in case you didn't get them before: MVVM Helpers Distribution. Project Template. Dependencies. Views. - Part 2: Changing WPF focus in code
First, you can always determine which element has logical focus in your application through the FocusManager.GetFocusedElement method -- pass it the window in question and it will return which element has logical focus in that window. <Window xmlns="[link]. Under the covers it actually uses the KeyboardNavigation class, but it's an easy way to push focus around the window: firstTextBox.MoveFocus(. The key to remember is that the FocusedElement of the main focus scope (the Window) is the one that will get initial focus. Remember that logical focus != Cycle. Mark's Blog of Random Thoughts - Thursday, September 4, 2008 - Part 2: Changing WPF focus in code
First, you can always determine which element has logical focus in your application through the FocusManager.GetFocusedElement method -- pass it the window in question and it will return which element has logical focus in that window. <Window xmlns="[link]. Under the covers it actually uses the KeyboardNavigation class, but it's an easy way to push focus around the window: firstTextBox.MoveFocus(. The key to remember is that the FocusedElement of the main focus scope (the Window) is the one that will get initial focus. Remember that logical focus != Cycle. Mark's Blog of Random Thoughts - Thursday, September 4, 2008 - Part 3: Shifting focus to the first available element in WPF
The first page looks like this: The XAML layout for window1.xaml looks something like this: <TabControl x:Name="Pages" SelectedIndex="0"> What I want is to have focus immediately positioned within the first text box but it turns out that you can't get WPF to do this directly from XAML - because the TextBox isn't a direct descendent of Window - it's part of the Page1 user control. You can try putting the focus shift into the user control but it turns out that it won't work there either - it's got to be assigned to the focus scope which is the window. but all is not lost! - Using the Message Mediator Service in MVVM Helpers
set this view model as the DataContext for the window in XAML and data bound the properties of the TextBox to the View Model properties: <Window x:Class= "MessageMediatorExamples.MainWindow". FontSize= "{Binding FontSize}" /> Running the application produces the expected results: Next, I added two more windows to the project – one to hold fonts and the other to hold colors. For the second (font) window, we’ll use the attribute syntax – this involves adding a [MessageMediatorTarget] attribute to the target method: [MessageMediatorTarget(ViewMessages.ChangeFonts)]. - Replacing Services in MVVM Helpers
ll start with a brand-new WPF application and add MVVMHelpers through NuGet – a new service from Microsoft for adding dependencies easily: Next, let’s add a single button and a TextBlock to the window, in two equally spaced rows – binding the first to a command called “CalculatePi” and the second to some text “PiText”. One of the key features in any good library is to provide a wide set of services for applications to use, but also some level of flexibility to replace those services when the built-in implementation aren’t what is needed. and provided on [link] for.NET 3.5. Happy Coding! - Handling "Unhandled Exceptions" in.NET 2.0
For Windows Forms applications, things are a little different -- instead of the AppDomain.UnhandledException event being raised, the Windows Forms infrastructure will raise the Application.ThreadException event for exceptions that occur on the primary thread. Having two handlers can be a pain and if you want to have the application terminate on any unhandled exception, you can direct Windows Forms to not catch primary thread exceptions automatically by using the Application.SetUnhandledExceptionBehavior method: [. application ported to.NET 2.0 Under.NET 1.1, Under.NET 2.0, %>
486 Articles match "Windows"
See all articles with
"Windows"
| The Latest from DevelopMentor | MORE | | Installing MongoDB on Windows and OS X Here are two 7-minute walkthroughs for installing MongoDB as a Windows service / OS X daemon. Windows: OS X: Feedback welcome. 'Ready to get started with NoSQL and MongoDB? These are both excepts from my upcoming online MongoDB course for DevelopMentor. You can take the first 1 1/2 hours for free here: Early access: MongoDB and NoSQL for.NET developers. cheers. mkennedy. Filed under: NoSQL Tagged: LearningLine , NoSQL , Open Source , Screencasts. NoSQL LearningLine Open Source Screencasts Michael C. Kennedy's Weblog - Thursday, May 2, 2013 A Roundup of MongoDB Management Tools Robomongo, price: $0 / open-source, platforms: Windows, OS X, Linux. The shell , price: $0 / open-source, platforms: Windows, OS X, Linux. Mongovue , price: $0 / $35 / $up, platforms: Windows. MongoVUE is an innovative MongoDB desktop application for Windows OS that gives you an elegant and highly usable GUI interface to work with MongoDB. LINQPad, , price: $0 / $39, platforms: Windows. REST view, price: $0 / open-source, platforms: Windows, OS X, Linux. Genghis, price: $0 / open-source, platforms: Windows, OS X, Linux. The news is good. link]. Michael C. Kennedy's Weblog - Monday, April 22, 2013 The Architecture of WCF Over the lifetime of Windows there have been many technologies to achieve this: sockets, DCOM, MSMQ,NET Remoting, ASMX Web Services and more. You can either create the ServiceHost instance yourself and call Open on it (known as self hosting) or you can get the Windows Process Activation Service to do this (formally known as WAS hosting). 'Before WCF it was, of course, possible for software running on different machines to communicate. The problem is all of these have different APIs and different levels of capability. Messages. Channels. WCF, as of 4.5, Encoders. Contracts. DevelopMentor Courses - Sunday, April 7, 2013 | -
| The Best from DevelopMentor | MORE | - Using Windows 7 Search to delete ‘obj’ folders
One easy way is to use Windows 7 Search to look for all the ‘obj’ folders and just delete them manually. For a complete overview of the Windows 7 Search syntax go to: [link]. Tags: Windows 7 Visual Studio will create ‘obj’ folders within your solution to store a bunch of temporary files. You can remove these files in a number of ways. To do this I use the ‘kind’ keyword in the query box. Tip: Just typing ‘kind:’ will give you a list of choices to choose from. The Blomsma Code - Tuesday, February 9, 2010 - Unblocking assemblies in Windows 7
I just ran into a little problem when attempting to run a Visual Studio unit test on my Windows 7 machine. Tags: NET C# Windows 7 downloaded log4net.dll and wanted to use it in a project, but when running the unit test I ran into the following error: Failed to queue test run 'Mark@L-ONE 2009-10-11 14:08:38': Test Run deployment issue: The location of the file or directory 'c:usersmarkdocumentsvisual studio 2008projectssourcesdevelopone.myproject.unittestsbindebuglog4net.dll' is not trusted. Turns out that a downloaded file is blocked. The Blomsma Code - Sunday, October 11, 2009 - Have to learn Japanese
Tags: Windows Live The Blomsma Code - Tuesday, December 1, 2009 - Playing around with Windows Live Sync 2011 beta
I have been an avid user of Mesh and was so pleased with the beta that I was hesitant to switch to Windows Live Sync 2011 beta. You may want to check with you IT guy to see how he feels about the security risks, but for me this works really well (I do make sure that my Windows Live, Facebook and Google passwords are all different!). Tags: Windows Live But since the Mesh page started saying that the service is to be replaced I figured I ‘d better get my machines switched over. For those who don’t know: Live Sync allows you to synchronize folders between devices. The Blomsma Code - Sunday, September 12, 2010 - Just took a walk around Fenway – using Bing Maps
Tags: Windows Live The Blomsma Code - Wednesday, December 2, 2009 %>
| | |