schdck / virtualbingo Goto Github PK
View Code? Open in Web Editor NEW:books: An application to be used by teachers to make learning better
License: MIT License
:books: An application to be used by teachers to make learning better
License: MIT License
When creating a new game, it'd be nice to be able to edit an existing game.
Some points to be considered:
Add example games with the application, in as many languages as possible
Currently, questions are displayed through Controls.QuestionDisplayer
.
In order to adjust the text (displayed in a TextBlock
) to fit the avaliable space, a ViewBox
is used.
However, to prevent the text from obtaining infinite space, a Converter
(ReduceValueConverter
) is used to set the MaxWidth
of the TextBlock
to 50% of the ActualWidth
of the QuestionDisplayer
.
<Viewbox >
<TextBlock Text="{Binding Question.Title, RelativeSource={RelativeSource TemplatedParent}}"
MaxWidth="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=bingo_controls:QuestionDisplayer}, Path=ActualWidth, Converter={StaticResource ReduceValueConverter}}"
TextWrapping="Wrap" />
</Viewbox>
The result is not that bad, but it isn't optimal either. We're far away from 2 (in the image below), and the goal is to get to 3
Image from: WPF fit text to TextBlock without overflow
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.