Advanced Forum Search Results
-
One more thing to add. If you get strange exceptions or empty stages, that might be because your source has x:Name properties set and those get cloned as well. It might lead to those errors. Just make sure that the "Name" properties get skipped.
Regards,
André
-
Hi Shawn,
thanks for your quick reply. I'm aware of the pro and cons of the Canvas, but I got no choice. I have to use the canvas. Looks like I'm going to write a recursive method that does the trick for me.
Regards,
André
-
Hi there,
I got a fixed size canvas. Inside are elements that can have locations like Canvas.Left="-10" and elements that are larger than the actual canvas dimensions. How can I get the bounds of all those Canvas elements? I tried some properties like DesiredSize and the like, but nothing worked so far. Don't tell me I have to ...
-
Hi there,
in your case try wiring up the Application.Current.RootVisual.KeyDown event. But be careful, as the RootVisual is not available before being Loaded, so don't attach that event in a constructor. Preferrably in a Loaded event.
Regards,
André
-
Hi there,
I got the same problem. Any progress on this topic yet?
Regards,
André
-
Hi there,
which base class did you override?
Regards,
André
-
Hello Amanda,
thanks for looking into that matter. It's not just setting the FontFamily, it's setting the FontFamily and then changing the Text afterwards.
Regards,
André
-
Right you are, but I want to change the FontFamily later on. I was just pulling a small example together.
-
When I change the Text first and then the FontFamily-Property, it works. Really strange... Other way around gives the crash to desktop...
-
Hi there,
got a piece of xaml like:
<Canvas>
<TextBox x:Name="TestBox1" Text="Hallo" FontFamily="Arial"></TextBox>
<Button x:Name="changeFont" Content="Test"></Button>
</Canvas>In the Click-Event of the changeFont Button I do the following: ...