본문 바로가기
반응형

프로그래밍50

UWP 프로그램 실행 시에 랜덤 이미지 보여주기 프로그램을 실행했을 시에 초기화면으로 보여주고 싶은 그림 중 임의의 그림 하나를 화면에 전시하려고 한다. 매번 똑같은 이미지가 아닌 확률에 의한 이미지 전시기능이다. 이미지를 전시할 프레임을 만들고 높이 및 너비 등을 설정한다. 프로그램 시작 시에 랜덤 하게 이미지를 띄울 페이지(RandomPicturePage)를 불러오는 코드 구문을 작성한다. using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.InteropServices.WindowsRuntime; using Windows.Foundation; using Windows.Foundation.Collections; us.. 2022. 5. 25.
UWP 버튼에 마우스 커서 올리면(mouse hover) 안보임 해결방법 1. Microsoft.UI.Xaml 설치 확인 [솔루션 탐색기] > [참조] 오른쪽 클릭 > [NuGet 패키지 관리] > [설치됨] 탭에서 확인 설치가 안되었다면 [찾아보기] 탭에서 Microsoft.UI.Xaml를 검색하여 설치 2. 애플리케이션에 반영 [솔루션 탐색기] > [App.xaml]에서 추가 3. 실행결과 2022. 5. 24.
UWP 페이지 이동 및 Grid 화면 분할 1. 페이지 이동 화면을 분할하여 한쪽 Pane에는 페이지 내비게이션 버튼을 만들고, 반대쪽에는 실제 페이지를 불러올 Pane을 구성한다. 4개의 Page 버튼 각각에 이벤트 함수를 추가하여 정의한다. 각 버튼을 클릭할 시에 해당 페이지를 Frame으로 불러온다. using muxc = Microsoft.UI.Xaml.Controls; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.InteropServices.WindowsRuntime; using Windows.Foundation; using Windows.Foundation.Collections; using Wi.. 2022. 5. 24.
RHEL 디스플레이 해상도 800x600 보다 높은 값으로 설정 1. VGA 확인 [root@localhost ~]# lspci -vnn | grep VGA 00:02.0 VGA compatible controller [0300]: Intel Corporation HD Graphics P630 [8086:591d] (rev 04) (prog-if 00 [VGA controller]) 2. 커널 드라이버 확인 [root@localhost ~]# lspci -k | grep -EA3 'VGA|3D|Display' 00:02.0 VGA compatible controller: Intel Corporation HD Graphics P630 (rev 04) DeviceName: Onboard - Video Subsystem: Intel Corporation Device 201.. 2022. 5. 20.
반응형