开发者

how to implement login and service features as in skype or msn chat in a wpf application

开发者 https://www.devze.com 2022-12-30 22:15 出处:网络
I\'m building an WPF application that connect to web services for its operations.Things that i needed to be workingare so far fine.Now i\'ll like to improve use experience by adding features like user

I'm building an WPF application that connect to web services for its operations.Things that i needed to be working are so far fine.Now i'll like to improve use experience by adding features like username editable combobox, sign me in when skype start and start when computer start.

I have a fair idea about each feature but very small knowledge about their implementation.

Question 1 username combobox :

i use a combobox with isEditable set to true but i think it doesnt have the previous username, would that mean that i have to store every successful login username in a sqlite for example?

Question 2 sign me in when skype start :

i think about using sqlite after all to store the credentials and store the value (as in true or false) if autologin has to be performed.

Question 3 start when computer start :

i know it's about having is as service.but the process of using it as a service and removing its service when checkbox is checked or unckecked is a bit confusing to me.

Question 4 Please wait(signing in) of skype

if i want to do things like please wait at login(login is over webservice) in a WPF application should i use a animated gif in a grid that i can show when hiding the login combobox and passwordbox grid or i should use an animated object(for which i have no knowledge about for now) ?

This post in mainly for you experts to either point me to the right resource and tell me what is done as best practice. things like dos and dons.Thanks for 开发者_StackOverflow中文版reading this and please let me have a clair idea about how to start implementing those features. thanks again


1: Yes, you have to manually store the previous values somewhere and assign them to the ComboBox's ItemsSource.
2: I don't understand this question.
3: No, a service is different. Services run in the background and don't interact with the UI at all. What you want is to just add (or remove) an entry in the auto-run section of the registry. Try this link.
4: WPF doesn't (natively) support GIFs. Personally, I'd just use a ProgressBar with IsIndeterminate set to true, but other animations would also work.

You may also want to look at .NET's built in application settings function. This link is for Windows Forms instead of WPF but the ideas should be the same.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号