Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista - how can i scale a complete window?

 
 
Old 04-24-2006   #1 (permalink)
Thorsten Thiel


 
 

how can i scale a complete window?

Hello,

how can i do that. As Sample see Windows Media Center.

Thanks
Thorsten



My System SpecsSystem Spec
Old 04-24-2006   #2 (permalink)
Douglas Stockwell


 
 

Re: how can i scale a complete window?

Use Viewbox, or ScaleTransform. You can find these in the documentation.

- Doug

> Hello,
>
> how can i do that. As Sample see Windows Media Center.
>
> Thanks
> Thorsten



My System SpecsSystem Spec
Old 04-24-2006   #3 (permalink)
Thorsten Thiel


 
 

Re: how can i scale a complete window?

Hello,

sorry but it's dont work.

Viewbox:

<Viewbox
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/interactivedesigner/2006"
x:Name="DocumentRoot">
<DockPanel>
<Image Source="E:\Eigene Bilder\Photos\DSC07686.JPG"
Stretch="Fill" VerticalAlignment ="Stretch" HorizontalAlignment="Stretch"/>
</DockPanel>
</Viewbox>

and ScaleTransform:

<StackPanel>
<Slider Width="520" Height="37" VerticalAlignment="Top"
HorizontalAlignment="Left" Grid.Column="0" Grid.ColumnSpan="1" Grid.Row="0"
Grid.RowSpan="1" Margin="25,14,0,0" Name="Slider1" ValueChanged="OnValue"
Maximum="1" />
<Image Name="Img" Source="E:\Eigene Bilder\Photos\DSC07686.JPG"
Stretch="Fill" VerticalAlignment="Top" HorizontalAlignment="Left"
Grid.Column="0" Grid.ColumnSpan="1" Grid.Row="0" Grid.RowSpan="1"/>
</StackPanel>


Private Sub OnValue(ByVal sender As Object, ByVal e As
RoutedPropertyChangedEventArgs(Of Double))
Dim st As New ScaleTransform(e.NewValue, e.NewValue)
Img.LayoutTransform = st
End Sub


what is wrong?

Thorsten




"Douglas Stockwell" <doug@remove.11011.net> schrieb im Newsbeitrag
news:eca9ec381353d98c835fd92465c00@news.microsoft.com...
> Use Viewbox, or ScaleTransform. You can find these in the documentation.
>
> - Doug
>
>> Hello,
>>
>> how can i do that. As Sample see Windows Media Center.
>>
>> Thanks
>> Thorsten

>
>



My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
Window Messenger icon closes before bootup of modem complete?? Live Messenger
printing in grey scale Vista print fax & scan
Download Complete - Window does not close Vista General
Keeping wallpapers to scale Vista music pictures video


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46