Button
Hallo!
Wie bekomme ich es hin, das generell keine Scrollbar angezeigt wird?
Ich habe Button benutzt und jedes mal wenn ich die Voransicht anzeigen lasse und auf den Button klicke wird anschließend eine Scrollbar angezeigt.
Diese ist aufgrund der Größe meiner Site aber eigentlich nicht notwendig.
Bin Anfänger und habe keine Ahnung wie ich das ändern kann!

Bitte helft mir!!!
also ich habe Expression Blend 3
Projekt: Siverlite + Website
Hinergrund + mehrere Button eingefügt.
Funkioniert auch so in etwa wie ich mir das vorstelle.
Aber jedes mal wenn ich mit F5 die Test-Site generieren lasse und dort auf einen beliebigen Button klicke, dann erscheinen unten und rechts im Fenster Scroll-Leisten.
Diese möchte ich mit einem Befehl verhindern.
Sowas wie "Scroll-Bar always off".
Das Projekt soll eine Website werden.
Quelltext:
UserControl
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" xmlns:ic="clr-namespace:Microsoft.Expression.Interactivity.Core;assembly=Microsoft.Expression.Interactions"
x:Class="Kerstin.MainPage"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="600">
Grid x:Name="LayoutRoot" Background="{StaticResource Hintergrund}">
Rectangle x:Name="Links_Background" Fill="White" Stroke="Black" HorizontalAlignment="Left" Margin="40,40,0,40" Width="160"/>
Rectangle x:Name="Daten_Background" Fill="White" Stroke="Black" Margin="240,40,40,40"/>
StackPanel HorizontalAlignment="Left" Margin="50,80,0,0" VerticalAlignment="Top" Width="140" Orientation="Vertical">
Button x:Name="Home" Background="#FF460174" Height="30" OpacityMask="#FF460174" BorderBrush="#FF460174" Foreground="Black" Content="Home"/>
Button x:Name="Geheimakte_Eden" Background="#FF460174" Height="30" OpacityMask="#FF460174" BorderBrush="#FF460174" Foreground="Black" Content="Geheimakte Eden" Margin="0,20,0,0">
i:Interaction.Triggers>
i:EventTrigger EventName="Click">
ic:ChangePropertyAction TargetName="Leseprobe" PropertyName="Visibility"/>
ic:ChangePropertyAction TargetName="Geheimakte_Eden_offen" PropertyName="Visibility"/>
ic:ChangePropertyAction TargetName="Bestellmöglichkeiten" PropertyName="Visibility"/>
ic:ChangePropertyAction TargetName="Presse" PropertyName="Visibility"/>
ic:ChangePropertyAction PropertyName="Visibility">
ic:ChangePropertyAction.Value>
Visibility>Collapsed/Visibility>
/ic:ChangePropertyAction.Value>
/ic:ChangePropertyAction>
/i:EventTrigger>
/i:Interaction.Triggers>
/Button>
Button x:Name="Geheimakte_Eden_offen" Background="#FF460174" Height="30" OpacityMask="#FF460174" BorderBrush="#FF460174" Foreground="Black" Content="Geheimakte Eden" Margin="0,20,0,0" Visibility="Collapsed">
i:Interaction.Triggers>
i:EventTrigger EventName="Click">
ic:ChangePropertyAction TargetName="Geheimakte_Eden" PropertyName="Visibility"/>
ic:ChangePropertyAction PropertyName="Visibility">
ic:ChangePropertyAction.Value>
Visibility>Collapsed/Visibility>
/ic:ChangePropertyAction.Value>
/ic:ChangePropertyAction>
ic:ChangePropertyAction TargetName="Leseprobe" PropertyName="Visibility">
ic:ChangePropertyAction.Value>
Visibility>Collapsed/Visibility>
/ic:ChangePropertyAction.Value>
/ic:ChangePropertyAction>
ic:ChangePropertyAction TargetName="Bestellmöglichkeiten" PropertyName="Visibility">
ic:ChangePropertyAction.Value>
Visibility>Collapsed/Visibility>
/ic:ChangePropertyAction.Value>
/ic:ChangePropertyAction>
ic:ChangePropertyAction TargetName="Presse" PropertyName="Visibility">
ic:ChangePropertyAction.Value>
Visibility>Collapsed
/ic:ChangePropertyAction.Value>
/ic:ChangePropertyAction>
/i:EventTrigger>
/i:Interaction.Triggers>
/Button>
Button x:Name="Leseprobe" Background="#FF2A0082" Height="30" OpacityMask="#FF2A0082" BorderBrush="#FF2A0082" Foreground="Black" Content="Leseprobe" Margin="10,20,0,0" Visibility="Collapsed"/>
Button x:Name="Bestellmöglichkeiten" Background="#FF2A0082" Height="30" OpacityMask="#FF2A0082" BorderBrush="#FF2A0082" Foreground="Black" Content="Bestellmöglichkeiten" Margin="10,20,0,0" Visibility="Collapsed"/>
Button x:Name="Presse" Background="#FF2A0082" Height="30" OpacityMask="#FF2A0082" BorderBrush="#FF2A0082" Foreground="Black" Content="Presse" Margin="10,20,0,0" Visibility="Collapsed"/>
Button x:Name="über_mich" Background="#FF460174" Height="30" OpacityMask="#FF460174" BorderBrush="#FF460174" Foreground="Black" Content="über mich" Margin="0,20,0,0"/>
Button x:Name="Kontakt" Background="#FF460174" Height="30" OpacityMask="#FF460174" BorderBrush="#FF460174" Foreground="Black" Content="Kontakt" Margin="0,20,0,0"/>
Button x:Name="Gästebuch" Background="#FF460174" Height="30" OpacityMask="#FF460174" BorderBrush="#FF460174" Foreground="Black" Content="Gästebuch" Margin="0,20,0,0"/>
Button x:Name="Termine" Background="#FF460174" Height="30" OpacityMask="#FF460174" BorderBrush="#FF460174" Foreground="Black" Content="Termine" Margin="0,20,0,0"/>
/StackPanel>
/Grid>
/UserControl>
Die "<" habe ich entfernt, damit man etwas erkennen kann.
Danke im voraus!!! Smile
- Anmelden oder Registrieren um Kommentare zu schreiben

In HTML? Silverlight oder
In HTML? Silverlight oder WPF? Außerdem kann ich nicht folgen, wann genau wo ein Scrollbar erscheint.
Details
Brauche immer noch hilfe!!!
Dann antworte doch einfach
Dann antworte doch einfach mal auf die Frage:
In HTML? Silverlight oder WPF?