Click here to Skip to main content
15,562,816 members
Home / Discussions / WPF
   

WPF

 
QuestionNothing displayed when set a line to DashStyles.Dot Pin
CooperWu15-Oct-09 5:58
CooperWu15-Oct-09 5:58 
AnswerRe: Nothing displayed when set a line to DashStyles.Dot Pin
Mark Salsbery15-Oct-09 9:04
Mark Salsbery15-Oct-09 9:04 
QuestionControl Limitation Pin
Saiyed Alam14-Oct-09 19:39
Saiyed Alam14-Oct-09 19:39 
AnswerRe: Control Limitation Pin
Ian Shlasko15-Oct-09 4:47
Ian Shlasko15-Oct-09 4:47 
QuestionMenuItems not showing properly Pin
Shelby Robertson 14-Oct-09 5:56
Shelby Robertson 14-Oct-09 5:56 
AnswerRe: MenuItems not showing properly Pin
Mark Salsbery14-Oct-09 8:51
Mark Salsbery14-Oct-09 8:51 
GeneralRe: MenuItems not showing properly Pin
Shelby Robertson 14-Oct-09 9:00
Shelby Robertson 14-Oct-09 9:00 
GeneralRe: MenuItems not showing properly Pin
Shelby Robertson 14-Oct-09 14:12
Shelby Robertson 14-Oct-09 14:12 
<Window x:Class="Test.Main"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Test" Height="500" Width="700" ResizeMode="CanResizeWithGrip" Name="MainWindow"  
    WindowStyle="None" AllowsTransparency="True"
    Background="Transparent" BorderThickness="0" FrameworkElement.Loaded="MainWindow_Loaded" FrameworkElement.SizeChanged="Window_SizeChanged" >
    <Window.Resources>

    <DrawingBrush x:Key="yellowBackground">
        <DrawingBrush.Drawing>
            <DrawingGroup>
                <GeometryDrawing>
                    <GeometryDrawing.Brush>
                        <RadialGradientBrush Center="0.54326,0.45465" RadiusX="0.402049" RadiusY="1.02049" GradientOrigin="0.4326,0.45465">
                            <GradientStop Color="#ffffe1" Offset="0"/>
                            <GradientStop Color="#f8e737" Offset="0.461"/>
                            <GradientStop Color="#e79b00" Offset="1"/>
                        </RadialGradientBrush>
                    </GeometryDrawing.Brush>
                    <GeometryDrawing.Geometry>
                        <RectangleGeometry Rect="0,0 1,1" />
                    </GeometryDrawing.Geometry>
                </GeometryDrawing>
                <GeometryDrawing>
                    <GeometryDrawing.Brush>
                        <LinearGradientBrush StartPoint="0,0" EndPoint="0,1" SpreadMethod="Pad">
                            <GradientStop Color="#FFFFFFFF" Offset="0"/>
                            <GradientStop Color="#39FFFFFF" Offset="1"/>
                        </LinearGradientBrush>
                    </GeometryDrawing.Brush>
                    <GeometryDrawing.Geometry>
                        <RectangleGeometry Rect="0,0 1,1" />
                    </GeometryDrawing.Geometry>
                </GeometryDrawing>
            </DrawingGroup>
        </DrawingBrush.Drawing>
    </DrawingBrush>
    
    </Window.Resources>
    
    <Border Background="LightSteelBlue" CornerRadius="20,20,20,20">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" MinHeight="44.149" />
                <RowDefinition Height="*"/>
                <RowDefinition Height="150" MinHeight="20px"/>
            </Grid.RowDefinitions>
            <Border Height="44" VerticalAlignment="Top" CornerRadius="20,20,0,0" Background="{StaticResource yellowBackground}" Grid.Row="0">
                <StackPanel Height="44"  VerticalAlignment="Top"  Orientation="Vertical">
                    <Canvas Height="22" Background="Transparent" Name="TitleCanvas" PreviewMouseLeftButtonDown="DragWindow">
                        <Label FontWeight="Bold" FontFamily="Elephant" FontStyle="Italic" HorizontalAlignment="Left" Grid.Column="0">Test Title</Label>
                    </Canvas>
                    <Menu Height="22" Background="Transparent" BorderThickness="0" >
                        <MenuItem Header="File">
                            <MenuItem Header="Exit" Click="Exit_Click" />
                        </MenuItem>
                        <MenuItem Header="Help">
                            <MenuItem Header="About..." />
                        </MenuItem>
                    </Menu>
                </StackPanel>
            </Border>
            <Grid Grid.Row="1">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="200" MinWidth="25" MaxWidth="{Binding ElementName=MainWindow, Path=ActualWidth}"/>
                    <ColumnDefinition Width="*" MinWidth="25"/>
                </Grid.ColumnDefinitions>
                <StackPanel Grid.Column="0" x:Name="NavPanel">
                    <TreeView x:Name="NavTree" Background="Transparent" Height="{Binding ElementName=NavPanel, Path=ActualHeight}" BorderThickness="0"></TreeView>
                </StackPanel>
                <GridSplitter Width="3px"></GridSplitter>
                <StackPanel x:Name="lvPanel" Grid.Column="1" Background="Transparent">
                    <ListView Name="listView1" Width="{Binding ElementName=lvPanel, Path=ActualWidth}" Height="{Binding ElementName=lvPanel, Path=ActualHeight}" BorderThickness="0" Background="Transparent"/>
                </StackPanel>
            </Grid>
            <GridSplitter Grid.Row="2" ResizeDirection="Rows"
                    Grid.ColumnSpan="2"
                    HorizontalAlignment="Stretch"
                    VerticalAlignment="Top"
                    Height="3px"/>
        </Grid>
    </Border>
