WPF App Local in WPF vNext

I came across this article today, thought some people here would probably be interested.
http://www.infoq.com/news/2015/04/WPF-App-Local
In WPF vNext, the plan is to offer an “App Local” version of WPF via NuGet. This is essentially the same distribution plan currently used by ASP.NET MVC. Key features include:
Each application ships with its own version of WPF
Similar, and often much better, performance characteristics
Built on top of .NET Framework for Desktop, not necessarily .NET Core
Highly compatible with the inbox version
Self contained install. Yum.
(Much) better performance. Yum.
New templates could be good as well,  some of the hard coded aspects of win8 templates are annoying.
Hope that helps.
Technet articles: Uneventful MVVM;
All my Technet Articles

You shouldn't rely on the user creating files in a folder structure in program files. Amongst other issues you will find most users don't have rights to create new files there.
You should be using appdata.
I recommend a folder with the same name as the namespace of your application.
I get that name like this:
public static class AppData
public static string Location = Path.Combine(Environment.GetFolderPath(
Environment.SpecialFolder.ApplicationData),
System.Reflection.Assembly.GetExecutingAssembly().EntryPoint.DeclaringType.Namespace);
Usage
private void Application_Exit(object sender, ExitEventArgs e)
var fileName = Path.Combine(AppData.Location, "FontDetails.xml");
if (!Directory.Exists(AppData.Location))
Directory.CreateDirectory(AppData.Location);
FontDetails fd = Application.Current.Resources["FontDetails"] as FontDetails;
DataContractSerializer ser = new DataContractSerializer(typeof(FontDetails));
var xmlSettings = new XmlWriterSettings { Indent = true, IndentChars = "\t" };
using (var writer = XmlWriter.Create(fileName, xmlSettings))
ser.WriteObject(writer, fd);
This sample uses that approach:
https://gallery.technet.microsoft.com/WPF-Dynamic-Fonts-ad3741ca
Hope that helps.
Technet articles: Uneventful MVVM;
All my Technet Articles

