Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
WPF勉強会 第1回 動的レイアウト/WPFStudy1
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
hachiilcane
March 01, 2022
Programming
220
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
WPF勉強会 第1回 動的レイアウト/WPFStudy1
WPF勉強会 第1回 動的レイアウト。
説明後に実演するライブコーディングのコードはこちら。
https://github.com/hachiilcane/WpfStudy
hachiilcane
March 01, 2022
Transcript
14 slides
WPFษڧձ ୈ1ճ ಈతϨΠΞτ
ࠓ֮͑ͯ΄͍͜͠ͱ ͱʹ͔͘ύωϧʹԡ͠ࠐΉͷͩ υϥοάͰஔ͠ͳ͍ʂ “Auto”ͱ”*”ͷҧ͍Λ֮͑Α͏ ͍͍ͩͨAutoͱStretchͰͳΜͱ͔ͳΔ
WPFͷஔ XɺYଘࡏ͠ͳ͍ ઈର࠲ඪࢦఆ͡Όͳ͍ ૬ର࠲ඪʹ͢Δ͜ͱͰಈతͳϨΠΞ τʹ͢Δ
߹͍ݴ༿ ͡ΌͿ͡ΌͿύωϧΛ͏ͷͩʂ
ύωϧίϯτϩʔϧͷछ ྨ Grid DockPanel WrapPanel StackPanel UniformGrid Canvas
Α͘͏ͷ Grid …… ൚༻త StackPanel …… ͨͩฒ͍ͨͱ͖͍ ͭͰ͑Δ DockPanel ……
VisualStudioతͳʢΓ ͷྖҬશ෦ͱ͔ʣ
GridͷAutoͱ* Autoʮࢠཁૉͷେ͖͞ʹ߹ΘͤΔʯ *ʮൺʯɻ”*””1*”ͷҙຯɻ *Λ̍Χॴ͚ͩʹ͏ͱɺʮΓશ ෦ʯͷҙຯʹͳΔ
*Λෳࢦఆ͢Δ ߦɺྻͷେ͖͞Λ͢Δ 1* 1* 2* 1* 200 300
*Λ1͚ͭͩࢦఆ͢Δ ͍ͬͯΔ෦Λશ෦ΊΔ 100 100 250 * 200 300
͡Ό͋͜Εʁ 100 100 Auto * TextBox 200 300
StackPanel ͨͩίϯτϩʔϧΛฒ͍ͨͱ͖ʹ ్தͷͲΕ͔ͷίϯτϩʔϧΛVisibilityΛ Collapsedʹ͢Δͱɺࣗಈతʹ٧·Δ Button1 Button2 Button3 Auto Auto
ίϯτϩʔϧஔͷίπ 1 υϥοάͰஔ͠ͳ͍ʂ มͳMargin͕͍ͭͪΌ͏͔Β μϒϧΫϦοΫͰஔΛਪ ·ͣMargin͕0͔Λ֬ೝ͢Δ ύωϧʹύωϧΛೖΕͯશવOK!
ίϯτϩʔϧஔͷίπ 2 Width, HeightAuto͕جຊ ࢠଙͷཁૉͷͲΕ͔͕۩ମతͳαΠζΛ͍࣋ͬͯΕ ͦΕΛج४ʹେ͖ܾ͞·Δ ͍͍ͨͯςΩετϘοΫε͕۩ମతͳαΠζΛ ͍࣋ͬͯΔʢϑΥϯταΠζ͕ܾ·͍ͬͯΔ͔Βʣ AlignmentStretch͕جຊ ύωϧʹҰഋுΓ͔ͤΔ
ͱ͍͏͜ͱͰ ͋ͱ࣮ફ͋ΔͷΈʂ
More Decks by hachiilcane
See All by hachiilcane
機械学習勉強会01 1次関数での回帰分析/MLStudy01
hachiilcane
0
69
機械学習勉強会02 多項式近似と最小二乗法による推定/MLStudy02
hachiilcane
0
130
機械学習勉強会03 最急降下法/MLStudy03
hachiilcane
0
42
機械学習勉強会04 偏微分と連鎖律/MLStudy04
hachiilcane
0
48
機械学習勉強会05 パーセプトロン/MLStudy05
hachiilcane
0
48
機械学習勉強会06 ロジスティック回帰/MLStudy06
hachiilcane
0
62
機械学習勉強会07 ROC曲線/MLStudy07
hachiilcane
0
47
機械学習勉強会08 2次元入力3クラス分類/MLStudy08
hachiilcane
0
79
機械学習勉強会09 2層フィードフォワードニューラルネット/MLStudy09
hachiilcane
0
77
Other Decks in Programming
See All in Programming
祈るテストから、探索するテストへ 〜Lincheckではじめる並行処理テスト〜
yyh_gl
0
430
선언형 햅틱 라이브러리 진동을 소개합니다
l2hyunwoo
1
330
AI時代のFlutter品質設計 — アプリ品質を守るQuality Layers
omatty198
0
390
自宅サーバはどこまで再現できるのか - Proxmox VE上のVM環境をIaCとバックアップで戻してみた
youto
0
450
手の動かし方がわからなかった私が個人開発者になるまで
usagi0920_pochi
0
340
Agentic AI with the Power of Jakarta EE
ivargrimstad
0
180
将来の標準フォーマッター?ktfmtを深堀る
t45k
0
250
クラウドゲーミングのパフォーマンス最適化に挑む / Cloud Gaming Performance Tuning
vivion
0
360
テストだけで見つかる? Rubyでつくるメソッド発掘器
izawa
0
160
TS 7.0 で baseUrl が使えなくなった今、パスエイリアスをどうするか
bicstone
2
800
React Native에 현대적인 빌드 도구 더하기: Rollipop 구현기
leegeunhyeok
0
190
Debian JP Projectのサーバー構成
uwabami
1
170
Featured
See All Featured
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.5k
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
70
69k
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
6
1.3k
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
880
For a Future-Friendly Web
brad_frost
184
11k
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
2
1.7k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
18k
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.6k
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
690
Fireside Chat
paigeccino
43
4.1k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
1.1k