Click here to Skip to main content
12,633,856 members (23,729 online)
Click here to Skip to main content

Stats

44.3K views
3.8K downloads
62 bookmarked
Posted

Another Screensaver with WPF

, 27 Jan 2012 CDDL
Lessons learnt from writing a screensaver with WPF
<Window x:Class="RZWScreenSaver.DeleteDialog"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Picture Deletion" ShowInTaskbar="False" Topmost="True" ResizeMode="CanResizeWithGrip" MinHeight="280" MinWidth="240">
    <DockPanel>
        <StackPanel HorizontalAlignment="Center" Orientation="Horizontal" DockPanel.Dock="Bottom">
            <Button Width="96" Margin="3,5" IsDefault="True" Click="onOk">O_k</Button>
            <Button Width="96" Margin="3,5" TabIndex="0" IsCancel="True">_Cancel</Button>
            <Button Width="96" Margin="3,5" Click="onMoveFile">_Move To...</Button>
        </StackPanel>
        <DockPanel Background="White">
            <TextBlock FontSize="18" Foreground="Blue" DockPanel.Dock="Top" TextWrapping="WrapWithOverflow">Are you sure to DELETE this picture?</TextBlock>
            <TextBlock Name="pictureName" HorizontalAlignment="Center" DockPanel.Dock="Bottom">file</TextBlock>
            <Image Name="previewPicture" HorizontalAlignment="Center" Margin="5" Stretch="Uniform" Source="/RZWScreenSaver;Component/images/Clipping Text.png" />
        </DockPanel>
    </DockPanel>
</Window>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Common Development and Distribution License (CDDL)

Share

About the Author

Ruxo Zheng
Technical Lead
Thailand Thailand
C/C++ and C# programmer.

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.161208.2 | Last Updated 27 Jan 2012
Article Copyright 2009 by Ruxo Zheng
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid