G
Gordon Padwick
After spending many hours familiarizing myself with WPF, I'm at the stage of
creating my first real application.
I've run into a problem of sizing buttons and wrapping text content in
buttons.
I have these questions:
1. How can I create a button that is automatically sized to accommodate its
text content (such as the SizeToContent property of a window)?
2. How can I wrap text within a WPF button (as happens in a Microsoft Access
button)?
3. How can I create a group of buttons, such as within a StackPanel (within
a Grid) so that all buittons have the same size, even when the size of one
of those buttons changes? I have in mind that I might add a button to a
group and that button might need to be larger than pre-exisiting buttons, or
that subsequent localization results in the need for a larger button.
I'll greately appreciate all responses to these questions.
Gordon Padwick
creating my first real application.
I've run into a problem of sizing buttons and wrapping text content in
buttons.
I have these questions:
1. How can I create a button that is automatically sized to accommodate its
text content (such as the SizeToContent property of a window)?
2. How can I wrap text within a WPF button (as happens in a Microsoft Access
button)?
3. How can I create a group of buttons, such as within a StackPanel (within
a Grid) so that all buittons have the same size, even when the size of one
of those buttons changes? I have in mind that I might add a button to a
group and that button might need to be larger than pre-exisiting buttons, or
that subsequent localization results in the need for a larger button.
I'll greately appreciate all responses to these questions.
Gordon Padwick