Click here to Skip to main content
15,916,030 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Opening file search dialog in WPF with XAML Pin
gsipes30-Jun-09 3:28
gsipes30-Jun-09 3:28 
GeneralRe: Opening file search dialog in WPF with XAML Pin
David Shapira30-Jun-09 4:40
David Shapira30-Jun-09 4:40 
QuestionComboBox and Binding Pin
zlakob29-Jun-09 10:28
zlakob29-Jun-09 10:28 
AnswerRe: ComboBox and Binding Pin
User 27100929-Jun-09 15:39
User 27100929-Jun-09 15:39 
QuestionFloating control at the bottom of the web page?? Pin
Sunil P V29-Jun-09 7:44
Sunil P V29-Jun-09 7:44 
AnswerRe: Floating control at the bottom of the web page?? Pin
Mark Salsbery29-Jun-09 9:25
Mark Salsbery29-Jun-09 9:25 
GeneralRe: Floating control at the bottom of the web page?? Pin
Sunil P V30-Jun-09 5:53
Sunil P V30-Jun-09 5:53 
GeneralRe: Floating control at the bottom of the web page?? Pin
Mark Salsbery30-Jun-09 7:08
Mark Salsbery30-Jun-09 7:08 
I'm not sure what you mean by "floats" but I gave you two possible
solutions for docking something to the bottom of the page...

Use a DockPanel:
<UserControl x:Class="SilverlightTester.MyPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:stk="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
    >
    <stk:DockPanel x:Name="layoutRoot" >
        
        <!-- This is the menu that stays anchored at the bottom of the page -->
        <StackPanel stk:DockPanel.Dock="Bottom" Orientation="Horizontal" Background="SteelBlue" >
            <Button Content="Menu 1" />
            <Button Content="Menu 2" />
            <Button Content="Menu 3" />
        </StackPanel>

        <!-- This is the main body of the page (scrollable) -->
        <ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" >
            <Grid Width="1000" Height="1000" Background="LightSteelBlue" />
        </ScrollViewer>

    </stk:DockPanel>
</UserControl>

Use a Grid:
<UserControl x:Class="SilverlightTester.MyPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    >
    <Grid x:Name="layoutRoot" >
        
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        
        <!-- This is the main body of the page (scrollable) -->
        <ScrollViewer Grid.Row="0" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" >
            <Grid Width="1000" Height="1000" Background="LightSteelBlue" />
        </ScrollViewer>

        <!-- This is the menu that stays anchored at the bottom of the page -->
        <StackPanel Grid.Row="1" Orientation="Horizontal" Background="SteelBlue" >
            <Button Content="Menu 1" />
            <Button Content="Menu 2" />
            <Button Content="Menu 3" />
        </StackPanel> 
        
    </Grid>
</UserControl>


Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: Floating control at the bottom of the web page?? Pin
Sunil P V30-Jun-09 22:15
Sunil P V30-Jun-09 22:15 
QuestionProgressBar Pin
Ranger4929-Jun-09 7:33
Ranger4929-Jun-09 7:33 
AnswerRe: ProgressBar [modified] Pin
Mark Salsbery29-Jun-09 9:00
Mark Salsbery29-Jun-09 9:00 
GeneralRe: ProgressBar [modified] Pin
Ranger4929-Jun-09 9:33
Ranger4929-Jun-09 9:33 
GeneralRe: ProgressBar Pin
Mark Salsbery29-Jun-09 10:00
Mark Salsbery29-Jun-09 10:00 
GeneralRe: ProgressBar Pin
Ranger4929-Jun-09 10:15
Ranger4929-Jun-09 10:15 
GeneralRe: ProgressBar Pin
Pete O'Hanlon29-Jun-09 10:05
mvePete O'Hanlon29-Jun-09 10:05 
GeneralRe: ProgressBar [modified] Pin
Mark Salsbery29-Jun-09 10:16
Mark Salsbery29-Jun-09 10:16 
GeneralRe: ProgressBar Pin
Ranger4929-Jun-09 10:26
Ranger4929-Jun-09 10:26 
QuestionManually firing WPF RoutedCommand Pin
DahrkDaiz29-Jun-09 5:16
DahrkDaiz29-Jun-09 5:16 
AnswerRe: Manually firing WPF RoutedCommand Pin
Pete O'Hanlon29-Jun-09 6:06
mvePete O'Hanlon29-Jun-09 6:06 
AnswerRe: Manually firing WPF RoutedCommand Pin
User 27100929-Jun-09 15:48
User 27100929-Jun-09 15:48 
QuestionMessage Removed Pin
29-Jun-09 4:54
professionalN_tro_P29-Jun-09 4:54 
AnswerRe: Images and Namespaces Pin
Gideon Engelberth29-Jun-09 6:29
Gideon Engelberth29-Jun-09 6:29 
QuestionWPF custom control Pin
Vinod C S29-Jun-09 4:21
Vinod C S29-Jun-09 4:21 
AnswerRe: WPF custom control Pin
Christian Graus29-Jun-09 11:13
protectorChristian Graus29-Jun-09 11:13 
GeneralRe: WPF custom control Pin
Vinod C S29-Jun-09 19:42
Vinod C S29-Jun-09 19:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.