Set cookie in Webview in Windows Phone 8.0

The app we created runs as a webview control after initial login process. We have to send a cookie(secure httponly ) to server as part of request after first time login for consequent logins.
There is no solution provided to set cookie in web view. Can anybody share a sample to set cookie in webview control in Windows phone 8.0 (Silverlight app)?

Hi Santhiyaraman,
Webview control is in windows phone 8.1 runtime app, in windows phone 8 is webbrowser control.
Webbrowser control does not provide some properties or methods to add custom cookie, but we can do this using the javascript. Code snippet looks like the following.
private void setCookie(string name, string value, string path = "", string domain = "", bool isSecure=false, string expires = "")
var sb = new StringBuilder();
sb.AppendFormat("document.cookie = '{0}=\" + escape(\"{1}\")", name, value);
if (!String.IsNullOrEmpty(expires))
sb.AppendFormat(";expires=\"{0}\"", expires); // should be a GMTString
if (!String.IsNullOrEmpty(path))
sb.AppendFormat(";path=\"{0}\"", path);
if (!String.IsNullOrEmpty(domain))
sb.AppendFormat(";domain=\"{0}\"", domain);
if (isSecure)
sb.Append(";secure'");
var cookieJs = sb.ToString();
Debug.WriteLine(cookieJs);
webBrowser.InvokeScript(cookieJs);
You can find more information about it from
http://stackoverflow.com/questions/13287409/windows-phone-webbrowser-set-cookies.
Please try and let me know the result.
Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • Setting internet home page on Windows Phone 7.5 No...

    How do you set internet home page on Windows Phone 7.5 Nokia Lumia 900?
    Baseline information:
    Phone Manufacturer: Nokia
    Phone Model: Nokia Lumia 900
    Mobile Operator: AT&T
    Software: Windows Phone 7.5
    Phone Operating System version: 7.10.8112.7
    Zune software version: 4.8.2345.0
    Computer Operating System version: Windows 7 Home Premium (x64) Service Pack 1 (build 7601)

    @RFNAPLES
    If you leave a webpage up there without closing it from the tabs it should always return, otherwise tap the "three dots" bottom right of screen and scroll down to"pin to start" and you will then have a new tile upon homescreen.
    Happy to have helped forum with a Support Ratio = 42.5

  • Multiple set-cookies directives

    Hi All- I'm testing against an http server that sends multiple set-cookies directives (there are 4 cookies total). As far as I can tell, it is legit HTTP to either send a single set-cookie directive with multiple cookies in it, or multiple set-cookies directives. I am getting erratic behavior. Using the wtk emulator, i am able to receive and process multiple set-cookies directives. Using some phones it works, on others it doesn't. I am trying to create a unit test for my code, and I am unable to figure out how to set up the classpath the same way the emulator does to work with multiple set-cookies directives.
    I searched the jars in the wtk22 directory, and it appears that wtklib/emptyapi.zip, wtklib/gcf-op.jar, lib/midpapi10.jar and lib/midpapi20.jar all contain the HttpConnection class. I am guessing that the emulator is picking up a different implementation than my unit test or the phones that don't work? Has anyone encountered and solved this problem before? Is there a way at runtime to determine from which jar a class was loaded?
    thanks,
    Bleu

    I have a very similar authentication flow in my app.  Using native calls (HttpClient) I am able to retrieve the authentication token, and can easily set a cookie with that token, and use the cookie with subsequent
    native calls via HttpClient.
    I believe that what you are asking for is the ability to add that cookie (with the token you got natively) into the webbrowser control's cookie store
    BEFORE trying to load your dashboard page.  You want your webbrowser control's request for the dashboard page to provide the cookie so that the user doesn't have to log
    in again, and only one webbrowser request is made.  Is this correct? 
    Sadly, I do not think this is possible.  The other answers describe how to add a cookie to a webbrowser control's page after that page has been loaded.  This is adding the cookie to the "document" within the browser control, not
    into the webbrowser control's store.  These approaches will not allow you to add the cookie into the webbrowser control's store, ahead of time, so that it will be sent when you first request the page. 
    If I am correct about what you are asking for (I want this too!) it is not supported on Windows Phone as you cannot write directly to the webbrowser control's cookie store.  You can read it, but not write to it.  It's sad as this particular
    authentication flow is very common, and easy to achieve on both iOS and Android... just not on Windows Phone.
    To get around this in my app, I perform my native authentication (HttpClient) and then authenticate
    again within the webbrowser control itself.  Basically, load the login page into the browser, then submit the login form via eval of JavaScript, and when that finishes loading (valid
    response), load the actual target page.  This is a fragile and inefficient hack, but it seems to work. 
    Hope this helps...

  • How to disable webview cache for Windows Phone 8.1 Runtime universal app?

    Is it possible to disable cache for the Webview control for a Windows Phone 8.1 runtime universal app? My App seems to be remembering the information it received the first time. My app logs me into a service and when I go back to rerun app in the emulator
    (without completing shutting down the emulator) it logs me in automatically rather than giving me the prompt. This behavior is in the NavigationCompleted handler if that helps explain a bit more on where I am hitting this issue.
    If I were to shut off the emulator completely and then restart it then I am prompted for the login name and password again. I have gotten over this cache issue, when I was using the HttpClient in other part of my app, by sending the no-cache in the header
    as:
    client.DefaultRequestHeaders.Add("Cache-Control", "no-cache");
    Can I do something similar for the webview control?
    thanks
    mujno

    Hi mujno,
    As I know currently there is no programmatically way to clean cache for WebView, see Matt's blog:How to clear the WebView cache
    However if you are developing an enterprise app, you should be able to invoke some scripts to clean for you, see this for more information:Brokered
    Windows Runtime Components for side-loaded Windows Store apps
    --James
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • What to use instead for isscriptenabled for windows phone 8.1 in webview control

    For Windows phone 7/8, we could use the Webbrowser control in XAML and use IsScriptEnabled to true or false to run JavaScript code. I can't find this attribute in XAML for the webview control. Is there an equivalent in WebView for me to use in my Windows
    Phone 8.1 app?
    Thanks
    mujno

    Hi Mujno,
    Yes, as you said that the IsScriptEnabled is not supported in the WebView. Then as far as I known there is no such an attribute in XAML for the webview control that is equivalent to the IsScriptEnabled attribute in the WebBrowser. For the workaround
    please try to refer to @Rob Caplan [MSFT]'s reply in this similar thread:
    https://social.msdn.microsoft.com/Forums/windowsapps/en-US/1f8c9832-ce12-47c8-bb7a-96694cf80622/is-there-an-equivalent-of-webbrowserisscriptenabled-for-the-windows-8-webview-control?forum=winappswithcsharp
    Best Regards,
    Amy Peng
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to open standard New Contact Dialog and set phone for it on WIndows Phone 8.1

    It is not possible to add contact to strandard collection. You can add contact only to your application collection. But if your application will be removed you will lost all it contacs.
    That's why I want to open standard windows phone 8.1 dialog for adding new contact user and set Phone in it.
    Is it possible to open standard dialog for adding contact with specifi info from C# ?
    My .NET Blog with projects and feedback.
    Since May 30, 2014 I am waiting for Microsoft fix
    these 2 bug. If you know how to speed them up, please help

    I guess another option is to have the users log in with there Microsoft account and add contacts to there Microsoft account with the live sdk

  • Troubles with client certificates in Windows Phone 8.1 WebViews

    Hi,
    I'm having difficulties using a client certificate in Windows Phone 8.1 WebViews.
    My code works fine in my Windows 8.1 App but i get a WebErrorStatus=[CertificateIsInvalid] in WebView.NavigationCompleted in WP.
    I'm using this code to import my certificate :
    await CertificateEnrollmentManager.ImportPfxDataAsync(certificateBase64, certificatePassword, ExportOption.NotExportable, KeyProtectionLevel.NoConsent, InstallOptions.None, "MyClientCertificate");
    I have no problem using this cert in HttpClient with either Windows 8.1 or Windows Phone 8.1.
    I don't understand why it doesn't work with the WebView control only on Windows Phone.

    Tried it with no success.
    But I just found this : https://blogs.msdn.com/b/wsdevsol/archive/2014/07/31/programmatically-create-and-configure-a-client-certificate-for-use-in-your-windows-runtime-based-app.aspx?Redirected=true
    With the note at the bottom: 
    Note: For Windows Phone 8.1, you need to attach the Client Certificate programmatically. For Windows, once you install the Client Certificate to the app container
    store and do not attach the client certificate with the HttpClient request, the HttpClient class will automatically detect that there is a single certificate installed in the app container store and forward it to the server. However in the case of Windows
    Phone 8.1, there is no such “automatic” selection of the certificate and one MUST provide the certificate programmatically.
    Since there seems to be nothing to attach a custom HttpBaseProtocolFilter to a WebView, it doesn't seem possible atm.

  • PhoneGap Build plugin always sets debugging which breaks Windows Phone XHR

    I've traced a problem with XMLHttpRequest on PhoneGap for Windows Phone 8 to the debug setting on PhoneGap Build (turning it on causes XHR to silently fail). Unfortunately, the PhoneGap Build component for Dreamweaver always turns debugging on. It appears to take no ntoice of the ProjectSettings file that is created in the project folder (I have set "debug":false with no effect) and turning debugging off on the build.phonegap.com site also has no effect on the next build initiated by Dreamweaver.
    The Dreamweaver PhoneGap component needs to be adjusted to take notice of the ProjectSettings for debug and to update these according to the actual settings on the web site. Alternatively, expose the debug setting in the PhoneGap build panel.
    I have had to abandon DreamWeaver for Windows Phone builds altogether.

    Perre wrote:I'm used to being able to pick one or a couple of songs and then adding it a specified playlist. Is this impossible in sonata?
    It's clearly not impossible, just different than you expect. Create your playlist as you want it to appear in the Current tab (meaning don't dump every single song from your library in there, just the ones you want) and then save the playlist.
    Perre wrote:And if I try to play the m3u file created (the one with every song listed) through freevo I get a message that the directory is empty. What am I doing wrong??
    Look at save_absolute_paths_in_playlists in your mpd.conf.

  • Set cookie in webservice request

    Hi,
    Is there a way to set a cookie in a webservice request or include the HttpCookie in the service call ? Basically I am using Axis on client side to call a .NET webservice on a remote server and need to pass user data to the service in a cookie.
    Thanks
    NK

    Hi Santhiyaraman,
    Webview control is in windows phone 8.1 runtime app, in windows phone 8 is webbrowser control.
    Webbrowser control does not provide some properties or methods to add custom cookie, but we can do this using the javascript. Code snippet looks like the following.
    private void setCookie(string name, string value, string path = "", string domain = "", bool isSecure=false, string expires = "")
    var sb = new StringBuilder();
    sb.AppendFormat("document.cookie = '{0}=\" + escape(\"{1}\")", name, value);
    if (!String.IsNullOrEmpty(expires))
    sb.AppendFormat(";expires=\"{0}\"", expires); // should be a GMTString
    if (!String.IsNullOrEmpty(path))
    sb.AppendFormat(";path=\"{0}\"", path);
    if (!String.IsNullOrEmpty(domain))
    sb.AppendFormat(";domain=\"{0}\"", domain);
    if (isSecure)
    sb.Append(";secure'");
    var cookieJs = sb.ToString();
    Debug.WriteLine(cookieJs);
    webBrowser.InvokeScript(cookieJs);
    You can find more information about it from
    http://stackoverflow.com/questions/13287409/windows-phone-webbrowser-set-cookies.
    Please try and let me know the result.
    Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Set Cookies in a Webbrowser control

    Hi All,
    I have a problem regarding webbrowser control in windows phone 8. I have a Native Login page in the app where we login user through service. In response of the login service we get a token.
    Now I have a page with WebBrowser control.In web browser control we open a url which has login page and dashboard. As the user is already logged in and we have the token. So we need to navigate user directly to dashboard instead of the login page.
    To do this in webbrowser control we need to set Cookies in control. How can we do this task?
    Please help me as we need to close this issue asap. Thanking you in advance.

    I have a very similar authentication flow in my app.  Using native calls (HttpClient) I am able to retrieve the authentication token, and can easily set a cookie with that token, and use the cookie with subsequent
    native calls via HttpClient.
    I believe that what you are asking for is the ability to add that cookie (with the token you got natively) into the webbrowser control's cookie store
    BEFORE trying to load your dashboard page.  You want your webbrowser control's request for the dashboard page to provide the cookie so that the user doesn't have to log
    in again, and only one webbrowser request is made.  Is this correct? 
    Sadly, I do not think this is possible.  The other answers describe how to add a cookie to a webbrowser control's page after that page has been loaded.  This is adding the cookie to the "document" within the browser control, not
    into the webbrowser control's store.  These approaches will not allow you to add the cookie into the webbrowser control's store, ahead of time, so that it will be sent when you first request the page. 
    If I am correct about what you are asking for (I want this too!) it is not supported on Windows Phone as you cannot write directly to the webbrowser control's cookie store.  You can read it, but not write to it.  It's sad as this particular
    authentication flow is very common, and easy to achieve on both iOS and Android... just not on Windows Phone.
    To get around this in my app, I perform my native authentication (HttpClient) and then authenticate
    again within the webbrowser control itself.  Basically, load the login page into the browser, then submit the login form via eval of JavaScript, and when that finishes loading (valid
    response), load the actual target page.  This is a fragile and inefficient hack, but it seems to work. 
    Hope this helps...

  • Voip application for windows phone 8.1 fails store submission

    A voip application with the new 8.1 architecture based on a separate process for the voip server is not accepted by the store.
    Voip architecture is based on 8.1 sample: https://code.msdn.microsoft.com/windowsapps/ChatterBox-VoIP-WP81-64921ad4
    Errors during submission:
    3011: The package is missing RpalManifest.xml. Update it and then try again.
    1028: The native API api-ms-win-core-processthreads-l1-1-2.dll:ExitProcess() isn’t allowed in assembly doubango.BackEndServerHost.exe. Update it and then try again.

    Update.  I am currently working with the sample team to update the sample.   We found the problem to be in the way the BackEndServerHost VIsual studio 
    project was created.   While we work on re-creating that from scratch, testing, and re-publishing I wanted to post what we have done so far in case anyone 
    wants to move forward.
    First there are a couple bugs in the sample, maybe you worked around those already in your development but in case not here they are.
    In the backendaudio.cpp BackEndCapture::InitCapture I changed the code:
    if (SUCCEEDED(hr))
    WAVEFORMATEX format = {};
    if (SUCCEEDED(hr))
    FillPcmFormat(format, m_pwfx->nChannels, m_pwfx->nSamplesPerSec, m_pwfx->wBitsPerSample);
    m_sourceFrameSizeInBytes = (format.wBitsPerSample / 8) * format.nChannels;
    hr = m_pDefaultCaptureDevice->Initialize(AUDCLNT_SHAREMODE_SHARED, 0x88140000, 1000 * 10000, 0, &format, NULL);
    The m_pwfx was already retrieved via GetMixFormat earlier, just use that.  Don’t create a custom one.
    In the BackEndAudio::Stop routine change the order of cleanup:
    if (m_pDefaultRenderDevice)
    m_pDefaultRenderDevice->Release();
    m_pDefaultRenderDevice = NULL;
    if (m_pDefaultCaptureDevice)
    m_pDefaultCaptureDevice->Release();
    m_pDefaultCaptureDevice = NULL;
    if (m_pCaptureClient)
    m_pCaptureClient->Release();
    m_pCaptureClient = NULL;
    The next step is to basically delete the BackEndServerHost project and create a new one with the following steps.
    1)  Add a new C++ Dirext X App (Windows Phone) to the solution and name it VoipBackendServerHost  NOTE: using "." in the name causes problems, so don't use the same name as the original sample.
    2)  Remove the Common and Content Folders
    3)  Remove App1Main.cpp and App1Main.h
    4)  Contents of app.cpp should be:
    #include "pch.h"
    #include "App.h"
    #include <windows.applicationmodel.core.h>
    #include <wrl.h>
    #include <string>
    #include <stdexcept>
    using namespace ABI::Windows::ApplicationModel::Core;
    using namespace ABI::Windows::Foundation;
    using namespace Microsoft::WRL;
    using namespace Wrappers;
    HRESULT __cdecl MyGetActivationFactory(_In_ HSTRING activatableClassId, _COM_Outptr_ IInspectable **factory);
    class GetCustomClass : public RuntimeClass<RuntimeClassFlags<RuntimeClassType::WinRtClassicComMix>,
    IGetActivationFactory,
    CloakedIid<IAgileObject >>
    public:
    IFACEMETHODIMP GetActivationFactory(_In_ HSTRING activatableClassId, _COM_Outptr_ IInspectable **factory)
    return MyGetActivationFactory(activatableClassId, factory);
    private:
    HMODULE m_hMod;
    [Platform::MTAThread]
    int main(Platform::Array<Platform::String^>^)
    HRESULT hr = Initialize(RO_INIT_MULTITHREADED);
    if (FAILED(hr))
    throw std::runtime_error(std::string("Failed to Initialize(RO_INIT_MULTITHREADED), HRESULT: ").append(std::to_string(hr)));
    // Scoping for smart pointers
    ComPtr<ICoreApplication> spApplicationFactory;
    hr = GetActivationFactory(HStringReference(RuntimeClass_Windows_ApplicationModel_Core_CoreApplication).Get(), &spApplicationFactory);
    if (FAILED(hr))
    throw std::runtime_error(std::string("Failed to GetActivationFactory(RuntimeClass_Windows_ApplicationModel_Core_CoreApplication), HRESULT: ").append(std::to_string(hr)));
    ComPtr<IGetActivationFactory> spGetActivationFactory = Make<GetCustomClass>();
    spApplicationFactory->RunWithActivationFactories(spGetActivationFactory.Get());
    Uninitialize();
     5) Right click and bring up Project properties.  go To Linker->Input.
     6) Set the Configuration and Platform dropdowns to change all configurations all platforms at the same time
     7) Choose Edit for Additional Dependencies and set to this:
    $(SolutionDir)$(PlatformTarget)\$(Configuration)\BackEnd\PhoneVoIPApp.BackEnd.lib
    WindowsPhoneCore.lib
    RuntimeObject.lib
     8) Under Cofniguration Properties->General Set the Target Name to PhoneVoIP.BackEnd.HostServer and Output directory to $(SolutionDir)UI
     9) APply the settings. Then click OK
    10) Build the Proxy Stub
    11) Build the Agents
    12) Build the new Project
    13) Expand the UI (Windows Phone Silverlight 8.1) Project and find the PhoneVoIP.BackEnd.HOstServer.exe and remove it.
    14) Right click UI and Choose Add Existing and add the PhoneVoIP.BackEnd.HostServer
    This should hopefully get you moving forward.  Please test and make sure your application is working. The end result should pass WACK now.  Please let me know if there are any issues.  It is a lot of steps and I hope I didn't miss any.
    Bret Bentzinger (MSFT) @awehellyeah

  • Books about MVVM, architecture, design patterns for Windows Phone 8.1

    Hi,
    I'm looking for a book or books (or other resources) that explain how to develop an app with a proper architecture. I mean what each layer (bussines layer, data layer, network access) should do and how should it look like. I'm also looking for a book about
    MVVM.
    Right now I'm struggling with how to create a layer for network communication - how to separate classes for requests and responses, how to manage requests and create some queue of requests and also to provide some way to cancel them when they are no longer
    needed, how to work with servers that use some level of security (cookies, certificates etc.).
    Another thing is caching - how to design a short-term cache or a persistant cache (database), what technologies I can use etc.
    Last thing that I'm struggling with is also naming. How to name classes in those layers, e.g. to distinguish between classes mapping data from some ORM database, for mapping on JSON in network communication. etc.
    I hope you got the idea :)
    Thanks.

    Currently, I don't find a book about MVVM pattern for Windows Phone 8.1, but I think MSDN and some blogs have some useful samples and conceptions: http://msdn.microsoft.com/en-us/library/windows/apps/jj883732.aspx
    http://channel9.msdn.com/Series/Windows-Phone-8-1-Development-for-Absolute-Beginners
    And I think your question includes too much scopes, maybe you need to split it into some blocks and get help in the related forum
    Best Regards,
    Please remember to mark the replies as answers if they help

  • WCF Add Service Reference Not Supported for Windows Phone 8.1 XAML Applications

    Windows Phone 8.1 XAML applications does not support the System.ServiceModel namespace, and therefore you are not able to right click references in the project and choose Add Service Reference.   The recommended solution is to add a REST endpoint
    to your WCF endpoint, and access the WCF application through the REST endpoint using HttpClient.
    Bret Bentzinger (MSFT) @awehellyeah

    My opinion on this subject is that someone in management needs to get rid of the "Yes Man" and hire someone with a backbone.
    A project (such as this one) suffered big time because of your excuse of meeting a deadline. Did nobody do feasibility studies to determine the effects of removing the ServiceModel namespace and how it would break migration? It wasn't removed from the other
    project types, so it wasn't a point that it wouldn't fit on the device, so it came down to testing and someone dropped the ball. This is poor management, and deadlines should be extended for critical points within a project. Think about the public relations
    that has already been set backwards by this move. I believe that it meets the critical criteria only because you are talking about targeting the mobile devices which consume external data sources as a key component. Lacking the ServiceModel namespace was a
    monumental error on the teams part.
    This is a perfect case of "we can ship the car", but the wheels will have to wait...they can "Flintstone it" until we get the wheels ready.
    Thomas Mullen
    Thomas Mullen

  • Windows Phone sync and transfer options

    This post explains the options available for synchronizing and transferring contacts, calendar and tasks from your Windows PC to a Nokia Lumia with Windows Phone.
    How Contacts, Calendar and Tasks are synchronized between a Windows PC and a Lumia family phone depends on which software is used on the PC
    If a S40, S60 or Symbian Nokia phone was used before contacts, calendar and tasks can be synchronized between this phone and your PC using Nokia Suite with the following:
    Microsoft Windows 7 contacts
    Microsoft Windows Vista calendar and contacts
    Microsoft Outlook 2002, 2003, 2007, 2010
    Microsoft Outlook Express
    Mozilla Thunderbird
    Nokia Suite (v3.6.x and later) allows for an easy transfer of contacts, calendar and photos to your Nokia Lumia Windows Phone via SkyDrive.
    Here's how this feature works;
    Connect your Nokia S40, S60 or Nokia Belle phone to your PC using the USB cable.
    After Nokia Suite is started and your phone shows as connected select Tools>Upload to SkyDrive and follow the on screen instructions. If you do not have one yet you will have to create a Microsoft account which has a SkyDrive attached to it. You can create such account here.
    You will now have to reset your Nokia Lumia Windows Phone. Doing so will erase all content from the phone and return it to it's 'out of the box' state. Make sure you have synced any media files to your PC (Zune for WP7.x devices / copy them through explorer on WP8.x devices) or Mac(Connector). You can sync these back after the reset. When finished reset your Nokia Lumia Windows Phone using Settings>about>reset your phone.
    Go through the Device First Use sequence and when asked enter your Microsoft Account used to save the content from Nokia Suite. When the setup has finished your will find your contacts, calendar and photos have all transferred to your Lumia. These will also be available through your Microsoft account through the web interface. The list of installed (paid) apps is also restored and the phone will start downloading these once the restore is complete. You can switch to WiFi for this if you have access.
    It is important to note this transfer will only work to the Nokia Lumia at the Device First Use sequence (after a reset). If you have your Lumia setup it will not look for or sync the information copied to SkyDrive through Nokia Suite.
    SMS message can not be transferred directly, but you can export all messages in Nokia Suite (Messaging>File/Export all text messages) and open the resulting Comma Separated File (.csv) in Excel or OpenOffice Calc to create an Excel sheet (.xls file) this can then be copied to your SkyDrive and opened from the Office app. You could also use a tool to create separate files from the exported .CSV file and copy all of these to SkyDrive.
    If a Microsoft Exchange server is used an Outlook account is created on the Lumia. This is done through 'Settings > email + accounts >add an account > Outlook'. The following settings are required. Usually these can be obtained from the system administrator for the Exchange server:
    Mail address
    User name (usually the same as the login name for the business PC)
    Password (usually the same as the password for the business PC)
    The Microsoft Exchange server Domain
    The address for the Microsoft Exchange server
    If Microsoft Outlook is used for private mail account(s) the Outlook Hotmail Connector needs to be installed to synchronize with the primary Microsoft Account and with the Lumia.
    The mail account needs to be set up as a separate mail account through:
    'Settings > email + accounts >add an account > other account'
    More information on setting up a mail account can be found here.
    A useful tool for setting up the Outlook Hotmail Connector can be found here.
    Additional Microsoft support pages for contacts and calendar.
    If Windows Mail, a part of Windows Essentials, is used contacts, calendar and tasks are synchronized directly with the Lumia as long as you log in to Windows Mail using the same primary Microsoft Account as the one which is used on the Lumia. Contacts and/or calendar can be imported in to Windows Mail as follows:
    Microsoft Windows 7 contacts, Microsoft Windows Vista contacts (and calendar)
    Open Windows live mail
    Go to contacts
    Click on import
    Import from current Windows user
    Mozilla Thunderbird
    Use the Hotmail extension for Thunderbird
    Export contacts and import into Windows Mail
    I hope this is helpful 
    Kosh
    Press the 'Accept As Solution' icon if I have solved your problem, click on the Star Icon below if my advice has helped you!

    Article updated, changed Live ID to Microsoft account and added procedure available in Nokia Suite from v3.6.x
    Press the 'Accept As Solution' icon if I have solved your problem, click on the Star Icon below if my advice has helped you!

  • Windows Phone - Cannot bind custom user controll with listview item source property

    It is Windows Phone 8.1 (runtime)
    I have some problem of binding custom user controll with list of data. I'll make it simple as I can.
    My problem is that somehow if I use DataBind {Binding Something} inside my custom controll it will not work.
    I need to transfer binded data (string) to custom controll.
    It is strange that if I do not use DataBind, it will work normally. Eg MyCustomControllParameter = "some string" (in my example 'BindingTextValue' property)
    Does anyone Know how to bind custom user controll with inside ListView with DataTemplate.
    Assume this:
    XAML Test-Main page
    <Grid  Background="Black">        <ListView x:Name="TestList" Background="#FFEAEAEA">                    <ListView.ItemTemplate>                <DataTemplate>                    <Grid Background="#FF727272">                        <local:TextBoxS BindingTextValue="{Binding Tag, FallbackValue='aSource'}" local:TextBoxS>                    </Grid>                </DataTemplate>            </ListView.ItemTemplate>        </ListView>    </Grid>
    XAML Test-Main page c#
    public sealed partial class MainPage : Page    {        List<TTag> tags = new List<TTag>();        public MainPage()        {            this.InitializeComponent();            this.NavigationCacheMode = NavigationCacheMode.Required;        }        public class TTag        {            public string Tag { get; set; }        }        private void InitializeAppData()        {            TTag tag = new TTag() { Tag = "hello world" };            tags.Add(tag);            tags.Add(tag);            tags.Add(tag);            TestList.ItemsSource = tags;        }             protected override void OnNavigatedTo(NavigationEventArgs e)        {            InitializeAppData();        }           }
    User Control XAML:
      <UserControl    x:Class="CustomControllTest.TextBoxS"    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"    xmlns:local="using:CustomControllTest"    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"    mc:Ignorable="d"    d:DesignHeight="300"    d:DesignWidth="400">      <Grid x:Name="LayoutRoot" Background="#FF4F4F4F"   >        <RichTextBlock x:Name="MyTestBlock">        </RichTextBlock>    </Grid></UserControl>
    User Control c#
    public TextBoxS()       {            this.InitializeComponent();            LayoutRoot.DataContext = this;        }        public static readonly DependencyProperty BindingTextValueProperty = DependencyProperty.Register(                                         "BindingTextValue",                                         typeof(string),                                         typeof(TextBoxS),                                         new PropertyMetadata(default(string)));        public string BindingTextValue        {            get            {                return GetValue(BindingTextValueProperty) as string;            }            set            {                SetValue(BindingTextValueProperty, value);                //This method adds some custom logic into RichTextBlock, pointed correctly                SetupBox(value);            }        }
    Thanks for helping ;)

    If you use a built-in control rather than your custom control, does binding work? You should verify that first.
    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.
    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
    objects and unknown namespaces.

Maybe you are looking for