Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Avalon

how can i scale a complete window?

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 04-24-2006   #1 (permalink)
Thorsten Thiel
Guest


 

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
Guest


 

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
Guest


 

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
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
printing in grey scale snakey Vista print fax & scan 1 07-11-2008 06:37 PM
Download Complete - Window does not close otterit Vista General 5 05-09-2008 07:47 PM
Transparent Volume scale Cory Mariani Vista General 3 04-13-2008 10:10 AM
Keeping wallpapers to scale intclass Vista music pictures video 9 10-13-2006 12:49 AM
Complete scaling of a WPF window Jason Dolinger Avalon 26 01-31-2006 06:59 AM


Vistax64.com 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 2005-2008

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 47 48 49 50 51