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
hachiilcane
March 01, 2022
Programming
210
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
More Decks by hachiilcane
See All by hachiilcane
機械学習勉強会01 1次関数での回帰分析/MLStudy01
hachiilcane
0
67
機械学習勉強会02 多項式近似と最小二乗法による推定/MLStudy02
hachiilcane
0
130
機械学習勉強会03 最急降下法/MLStudy03
hachiilcane
0
40
機械学習勉強会04 偏微分と連鎖律/MLStudy04
hachiilcane
0
45
機械学習勉強会05 パーセプトロン/MLStudy05
hachiilcane
0
47
機械学習勉強会06 ロジスティック回帰/MLStudy06
hachiilcane
0
60
機械学習勉強会07 ROC曲線/MLStudy07
hachiilcane
0
45
機械学習勉強会08 2次元入力3クラス分類/MLStudy08
hachiilcane
0
78
機械学習勉強会09 2層フィードフォワードニューラルネット/MLStudy09
hachiilcane
0
75
Other Decks in Programming
See All in Programming
作れるエンジニアから、価値を届けるエンジニアへ
ryunakayama
1
240
baseline으로 마이그레이션, 리팩토링 안전하게 맡기기
fornewid
1
920
そのデザイントークン、Flutterでも同じ見た目になりますか?
nakamizu
0
310
Enforcing Your Architecture with Unit Tests in the AI Era (Swift Connection X)
steliosf
PRO
1
150
SODA - FACT BOOK(EN)
sodainc
1
210
プロジェクトコードをキレイキレイしよう!暗黙的な参照を読み解く静的解析
ostk0069
0
210
ActionController meets Protocol Buffers
sorah
1
790
クラウドゲーミングのパフォーマンス最適化に挑む / Cloud Gaming Performance Tuning
vivion
0
330
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
150
[JA] Domain Modeling with Vanilla Rails: 「操作」から再考するRailsの設計論
yasaichi
4
1.8k
當我們開始不讀 Code - AI Agent 時代,Code Review 與 Clean Code 還剩下什麼?
jame2408
1
360
Herb in Rails 8.2: Your ERB views, now HTML-aware @ Kaigi on Rails 2026, Tokyo, Japan
marcoroth
2
420
Featured
See All Featured
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
740
Fashionably flexible responsive web design (full day workshop)
malarkey
409
67k
Design in an AI World
tapps
1
380
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.4k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
35
2.9k
A Tale of Four Properties
chriscoyier
163
24k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
330
The World Runs on Bad Software
bkeepers
PRO
72
12k
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
970
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.6k
KATA
mclloyd
PRO
35
16k
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
360
Transcript
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͕جຊ ύωϧʹҰഋுΓ͔ͤΔ
ͱ͍͏͜ͱͰ ͋ͱ࣮ફ͋ΔͷΈʂ