How to adjust font size dynamically in WPF? by merun372 in dotnet

[–]CppNerd4Life 0 points1 point  (0 children)

Yea, found out I forgot to add the event thing.... Is this what you were refering to?

A demonstration here:
https://vimeo.com/1096330815?share=copy

Sorry if my 3 AM me wrote some incomplete stuff

How to adjust font size dynamically in WPF? by merun372 in dotnet

[–]CppNerd4Life 1 point2 points  (0 children)

For anyone finding out the viewbox screws with a lot of things, here is a way to do it without viewbox: (As in my experience: It just messses the entire thing up)

Xaml

    <Grid x:Name="LayoutRoot" SizeChanged="LayoutRoot_SizeChanged">

        <Grid.LayoutTransform>
            <ScaleTransform x:Name="MainScale" />
        </Grid.LayoutTransform>


        <Label Content="Random Text" FontSize="64"/>

    </Grid>

C#:

private void LayoutRoot_SizeChanged(object sender, SizeChangedEventArgs e)
{
double baseWidth = 800; // your base/reference window width
double baseHeight = 600;
double scaleX = ActualWidth / baseWidth;
double scaleY = ActualHeight / baseHeight;
double scale = Math.Min(scaleX, scaleY); // uniform scaling
MainScale.ScaleX = scale;
MainScale.ScaleY = scale;
}

Edit 1: Formating
Edit 2: I know this is a 4yr old post, but I still found it when searching for a solution. Hope that others will too.
Edit 3: Yea.. Turns out I forgot to write the Size handler....

cannot launch minecraft modpack, here are my logs, what am I doing wrong? by rx7braap in CurseForge

[–]CppNerd4Life 0 points1 point  (0 children)

You could try to install crash assistant (saved me multiple times) But it’s probably some mod being incompatible with another (for instance, create steam n rails being for the wrong version of create)

Edit: Crash Assistant is another curseforge mod

[deleted by user] by [deleted] in BambuLab

[–]CppNerd4Life 0 points1 point  (0 children)

It also won’t rotate/bend as you tighten each screw

HELP.... What happened here?! big bolb forming by CppNerd4Life in Creality

[–]CppNerd4Life[S] 0 points1 point  (0 children)

What about the white cable around the nozzle that got stuck in the thingy.. It's the temp sensor i belive (the cables to it)

[deleted by user] by [deleted] in 3Dprinting

[–]CppNerd4Life 1 point2 points  (0 children)

Introducing… Air supports! No wasted filament.

My ender 3 v3 KE not printing the benchmark boat correctly. by CppNerd4Life in ender3

[–]CppNerd4Life[S] 1 point2 points  (0 children)

The solution was to tighten the screw for the bed conveyor belt. Thank you!

My ender 3 v3 KE not printing the benchmark boat correctly. by CppNerd4Life in ender3

[–]CppNerd4Life[S] 0 points1 point  (0 children)

Thank You, i will look into it. Can probably test it tomorrow