메뉴 건너뛰기

app

[WP7] 애플리케이션바 제어하기, pushpin icon

suritam92013.03.04 03:02조회 수 2146댓글 0

  • 2
    • 글자 크기

http://www.developer.nokia.com/Community/Wiki/Application_Bar_for_Windows_Phone


위 주소에 매우 잘 나오고, 예제도 잘 되어 있다.


그런데, 아이콘이 안 나오는 경우가 있다.


6. In the Properties window, set the property Build Action to content and Copy to Output Directory to Copy if Newer. Setting the Build Action to content is necessary for the image to show up on the application bar.


위의 글을 잘 이해하고 이행해야 한다.


iconview.png



pushpin contents에 icons 로 


using System.Windows.Media.Imaging;


~~~~~~~~~~~~~~~~~~~~`


Uri imgUri = new Uri("icons/appbar.cancel.rest.png", UriKind.RelativeOrAbsolute);

                            BitmapImage imgSourceR = new BitmapImage(imgUri);

                            ImageBrush imgBrush = new ImageBrush() { ImageSource = imgSourceR };


                            pp.Background = new SolidColorBrush(Colors.Transparent);

                            pp.Content = new Rectangle()

                            {

                                Fill = imgBrush,

                                Height = 64,

                                Width = 64

                            };


배경을 Transparent로 하면, 깔끔하게 나온다.

suritam9 (비회원)
  • 2
    • 글자 크기
[SWIFT] 아이콘 뱃지(숫자) 표시 (by lispro06) [PHP] IIS 에서 PHP 사용 및 기타 에러 (by lispro06)

댓글 달기

이전 1 ... 5 6 7 8 9 10 11 12 13 14다음
첨부 (2)
ApplicationBarDemo.zip
73.7KB / Download 32
iconview.png
11.8KB / Download 38
위로