2013年9月10日星期二

How to achieve the windows phone8 calendar control

Recently made a calendar application , find the following controls very good use , but should be charged , Daniel told how to help achieve this control. Thank you

control effect is as follows


Download: http://www.telerik.com/products/windows -phone/overview/all-controls/calendar.aspx
------ Solution ------------------------ --------------------

this is not decompiled it.
an algorithm , we must take sleep two problems, one is any day of the week , two days a month is arbitrary .
two , UI aspect is actually a GRIDVIEW.
Third, the style also need to pay attention to this or that there will be CULTURE STYLE problems, some STYLE may be the first day of the week on Sunday and some may be on Monday , of course, may be in a different language is not below STYLE same.
CALENDAR class then this will be more clear now , the first can think of to have a current date, the current date calculates the current month for a few days , a few days last month , today's date is the week , with the these values ​​, coupled STYLE then the whole show how it came out.
Of course, if you want to improve even think of expansion , if you also want to schedule together , then this is not required HAS A CALENDAR schedule object. In addition, from the perspective of design patterns , if you want to expand in the future style is not made ​​to consider style factory ?
Hope that helps.
------ For reference only -------------------------------------- -
quickest way is to get each other's dll,
then decompile, learning about each other design ideas .


------ For reference only ---------------------------------- -----
this control really is not doing well . To the data from the UI had carefully designed , have a good relationship calculate the date and day of week .
------ For reference only -------------------------------------- -
How can the problem ?
algorithm ? Or draw ?
------ For reference only -------------------------------------- -
this clever where ah ? What is the difference with the general calendar ?
------ For reference only -------------------------------------- -


draw
------ For reference only --------------------------------- ------


you open this control facie know
------ For reference only ------------------------- --------------
gridview, defined dataTemplate, organize data , should not be difficult
------ For reference only ------- --------------------------------

wp decompile the app can do ? What tools
------ For reference only ----------------------------------- ----
I also find the calendar display controls are not so commonly found in the controls are not visible windows phone developer how few people

没有评论:

发表评论