📜 ⬆️ ⬇️

WP7 social client. network "Vkontakte" open source


Today there are already many demonstration projects under WP7.

I also decided to add my “drop in the ocean” in the form of source codes of one of my projects “for the fan” - a client of the social network “Vkontakte” which was written in my free time.

The project is far from ideal, but I will be glad if the code will be useful to someone.
At the moment, the functionality is very poor: messages / correspondence, a list of friends, viewing photos, the ability to attach to almost every page on the main page.
')
Under the cat a small description of the next functions in the queue and the problems encountered.

The client works through the official API, respectively, authorization is implemented through the built-in browser.

Source
Source code and xap file can be found at:
http://vkontaktewp.codeplex.com/releases/view/75456

Expected features:
Soon the following functionalities will be added:

ProgressBar is one of the smallest and yet the most necessary function - an indicator of the process of downloading content.
Pin to start - now almost all pages can be fixed on the main page, if possible we plan to add different styling for each page.
Saving contacts is an easy-to-implement, but sometimes very necessary function (I apologize for taftology :) saving a contact from VKontakte to the contact list on the phone.
Navigation - at the moment the navigation is not quite correctly built. The Home button on each page was intended to enable the transition to the root page when opening an application from pinned icons. In theory, this button should be displayed only if we moved from the pinned icon. At the moment, the implementation of this function was impossible due to problems with AppBar (described below). I was not sure how correct it is to leave it as it is now. It might be better to disable the transition to the main one in general than to always show these buttons.

In the future, it is supposed to add the ability to comment on photos, add new ones, support “wall of messages”, etc. etc. as required.

Problems with the code:
The code itself also has an uncountable set of flaws and flaws.
I just want to warn you that the code is far from ideal, it has refactored many times, in some places there are copy-pastes, in some places it is not optimal, in some places it violates the MVVM principle, but nevertheless decided to post it as it is.

Error handling is the main problem that is currently underdeveloped - partially implemented error handling. For example, the authorization error is processed correctly, but at the same time, the application now crashes when there is no network connection, which is not good, to say the least.

AppBar is another significant problem that needs to be fixed now. This is the famous, infamous problem with data binding to AppBar - any data binding attempt results in an exception.
The second problem with the same AppBar is related to the fact that the buttons in the AppBar do not have the IsVisible property - i.e. just take and hide the button will not work. In another project, this problem was solved by the own implementation of ApplicationBar - here, most likely, there will also be the same solution.

The code has changed many times, some things have remained "in inheritance". For example, the DataLayer assembly, intended for storing data in the cache, for offline operation, is currently disabled, the code is almost cleaned, and this assembly is not used. On the other hand, the “inherited” code is not so much in fact.

PS
Report / detailed article
I would like to write an article or make a report on the development of applications for WP7, as always, stops the unknown about the target audience. On the one hand, one does not want to tire with banalities, on the other hand, one does not want to miss important details. I would welcome any suggestions / questions / comments, which later could help to highlight the emphasis in the article / report.

Pps
To the merging karma, I don’t care how much karma will remain, just to be able to write, it would just be interesting to find out what caused dissatisfaction - can the writing style or errors in the article, errors in the code?

PPPS
I posted several screenshots of http://vkontaktewp.codeplex.com/ . A little later I will try to make your home page more decently.

Source: https://habr.com/ru/post/130869/


All Articles