Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
WPF勉強会 第1回 動的レイアウト/WPFStudy1
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
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
63
機械学習勉強会02 多項式近似と最小二乗法による推定/MLStudy02
hachiilcane
0
90
機械学習勉強会03 最急降下法/MLStudy03
hachiilcane
0
39
機械学習勉強会04 偏微分と連鎖律/MLStudy04
hachiilcane
0
43
機械学習勉強会05 パーセプトロン/MLStudy05
hachiilcane
0
44
機械学習勉強会06 ロジスティック回帰/MLStudy06
hachiilcane
0
58
機械学習勉強会07 ROC曲線/MLStudy07
hachiilcane
0
43
機械学習勉強会08 2次元入力3クラス分類/MLStudy08
hachiilcane
0
71
機械学習勉強会09 2層フィードフォワードニューラルネット/MLStudy09
hachiilcane
0
71
Other Decks in Programming
See All in Programming
JavaDoc 再入門
nagise
0
300
Hunting Vulnerabilities in Symfony with LLMs
vinceamstoutz
0
300
肥大化するレガシーコードに立ち向かうためのインターフェース分離と依存の逆転 / JJUG CCC 2026 Spring
hirokunimaeta
0
500
Semantic Version 単位で戦略を柔軟に変えて、パッケージアップデートを自動化する
daitasu
0
170
Datadog × OpenTelemetry 入門と実践のあいだ
kn_to_maxpno
1
150
Javaの型とAI時代に型が大事な理由 / java types and type in AI era
kishida
2
110
Spring Security 実践 ─ GraphQL APIで実務に役立つ 認証・認可 を学ぶ
wagyu
0
170
AIチームを指揮するOSS「TAKT」活用術 / How to Use “TAKT,” an OSS Tool for Orchestrating AI Teams
nrslib
6
840
不変条件と整合性境界—ビジネスが決める設計判断と実現パターン / Invariants and Consistency Boundaries
nrslib
13
3.5k
キャリア迷子上等 ─ "ない道"は自分で作ればいい
16bitidol
3
1.8k
Make SRE Operations Easier with Azure SRE Agent
kkamegawa
0
4.4k
Language Server 使ってる? 〜VSCode と Zed の場合〜 / Are you using a Language Server? ~For VS Code and Zed~
handlename
0
770
Featured
See All Featured
Game over? The fight for quality and originality in the time of robots
wayneb77
1
190
A Modern Web Designer's Workflow
chriscoyier
698
190k
sira's awesome portfolio website redesign presentation
elsirapls
0
270
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
2
210
The #1 spot is gone: here's how to win anyway
tamaranovitovic
2
1.1k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.3k
How to Think Like a Performance Engineer
csswizardry
28
2.6k
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.6k
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
2
1.5k
Being A Developer After 40
akosma
91
590k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
170
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.2k
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͕جຊ ύωϧʹҰഋுΓ͔ͤΔ
ͱ͍͏͜ͱͰ ͋ͱ࣮ફ͋ΔͷΈʂ