Click here to Skip to main content
15,888,984 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Drawing Geometries to RenderTargetBitmap is being anti-aliased, can it be turned off ? Pin
sfogarasi16-Oct-09 8:42
sfogarasi16-Oct-09 8:42 
QuestionHow to save files in single DAT file in .NET? Pin
mittalpa15-Oct-09 6:58
mittalpa15-Oct-09 6:58 
AnswerRe: How to save files in single DAT file in .NET? Pin
Mark Salsbery15-Oct-09 7:50
Mark Salsbery15-Oct-09 7:50 
QuestionCan't get UriKind.Relative to work Pin
fjparisIII15-Oct-09 5:41
fjparisIII15-Oct-09 5:41 
AnswerRe: Can't get UriKind.Relative to work Pin
Mark Salsbery15-Oct-09 7:06
Mark Salsbery15-Oct-09 7:06 
GeneralRe: Can't get UriKind.Relative to work Pin
fjparisIII15-Oct-09 8:13
fjparisIII15-Oct-09 8:13 
GeneralRe: Can't get UriKind.Relative to work Pin
Mark Salsbery15-Oct-09 8:17
Mark Salsbery15-Oct-09 8:17 
GeneralRe: Can't get UriKind.Relative to work Pin
fjparisIII15-Oct-09 9:14
fjparisIII15-Oct-09 9:14 
General[Message Deleted] Pin
fjparisIII15-Oct-09 11:42
fjparisIII15-Oct-09 11:42 
QuestionRe: Can't get UriKind.Relative to work Pin
Mark Salsbery16-Oct-09 7:34
Mark Salsbery16-Oct-09 7:34 
AnswerRe: Can't get UriKind.Relative to work Pin
fjparisIII16-Oct-09 8:43
fjparisIII16-Oct-09 8:43 
GeneralRe: Can't get UriKind.Relative to work Pin
fjparisIII16-Oct-09 8:05
fjparisIII16-Oct-09 8:05 
GeneralRe: Can't get UriKind.Relative to work Pin
Mark Salsbery16-Oct-09 8:53
Mark Salsbery16-Oct-09 8:53 
GeneralRe: Can't get UriKind.Relative to work SOLVED! Pin
fjparisIII16-Oct-09 14:33
fjparisIII16-Oct-09 14:33 
GeneralRe: Can't get UriKind.Relative to work SOLVED! Pin
Mark Salsbery16-Oct-09 14:46
Mark Salsbery16-Oct-09 14:46 
GeneralRe: Can't get UriKind.Relative to work SOLVED! Pin
fjparisIII16-Oct-09 15:38
fjparisIII16-Oct-09 15:38 
QuestionNothing displayed when set a line to DashStyles.Dot Pin
CooperWu15-Oct-09 4:58
CooperWu15-Oct-09 4:58 
AnswerRe: Nothing displayed when set a line to DashStyles.Dot Pin
Mark Salsbery15-Oct-09 8:04
Mark Salsbery15-Oct-09 8:04 
QuestionControl Limitation Pin
Saiyed Alam14-Oct-09 18:39
Saiyed Alam14-Oct-09 18:39 
AnswerRe: Control Limitation Pin
Ian Shlasko15-Oct-09 3:47
Ian Shlasko15-Oct-09 3:47 
QuestionMenuItems not showing properly Pin
Shelby Robertson 14-Oct-09 4:56
Shelby Robertson 14-Oct-09 4:56 
AnswerRe: MenuItems not showing properly Pin
Mark Salsbery14-Oct-09 7:51
Mark Salsbery14-Oct-09 7:51 
GeneralRe: MenuItems not showing properly Pin
Shelby Robertson 14-Oct-09 8:00
Shelby Robertson 14-Oct-09 8:00 
GeneralRe: MenuItems not showing properly Pin
Shelby Robertson 14-Oct-09 13:12
Shelby Robertson 14-Oct-09 13: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 7:14
Mark Salsbery15-Oct-09 7:14 

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.