티스토리 뷰

반응형

이번에 기존 Windows Phone 7 Mango App을 만든 스타일로 간단하게 Windows 8 Metro Style App을 구현했다. 개발 하면서 느낀 점, 특이 사항, 정보 등 몇 가지를 써 보도록 하겠다
(The existing Windows Phone 7 Mango App created a style, simply have to implement Windows 8 Metro Style App. In developing the felt point, Uniqueness, information, and will look at some of the writing)

1. 기본 정보(General Information)
OS   : Windows Developer Preview 6.2
Tool : Visual Studio 11, Express for Windows Developer Preview
Project Type : Visual C#, Windows Metro style

2. MVVM
GalaSoft의 MVVM Light 라이브러리를 이용해서 MVVM을 구현(GalaSoft using the MVVM Light library to implement MVVM)
http://www.galasoft.ch/mvvm/installing/changes/#v400b1
http://mvvmlight.codeplex.com/
CodePlex에서 라이브러리를 다운 받아서 설치하고, 프로젝트를 MVVM Light로 만들면 적용 할 수 있다.
(CodePlex download it and install it in the library, and creating a project with MVVM Light can be applied)

3. Windows 8의 문제(Windows 8 issue)
키보드가 자꾸 눌러지는 현상이 발생한다.
원하는 않는 동작이 자꾸 일어 나는 것이..한글 키보드와 친하지 않아서 그런 것인지, 원래 발생하는 문제인지는 아직 명확하지 않은데..그것이, 나의 성격을 자꾸 시험 한다.
(
Which keeps the keyboard by pressing the phenomenon occurs.
I do not want the behavior to happen ... It makes me Hangul keyboard and did not get too close to then, the original problem that occurs is not clear yet, I do not know ...It is, I keep my personality test.
)


4. 디자인에 대해(For the design)
한마디로 Blend 없이 디자인을 하려고 하니 죽을 맛이다. 아마도 계속 이렇게 만들어야 한다면 xaml을 버리고, javascript 프로젝으로 만들어야 할 것 같다.
프로젝트에 추가하는 페이지 하나하나 마다 엄청난 양의 템플릿이 붙어 있는데, 그 템플릿을 수정하기가 현재로서는 매우 힘든 상황이다.(인내심의 한계 측정하는데 도움이 된다) 앞으로 VisualStudio12가 출시가 되면 Blend에서 작업 하던 때와 비슷하게 작업이 가능할 것이라 생각해 본다.
(
In short, are we going to do a design without Blend tastes like death. If you need to keep doing this probably throw xaml, javascript project is likely to be created.
Add to a project for each of the pages attached to a huge amount of templates, which to modify the template is at present very difficult situation.(Can help measure the limits of patience) When the next release of VisualStudio12 were working in Blend will be available, similar tasks wonder.
)


5. View와 ViewModel의 명령 전달 문제(View and ViewModel delivery problems of the command)
View에서, ViewModel의 ICommand를 실행 시키기 위해서, InvokeCommandAction을 사용했었는데, 그 부분이 사용이 불가능 한 것 같다. (MSDN에 게시판에 문의를 했는데 아직 답변이 없다.) 그래도, Command 프로퍼티를 가지고 있는 컨트롤은 그 것을 사용할 수 있는데, 그렇지 않은 컨트롤들의 경우에는 다른 방법을 사용해서 처리를 해주어야 한다. 그렇다고, View와 ViewModel을 Tightly Coupled로 연결 할 수는 없지 않은가. 이 프로젝에서는 MVVM Light에 있는 Messager라는 기능을 이용해서 구현 했다.
(
In View, ViewModel ICommand to execute the order, InvokeCommandAction were using, that part seems to be impossible to use.(I tried to contact the Forum on MSDN there is no word yet.)
Still, Command has a property that one can use the controls, which, otherwise, a different method of control and treatment shall. But, View and ViewModel to be connected to the Tightly Coupled not see why not. This project in the MVVM Light Messager was implemented using a function called.
)

6. Task Base Opration
Windows 8에서는 Task Base방식으로 작업을 해야한다. 데이터를 동시에 여러개를 요청 하더라도, 각각의 처리가 별도 테스크에서 처리가 되기 때문에 기존 방식에 비해 성능 향상이 된다. 사실 이 부분 때문에 '.Net Framework'에서 WinRT로 변경한 것으로 알고 있다.
(
In the Task Base Windows 8 will have to work out the way. Multiple data requests simultaneously, although each of the processing is handled by a separate task, because performance is compared to traditional methods.
In fact, because this part '. Net Framework' be changed to WinRT in the know.
)

7. 코드 재사용(Code Reuse)
기존 Silverlight, Windows Phone 7.1에서 사용했던 C#를 거의 그대로 사용이 가능하다. (약간의 Namespace의 변경은 있다)
그러나, 일반적인 코드는 재사용 가능하지만, Windows 8의 특징 적인 부분들에 대해서는 코드를 변경 해야 할 것이다.(예, Task base operation..)
(
Existing Silverlight, Windows Phone 7.1 was used in C # can be used almost literally. (Some of the changes are in the Namespace) However, common code can be reused, but, Windows 8 of the characteristics of a portion of the Code will need to change (eg, Task base operation ..)
)

8. 컨트롤의 Group 기능을 지원(Support for the control of the Group)
이전에는 컬렉션에 한 종류의 데이터만 넣어서 ItemsSource property에 binding했었는데, 이제는 Group 데이터를 binding 하는 것을 추가로 생각해야 한다.  제대로 데이터를 넣으면 이쁘게 나오지만, 템플릿 수정하는 것까지 생각하면, 첩첩산중이라는 이야기가 생각 난다.
(
Prior to the collection of data by placing one of a kind I was binding on the ItemsSource property, you are binding data to the Group shall be considered to add. Put the data out pretty well, but the point that I modify the template, you think the story of the mountain flies deep into the woods.
)

9. 마지막으로(Finally)
나중에 Windows 8이 출시가 되고, 마켓이 열리면 그때 더 좋은 모습으로 바꿔서 올리도록 하겠다. (지금은 소스를 올려도 실행하기도, 다운 받아서 실행해 보기도 어렵고..)
소스가 필요 하다면, 이메일이나 리플로 요청하면 보내도록 하겠다.
(
Windows 8 to be released at a later time, the market is open, then replaced with a better view so I will raise. (I might try to run the source, Raising, downloading and running hard to view.)
If you need a source, email will be sent upon request or reflow
)

반응형
댓글