Is there a default strategy for preparing a permit change request?

How to prepare a Silverlight or WPF application to switch from high resolution to low resolution?

I assume that using the docpanel strategy only works for moving from small to high resolution.

So is there a default strategy? Thanks.

Problem: I have an end button in the pixel 1024, 768. And I change the resolution to 800x600.

+7
source share
3 answers

I think doing it is better:

ScrollViewer Background="GreenYellow" HorizontalScrollBarVisibility="Visible" VerticalScrollBarVisibility="Visible" Name="layoutRoot"> Canvas Width="1024" Height="768"> dataInput:Label Height="50" Name="label1" Width="100" Canvas.Left="540" Canvas.Top="131" Content="aeeeeeeee" /> Button Canvas.Left="12" Canvas.Top="131" Content="Button" Height="23" Name="button1" Width="75" /> Button Canvas.Left="937" Canvas.Top="147" Content="Button" Height="23" Name="button2" Width="75" /> Button Canvas.Left="510" Canvas.Top="21" Content="Button" Height="23" Name="button3" Width="75" /> Button Canvas.Left="482" Canvas.Top="550" Content="Button" Height="23" Name="button4" Width="75" /> /Canvas> /ScrollViewer> 
0
source

Some time ago I had a similar problem. As a workaround, I surrounded the contents of the window in the Viewbox .

Users who used 1024x768 instead of 1280x1024 see the contents of the application less, but they prefer this over scrolling all the time. (WPF)

I will need to work on this for our next project, let them hope that someone has the best ideas!

+2
source

Well, you could design your layout for stretching and designing based on 800x600, so whenever the layout gets larger than 800x600, it will do. But...

if you really want something fantastic, detect window resizing / ActualHeight and ActualWidth (using SizeChanged), then scale the application to fit through the code (using dynamic transforms).

For example, in "LayoutRoot" in the main view:

 var x = new ScaleTransform(); x.ScaleX = .5; // Do fancy computation here x.ScaleY = .5; // Do fancy computation here this.LayoutRoot.RenderTransform = x; 

Just an idea, I mean, if the screen is bigger than your design, you zoom in and vice versa.

Hope this helps.

+1
source

All Articles