SYNTAX HIGHLIGHTER

Saturday, September 13, 2014

c# - Write values in app.config

Introduction

We all have used app.config appsettings in our applications. when try to add or edit appsettings in run time it will only persist state for current user session.  if restart the app the saved appsetting will have lost.in this post I am trying to resolve the problem.

Main View


Save appSetting in runtime

if this code block save appSetting that will not reflect to current user session. to change current session value you need to add next image's code



Update current user session


Complete code block



Download code sample Click here

I most welcome your comments

WPF DataGrid Row Select with MVVM + Prism 5

Introduction 

I have already published how to select Data grid row with MVVM. this article I am going to introduce Prism 5 data grid select.  you see my previous post in here


Main view




how to get new prism 5


View Model
 CustomerViewModel class has been derived in "BindableBase" this a new prism 5 class which implement INotifyProperyChanged. you can see new lambda expression for property change and set value with SetProperty Method
View

Download code sample Click here

I will most welcome your comments