Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1642 - hint-text wrapping #268

Merged
merged 2 commits into from
Nov 24, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions WpfDataUi/Controls/CheckBoxDisplay.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
<TextBlock x:Name="HintTextBlock"
Padding="8,0,0,0" Grid.Row="1"
TextWrapping="Wrap"
HorizontalAlignment="Stretch"
MaxWidth="{Binding ElementName=CheckBox, Path=ActualWidth}"
Margin="0,0,-4,0"
MaxWidth="{Binding ActualWidth, ElementName=TopRowGrid}"
FontSize="10">
This is a property description.
</TextBlock>
Expand Down
3 changes: 2 additions & 1 deletion WpfDataUi/Controls/NullableBoolDisplay.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
TextWrapping="Wrap"
HorizontalAlignment="Left"
VerticalAlignment="Top"
Width="{Binding ElementName=TopRowGrid, Path=ActualWidth, Mode=OneWay}"
MaxWidth="{Binding ActualWidth, ElementName=TopRowGrid}"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vchelaru
This control doesn't appear to actually have an element named "TopRowGrid", I just left the element name as-is incase it was somehow working in a way you knew of that I couldn't see... mostly because I was too lazy to figure out how to throw a nullable bool in the variables. You may want/need to circle back to this and modify it to use the "GroupBox" element name.

Margin="0,0,-4,0"
FontSize="10" Text="This is a property description. But what if it is longer?" />


Expand Down
3 changes: 2 additions & 1 deletion WpfDataUi/Controls/SliderDisplay.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@
TextWrapping="Wrap"
HorizontalAlignment="Left"
VerticalAlignment="Top"
Width="{Binding ElementName=TopRowGrid, Path=ActualWidth, Mode=OneWay}"
MaxWidth="{Binding ActualWidth, ElementName=TopRowGrid}"
Margin="0,0,-4,0"
FontSize="10">This is the bottommost text</TextBlock>
</Grid>
</UserControl>
3 changes: 2 additions & 1 deletion WpfDataUi/Controls/TextBoxDisplay.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@
TextWrapping="Wrap"
HorizontalAlignment="Left"
VerticalAlignment="Top"
Width="{Binding ElementName=TopRowGrid, Path=ActualWidth, Mode=OneWay}"
MaxWidth="{Binding ActualWidth, ElementName=TopRowGrid}"
Margin="0,0,-4,0"
FontSize="10" Text="This is a property description. But what if it is longer?"/>


Expand Down