Similar Messages

  • How to install B2B Apps locally - Pre Dev settings -setup dev environment

    Hi All
    Need your help: to customize CRM WebChannel B2B App, I just installed NW developer workspace.  The next step I guess is to setup / install B2B Apps locally on my pc. Can some one guide me how to? Any documentation / advise about how to setup development environment?
    Thank you very much in advance, Jin

    Hello Jin,
    1. NetWeaver Java Application Server
    Do you already have the SAP NW Java Application server? (J2EE server) if not get that from Service Market Place /swdc.
    Download --> SAP Installations and Upgrades --> Entry by Application
    Group  --> SAP NetWeaver --> SAP NETWEAVER
    and install the Developer Edition of the version of your choice. You may need to get them from Solution Manager or seek your Basis team's help
    2 Deploy E-Commerce application components and configure
    After this installation of NW Java AS developer edition, you can deploy the E-Commerce Java applications. The SCA files required are listed in the enhancement guide. They include files required in step 4 also. You can find them here in /swdc
    Support Packages and Patches --> SAP Application Components --> SAP CRM --> SAP CRM 2007 --> Entry by Component --> CRM Application Server Java
    You may need to get them from Solution Manager or seek your Basis team's help
    3 Install NWDS (if not already done)
    It is possible it is already done as a part of the NW Developer Workplace installation.
    4 Setup enhancement project
    Use the existing NWDI and import the tracks locally to your PC / laptop for making enhancements. Refer: Extension Guide and other documents to create tracks in NWDI.

  • Mail.app : locally store mails for a given period, leave the rest in gmail

    Hi all,
    My hard drive is filling up at the speed of light.
    In order to free some space, I have moved all music and videos on a NAS.
    I wish I could save some more space by leaving my older mails in the cloud, and just store locally in the mail app a given number of mails, or a given period, or a given space allocation.
    Is there a way to implement any of those solutions?
    Regards,
    Yann

    You are presumably using IMAP for gmail.  Have you seen the Mail > Preferences > Accounts > Gmail > Advanced setting choices for Keep copies of messages for offline viewing?
    All messages and their attachments
    All messages, but omit attachments
    Only messages I've read
    Don't keep copies of any messages
    The first choice is the default.  As long as you always have a good network connection, you could select the last choice.  This wouldn't not be as nice as a time-based setting.
    Keep in mind how cheap hard disks are.  I spent $60 for a 500GB 7200rpm drive for my old MacBook.

  • Need an experienced coder to write iPhone app locally-KC

    I am looking for an experienced coder to write an iPhone app. here in K.C. MO. I am starting to think that they don't exist. Extremely hard to find. Are most of you developers in business for yourself or working for a company? Just wondering. And you KC peeps-post back and we'll talk.

    I really have mixed feelings about your post here.
    On one hand, I think it violates the spirit, if not the letter, of the Apple Discussions Terms of Use. I thought about reporting it, but didn't. Then I thought about posting a clarification question on the Feedback forum, but didn't.
    It is definitely a grey area. There are lots of new iPhone programmers here and they may need work. If people start posting job ads here that means that people are noticing and are coming to Apple to recruit programmers. Programmers coming here looking for a job ad might also contribute questions and/or answers.
    How come Apple's most frivolous device is also the most profitable and the only one to ever get any corporate attention and respect? But I digress.
    I do not think this is good venue for finding a programmer in Kansas City. I know of at least 2 large universities in the area with any number of computer science students who would be thrilled to get some iPhone experience. Get in contact with the career development offices of those universities. If you want someone experienced, they are more likely to be older and more likely to read the local paper. <hint, hint> If you want an experienced iPhone programmer, that will be easier still. Put an ad in SF, BOS, NYC, or Denver Craigslist and offer $250K and a free house. You think I'm joking
    Oh, and by the way, sometimes I troll SF, BOS, NYC, and Denver Craigslist and flag any non-local jobs as "miscategoried"

  • Muse export HTML to use as Android APP ( local host kiosk)

    I was wondering how to load my exported HTML site folder onto an Android device to play as Native web style APP from start screen.
    I do not want to run kiosk mode screen locking programs using  web hosted data.
    I need fast screen load from loading directly from local hosted site.
    THX

    are you asking a question or did you just post a tutorial here? you might want to post it as a blog post or wiki entry instead.

  • Adding security principles for metro app local data

    I accidently replaced all security principles on my user folder. Now my metro apps are not opening as I replaced security principles of their local data folder located at %UserProfile%\AppData\Local\Packages. How can I reset these security principles.
    Note:
    Adding "ALL APPLICATION PACKAGES" to security principles is working. But I want to replace it with individual metro app id for security reasons.
    What are needed:
    1-> individual App's uid 
    2-> adding to folder using powershell or cmd as GUI may not work.
    See image for clarity.
    Thank You

    Hi,
    Generally speaking, system restore would be an efficient method to resolve this problem, please have a try.
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Can the BC API be used to connect/synch directly to a iPhone App (app local database)?

    Hi Guys,
    I'm just starting a project in collaboration with an iPhone App developer, they're building an app where a user will input survey data which is saved to a database within the app, then when the phone has a connection, the data is uploaded to a database. I want to use BC and extend the CRM to store the data captured from the app against a customer/case record, which will subsequently be displayed and modified by admin staff through a web front end. If necessary I'll use a Web App for part of this functionality.
    I know the BC Web Services API can connect to an external database, but before designing a solution that requires building an external database to store the iPhone app data just so that BC can connect to it, can you tell me whether it's possible for the BC Web Services API to connect directly with an iPhone App (with integrated database)?
    Totally new territory for me, so any answer to my question, or other help, tips and advice will be greatly appreciated.
    Regards, Mark.

    Many thanks for your helpful feedback TheBCMan, that's very clear. The more I've researched this, the more roadblocks appear and the more it appears BC is not going to work for this project, which is a shame as some of the other BC features are perfect for the project as a whole. However, before giving up, can I run the points below by you to validate or disprove any of my current understanding?
    I understand I will need to stand up an external db/app to synch with the iPhone app to save the customer survey data, and I understand I will then be able to connect the external db/app to the BC API and pull the survey data into a extended CRM form.
    However, once the data is in BC, I cannot work out a way where I could edit that CRM form data with it's assigned to a Case? That is, I understand it's possible to display/edit CRM form data assigned to a 'contact' of a customer record, but the problem here is I can only access the data to edit it when logged on as that customer. But this is data a staff member will access (customers will not be able to access it) and staff will not have access to the customers login credentials. So it's not feasible to assign the CRM data at the Contact level, agree/disagree?
    If I set up one staff member as a customer (so one unique login) and save all the (potentially hundreds) of survey data CRM forms as individual 'Cases', but as I understand it, whereas this overcomes the customer logn issue, I won't be able to add a web form to a page to edit the survey data CRM form, because it's assigned to a Case, not a Contact in this scenario, agree/disagree?. (This is the approach I really hoped would work out)
    And as you said, I can't use a Web App, which would overcome both of the issues above, because I can't access a Web App from the BC API. 
    So, in conclusion, these appear to be no way around these roadblocks, unless you can tell me otherwise?
    Thanks again for your help.
    Regards, Mark.

  • The new Yosemite Photos app local storage usage question

    Hi,
    Did anyone check the local storage usage for the new Photos on Yosemite?
    How much space does it take for all the lores photos locally if the originals are stored in iCloud.
    Lets say if 100GB of RAW files are migrated from Aperture in to Photos to cloud. This should be 100GB in the cloud and how much on OS X?
    Can a RAW file still be downloaded from cloud later or are they transformed to jpgs once uploaded?
    What if there is not enough storage for all lores photos on iOS or OS X representing all the original iCloud photos?
    I'm really puzzled about this.
    Thanks

    I just installed the Yosemite upgrade with Photos.  I don't use Aperture of the iCloud, but the iPhotos library migrated with about the same disk space, but it is doubled, because the old iPhoto library is still on disk.

  • Must Flex develop a PHP app locally first?

    When developing an application in Flash Builder 4 that uses PHP/MySQL ( Zend ) ..  must it first be developed locally - on a local server ( Xamp,Wamp, etc..) before being used to access a remote server ( php/mysql ) ?
    The initial setup will not accept any Remote Parameters.
    What should the following be ( I realize they will be slightly different for each linux server:
    Web Root:
    Root URL:
    I get the following errors:
    1/ Cannot access the web server. The server may not be running, or the web root folder or root URL may be invalid.
    2/ The selected web root folder does not exist.
    I know the server is running.
    I have tried numerous configurations and explored many threads on here and see a lot of unanswered questions like this.
    I have also seen examples that are outdated and the screen shots do not look like Flash Builder 4
    Any links to current examples or a direct answer, would be great!

    Thanks for your time pauland. I appreciate you editing your comment and outlining the specific steps. You've restored my faith in forums.
    I do think you are right in that there are 3 separate technologies working together and it's hard for someone like me to understand how they work together. That would be a great overview video for beginners.
    Thanks again and take care. 

  • Hosting Fiori wave 2 apps locally

    Hi,
    It seems wave 2 applications no longer have an index.html file and rely on scaffolding from the Fiori Launchpad to launch the Component.js directly.
    For development/testing I'd like to host one locally using Tomcat. Has anyone tried this? I am reading about the Fiori Sandbox but it looks like you still need an index.html.
    Thanks,
    Gregor
    Tags edited by: Michael Appleby

    Hi,
    I haven't tried it, but from documentation it seems that the sandbox provides a shell (fioriSandbox.html) for the component in /test-resources/sap/ushell/shells/sandbox/fioriSandbox.html.
    https://help.sap.com/saphelp_uiaddon10/helpdata/en/08/0788ad9cf849e399e85600dedbcc4f/content.htm?frameset=/en/89/6efc419d994463a7c148b6904760a8/frameset.htm&current_toc=/en/e4/843b8c3d05411c83f58033bac7f072/plain.htm&node_id=820
    Regards,
    Jason

  • "deploying apps locally"

    Hello... Does anybody know how to deploy applications locally. I am following the help in JDev32 but I keep getting a "cant find the main" error from jre.

    connect.properties... not connections.properties? And it's not getting into your JAR? Hmmm....
    From docs:
    The filesystem location for the connection descriptor definition information is
    JDeveloper/bin/IDEConnections.properties
    where JDeveloper is the root directory in which JDeveloper is installed.
    You can also set an environment variable to point to an alternate file for your global connection descriptor definition information. The environment variable is jdeveloper_connections.
    If multiple users are pointing to the same IDEConnections.properties (or any other named) file, any connection descriptor property change to that file affects that connection for all of those users. Use care when updating connection descriptors in a shared connection descriptor definition file.
    Connection Properties Deployment
    A connection.properties file is included with JDeveloper deployments. This file contains the connection information necessary for deployment and the runtime connection execution.
    The Include password in deployment archive checkbox in the Connection Editor determines whether the password is included in the deployed connection.properties file. Select the checkbox to add the password information to the deployed connection.properties file. If Include password in deployment archive was not selected for the deployed connection, a runtime user of that connection must enter a valid username and password for the connection.
    null

  • Not able to debug Provider Hosted App in local (Deployed in Azure and Hosted in Office 365)

    I have Provider Hosted App - Deployed in Azure and Hosted in Office 365. 
    Deployed successfully on azure after attaching publishing profile of azure.
    Now I wish to debug app in local?

    Hi,
    According to your post, my understanding is that you want to debug SharePoint provider hosted app in local.
    Per the previous thread, to debug SharePoint provider hosted app in local, we should configure S2S authentication.
    You can follow the article below to build the high trust app, then you can debug the app locally.
    http://blog.karstein-consulting.com/2013/01/08/create-provider-hosted-high-trust-app-for-sharepoint-2013-short-guide/
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Windows Store apps on Windows Server 2012 with XenApp?

    We've got asked by a vendor whether our app will be able to support multiple simultaneous users, when installed on Windows Server 2012 and accessed via XenApp.
    I suppose the real question here is whether or not Windows Store apps can be run in XenApp over Windows Server 2012 at all, and if so whether there are any special requirements on the apps to support multiple simultaneous instances execution.
    The app itself takes each user through a log in procedure, during which all the dynamic user-specific data is retrieved from the back-end server; no such data is stored by the app locally.
    Any advice will be greatly appreciated!
    Thank you,
    Alex

    Hi,
    To better help you, the Citrix support could be more helpful on your questions:
    http://support.citrix.com/search?searchQuery=*&lang=en&sort=date_desc&prod=XenApp&pver=
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.  Thank you for your understanding.
    As I known, we always use Remoteapp feature to share app, but it is only worked for desktop app:
    Publishing RemoteApps in Windows Server 2012
    http://social.technet.microsoft.com/wiki/contents/articles/10817.publishing-remoteapps-in-windows-server-2012.aspx
    About citrix product, I knew little about it.
    Kate Li
    TechNet Community Support

  • APP-FND-00500: AFPPRN received a return code of failure from routine FDUPRN

    Hi All,
    i have configured a printer in R12.1.3, when i am trying to print its giving below error...
    please help..
    lp: The printer or class was not found.
    Pasta: Error: Print failed. Command=lp -c -dHP_P4014N /apps/local/inst/apps/UAT_server/appltmp/pasta9331_0.tmp
    Pasta: Error: Check printCommand/ntPrintCommand in pasta.cfg
    Pasta: Error: Preprocess or Print command failed!!!
    APP-FND-00500: AFPPRN received a return code of failure from routine FDUPRN. Program exited with status 1
    Cause: AFPPRN received a return code of failure from the OSD routine FDUPRN. Program exited with status 1.
    Action: Review your concurrent request log file for more detailed information.
    Thanks
    RB

    And found this Exception also... in the diagnostic output.
    EXCEPTION - One or more versions were missing. caught in 'FNDPastaDiag.retrieveSupportFiles'
    java.lang.IllegalArgumentException: One or more versions were missing.
    at oracle.apps.jtf.regress.qatool.base.TextUtility.compareVersions(TextUtility.java:650)
    at oracle.apps.fnd.diagnose.FNDPastaDiag.retrieveSupportFiles(FNDPastaDiag.java:1486)
    at oracle.apps.fnd.diagnose.FNDPastaDiag.runSupportTest(FNDPastaDiag.java:556)
    at oracle.apps.jtf.regress.qatool.base.DiagBase.runTest(DiagBase.java:373)
    at oracle.apps.fnd.oam.diagnostics.exec.LegacyJavaTestExecution.runTest(LegacyJavaTestExecution.java:147)
    at oracle.apps.fnd.oam.diagnostics.exec.LegacyJavaTestExecution.execute(LegacyJavaTestExecution.java:83)
    at oracle.apps.fnd.oam.diagnostics.exec.WorkerThread.run(WorkerThread.java:49)
    at java.lang.Thread.run(Thread.java:619)
    ACTION - Please log an iTAR (Service Request) for product "Support Diagnostics Project" (ID=1332) to notify support about this issue
    Thx
    RB

  • What's the easiest way to move app data and data structures to a server?

    Hi guys,
    I've been developing my app locally with Apex 4.2 and Oracle 11g XE on Windows 7. It's getting close to the time to move the app to an Oracle Apex server. I imagine Export/Import is the way to move the app. But what about the app tables and data (those tables/data like "customer" and "account" created specifically for the app)? I've been using a data modeling tool, so I can run a DDL script to create the data structures on the server. What is the easiest way to move the app data to the server? Is there a way to move both structures and data in one process?
    Thanks,
    Kim

    There's probably another way to get here, but, in SQL Developer, on the tree navigation, expand the objects down to your table, right click, then click EXPORT.. there you will see all the options. This is a tedious process and it sucks IMO, but yeah, it works. It sucks mostly because 1) it's one table at a time, 2) if your data model is robust and has constraints, and sequences and triggers, then you'll have to disable them all for the insert, and hope that you can re-enable constraints, etc without a glitch (good luck, unless you have only a handful of tables)
    I prefer using the oracle command line EXP to export an entire schema, then on the target server I use IMP to import the schema. That way, it's near exact. This makes life messy if you develop more than one application in a single schema, and I've felt that pain -- however -- it's a whole lot easier to drop tables and other objects than it is to create them! (thus, even if the process of EXP/IMP moved more than you wanted to "move".. just blow away what you don't want on the target after the fact..)
    You could use oracle's datapump method too.
    Alternatively, what can be done, IF you have access to both servers from your SQL developer instance (or if you can tnsping them both already from the command line, you can use SQL*PLUS), is run a script that will identify your apex apps' objects (usually by prefix to object names, like EBA_PROJ_%, etc) and do all the manual work for you. I've created a script that does exactly this so that I can move data from dev to prod servers over a dblink. It's tricky because of the order that must be executed to disable constraints and then re-enable them, and of course, trickier if you don't consistently prefix ALL of your "application objects"... (tables, views, triggers, sequences, functions, procs, indexes, etc)

