MY MEMO

[MY WINDOW APPLICATION] UWP -> WPF 본문

PROJECT/MY WINDOW APPLICATION

[MY WINDOW APPLICATION] UWP -> WPF

l_j_yeon 2017. 8. 21. 19:28

아..기능을 좀 찾아볼껄 그랬다


exe파일을 실행하려면 이렇게 복잡하고 힘든 과정을 거쳤어야했다니..


+) 삽질하면서 찾은 정보들..


how to launch external execute file

 : https://developer.microsoft.com/en-us/windows/iot/samples/externalprocesslauncher


rescap 적용 (아래처럼 해야 오류가 나지 않는다.)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?xml version="1.0" encoding="utf-8"?>
 
<Package
 IgnorableNamespaces="uap mp wincap rescap">
 
  <Identity
    Name="bdcca8f2-2891-4155-80d4-c9a7537cc70e"
    Publisher="CN=ljyeo"
    Version="1.0.0.0" />
 
  <mp:PhoneIdentity PhoneProductId="bdcca8f2-2891-4155-80d4-c9a7537cc70e" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>
 
  <Properties>
    <DisplayName>MY FOLDER</DisplayName>
    <PublisherDisplayName>ljyeo</PublisherDisplayName>
    <Logo>Assets\StoreLogo.png</Logo>
  </Properties>
 
  <Dependencies>
    <TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.10586.0" MaxVersionTested="10.0.15063.0" />
  </Dependencies>
 
  <Resources>
    <Resource Language="x-generate"/>
  </Resources>
 
  <Applications>
    <Application Id="App"
      Executable="$targetnametoken$.exe"
      EntryPoint="UWPExcutingApp.App">
      <uap:VisualElements
        DisplayName="MY FOLDER"
        Square150x150Logo="Assets\Logo_150150.png"
        Square44x44Logo="Assets\Logo_4444.png"
        Description="MY FOLDER"
        BackgroundColor="#ffffff">
        <uap:DefaultTile Wide310x150Logo="Assets\Logo_310150.png"/>
        <uap:SplashScreen Image="Assets\SplashScreen.png" />
      </uap:VisualElements>
    </Application>
  </Applications>
 
  <Capabilities>
    <Capability Name="internetClient" />
    <rescap:Capability Name="runFullTrust" />
  </Capabilities>
 
</Package>


iot 적용

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?xml version="1.0" encoding="utf-8"?>
        IgnorableNamespaces="uap mp" >
 <!--IgnorableNamespaces="uap mp iot"-->
  <Identity Name="bdcca8f2-2891-4155-80d4-c9a7537cc70e" Publisher="CN=ljyeo" Version="1.0.0.0" />
  <mp:PhoneIdentity PhoneProductId="bdcca8f2-2891-4155-80d4-c9a7537cc70e" PhonePublisherId="00000000-0000-0000-0000-000000000000" />
  <Properties>
    <DisplayName>MY FOLDER</DisplayName>
    <PublisherDisplayName>ljyeo</PublisherDisplayName>
    <Logo>Assets\StoreLogo.png</Logo>
  </Properties>
 
  <Dependencies>
    <TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.10586.0" MaxVersionTested="10.0.10586.0" />
 <!--   <TargetDeviceFamily Name="Windows.IoT" MinVersion="10.0.10586.0" MaxVersionTested="10.0.10586.0" />-->
  </Dependencies>
 
  <Resources>
    <Resource Language="x-generate" />
  </Resources>
  <Applications>
    <Application Id="App" Executable="$targetnametoken$.exe" EntryPoint="UWPExcutingApp.App">
      <uap:VisualElements DisplayName="MY FOLDER" Square150x150Logo="Assets\Logo_150150.png" Square44x44Logo="Assets\Logo_4444.png" Description="MY FOLDER" BackgroundColor="#ffffff">
        <uap:DefaultTile Wide310x150Logo="Assets\Logo_310150.png">
        </uap:DefaultTile>
        <uap:SplashScreen Image="Assets\SplashScreen.png" />
      </uap:VisualElements>
    </Application>
  </Applications>
 
  <Capabilities>
    <Capability Name="internetClient"/>
 <!--   <iot:Capability Name="systemManagement"/>-->
  </Capabilities>
 
</Package>


------------------------------------------------------------------------------------------

일단 UI가 너무 잘나와서 기대했는데 WPF로 바꿔야겠다


하..내 시간..ㅠㅠㅠ



UWP

- window 10에서만 사용할 수 있다 (사용할 수 있는 환경이 제한적이다)

- sandboxing model


WPF (Window Presentation Foundation)

- window10이외에도 사용할 수 있다.

- UWP에서 쓸 수 있는 기능보다 제한적이다


-> 하지만 둘다 문법은 비슷하다!!!


즉 WPF로!!!


Comments