</Window>


Ennis Ray Lynch, Jr. wrote:
Unpaid overtime is slavery.


Trollslayer wrote:
Meetings - where minutes are taken and hours are lost.



GeneralRe: MenuItems not showing properly Pin
Mark Salsbery15-Oct-09 8:14
Mark Salsbery15-Oct-09 8:14 
GeneralRe: MenuItems not showing properly Pin
Shelby Robertson 15-Oct-09 8:16
Shelby Robertson 15-Oct-09 8:16 
QuestionTreeView Parent Control Pin
Adriaan Davel14-Oct-09 2:55
Adriaan Davel14-Oct-09 2:55 
QuestionProgress bar on loading a page Pin
ravi.vellanky13-Oct-09 21:13
ravi.vellanky13-Oct-09 21:13 
AnswerRe: Progress bar on loading a page Pin
Mark Salsbery14-Oct-09 8:39
Mark Salsbery14-Oct-09 8:39 
GeneralRe: Progress bar on loading a page Pin
ravi.vellanky14-Oct-09 19:21
ravi.vellanky14-Oct-09 19:21 
GeneralRe: Progress bar on loading a page Pin
Mark Salsbery15-Oct-09 7:57
Mark Salsbery15-Oct-09 7:57 
GeneralRe: Progress bar on loading a page Pin
ravi.vellanky19-Oct-09 19:43
ravi.vellanky19-Oct-09 19:43 
GeneralRe: Progress bar on loading a page Pin
Mark Salsbery20-Oct-09 7:26
Mark Salsbery20-Oct-09 7:26 
QuestionSilverlight Background color problem Pin
Blikkies13-Oct-09 1:13
professionalBlikkies13-Oct-09 1:13 
AnswerRe: Silverlight Background color problem Pin
Mark Salsbery13-Oct-09 7:17
Mark Salsbery13-Oct-09 7:17 
GeneralRe: Silverlight Background color problem Pin
Blikkies13-Oct-09 10:46
professionalBlikkies13-Oct-09 10:46 
QuestionWPF Large image grid - best control to use? Pin
Bex_300013-Oct-09 0:52
Bex_300013-Oct-09 0:52 
QuestionDraw database diagram using Silverlight Pin
Jay_se12-Oct-09 11:59
Jay_se12-Oct-09 11:59 
AnswerRe: Draw database diagram using Silverlight Pin
Mark Salsbery13-Oct-09 7:20
Mark Salsbery13-Oct-09 7:20 
AnswerRe: MVVM and using a Backgroundworker Pin
Pete O'Hanlon12-Oct-09 11:29
mvaPete O'Hanlon12-Oct-09 11:29 
GeneralRe: MVVM and using a Backgroundworker Pin
Pete O'Hanlon14-Oct-09 10:20
mvaPete O'Hanlon14-Oct-09 10:20 

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.