Maybe you are looking for

  • ORA-27300 during night hours, restart database needed

    Hi, Last year we upgraded a small database system on several systems from Oracle 8.0.6 to Oracle XE. We installed XE, dropped the XE database and created a new one with standard scripts. (We didn't need APEX) Next we imported the data of the old data

  • Oracle Forms 9i Download Link Or Sample .fmb Required

    Hi all, I am trying to build a demo to see how to migrate Forms application to 11g using Migration Assistant. For me to achieve this I need a sample .fmb (let it be a very simple one) created using Forms Developer 9i. I am unable to find download lin

  • Installed 10.5.4 and can't launch iSync

    Following installation I've just launched iSync and get a dialogue box with the message: "*iSync can't be launched* SyncServices: Can't connect to the sync server: NSInvalidReceivePortException: connection went invalid while waiting for a reply ((nul

  • Trial adobe illustrator

    I downloaded adobe cs6 trial a few days ago. Today I downloaded adobe illustrator but cannot find how to open it. I downloaded onto a flash drive. It seemed to extract and install onto windows but I cannot find where to open it. There is still the ps

  • HP Envy replacing HDD and warranty conditions

    Hi there, I have an HP Envy 3012tx, I am looking to replace the hard drive that is in the laptop in the moment, however I have had some issues with the laptop so I want to ensure that this will not void my warranty. Can someone please confirm that th