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
200
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
120
機械学習勉強会03 最急降下法/MLStudy03
hachiilcane
0
40
機械学習勉強会04 偏微分と連鎖律/MLStudy04
hachiilcane
0
45
機械学習勉強会05 パーセプトロン/MLStudy05
hachiilcane
0
45
機械学習勉強会06 ロジスティック回帰/MLStudy06
hachiilcane
0
59
機械学習勉強会07 ROC曲線/MLStudy07
hachiilcane
0
45
機械学習勉強会08 2次元入力3クラス分類/MLStudy08
hachiilcane
0
76
機械学習勉強会09 2層フィードフォワードニューラルネット/MLStudy09
hachiilcane
0
75
Other Decks in Programming
See All in Programming
なぜCTOを降りてFDEを選んだのか?〜なぜプロダクト企業がFDEで顧客の現場に踏み込むのか〜
gonta
1
210
Workers Cache を知る
syumai
0
360
すこし踏み込む CancellationToken
htkym
2
1.7k
Compiling a real-world CLI tool to native with Static Hermes
tmikov2023
0
120
phperだってパンチカードでコーディングしたい
o0h
PRO
0
330
Findy - エンジニア向け会社紹介/Findy Company Deck
findyinc
6
400k
Simple Storage Service(S3) is not simple
iwatsukayura
0
290
動作中のプログラムの中身をリアルタイムに覗く / Realtime Debugger for CSharp with Roslyn
prota
1
1.9k
golang-bob.pdf
iwatsukayura
0
130
[2026-09-26]空論ジェネリックプロセス~テスト資産とAIで紡ぐ、再現可能なパフォーマンスチューニングの話~
tosite
0
270
PumaからFalconに移行したRailsアプリケーションでの実践
falcon8823
0
170
iOS 27でニュースアプリはどう変わる!? 〜日経電子版の新機能対応と、開発事例から〜
lynnswap
7
13k
Featured
See All Featured
[RailsConf 2023] Rails as a piece of cake
palkan
59
7.1k
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4.2k
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
2.2k
AI Search: Where Are We & What Can We Do About It?
aleyda
0
8.1k
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
990
The Pragmatic Product Professional
lauravandoore
37
7.5k
Docker and Python
trallard
47
4.2k
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
640
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.8k
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
460
Designing Dashboards & Data Visualisations in Web Apps
destraynor
232
55k
Marketing to machines
jonoalderson
1
5.9k
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͕جຊ ύωϧʹҰഋுΓ͔ͤΔ
ͱ͍͏͜ͱͰ ͋ͱ࣮ફ͋ΔͷΈʂ