Hi Askmaan,
Just try this code :
<Menu x:Name="menu" HorizontalAlignment="Left" Height="24" VerticalAlignment="Top" Width="{Binding ElementName=grid_Main, Path=ActualWidth}">
Then your XAML code will be as:
<Window x:Class="NOC_PDFTool.MainWindow"
Title="main" Height="350" Width="525" Icon="images/pdfsmall.ico">
<Grid Name="grid_Main">
<Menu x:Name="menu" HorizontalAlignment="Left" Height="24" VerticalAlignment="Top" Width="{Binding ElementName=grid_Main, Path=ActualWidth}">
<MenuItem Header="Help">
<MenuItem Header="View Help"/>
<MenuItem Header="About PDF tool"/>
</MenuItem>
<MenuItem Header="Exit"/>
</Menu>
</Grid>
</Window>
Posted On:
01-Jul-2015 20:53