Click here to Skip to main content
14,364,335 members

Silverlight / WPF

 
PinnedHOW TO ANSWER A QUESTION PinPopular
Chris Maunder16-Jul-09 4:09
adminChris Maunder16-Jul-09 4:09 
PinnedHow to get an answer to your question PinPopular
Chris Maunder16-Jul-09 4:05
adminChris Maunder16-Jul-09 4:05 
QuestionDataGrid Column Right Aligned Pin
Kevin Marois16-Nov-19 14:45
professionalKevin Marois16-Nov-19 14:45 
AnswerRe: DataGrid Column Right Aligned Pin
Mycroft Holmes16-Nov-19 21:07
memberMycroft Holmes16-Nov-19 21:07 
AnswerRe: DataGrid Column Right Aligned Pin
Richard Deeming18-Nov-19 0:03
mveRichard Deeming18-Nov-19 0:03 
QuestionWPF C# Make window's the same width as the screen Pin
Acuena3-Nov-19 8:44
memberAcuena3-Nov-19 8:44 
AnswerRe: WPF C# Make window's the same width as the screen Pin
Richard MacCutchan3-Nov-19 22:45
protectorRichard MacCutchan3-Nov-19 22:45 
AnswerRe: WPF C# Make window's the same width as the screen Pin
Richard Deeming3-Nov-19 23:28
mveRichard Deeming3-Nov-19 23:28 
GeneralRe: WPF C# Make window's the same width as the screen Pin
Acuena4-Nov-19 13:31
memberAcuena4-Nov-19 13:31 
Hi!

SO close Smile | :)
It gives a very small gap between the screen edge and the window.
I took a screenshot of the screen so that I could zoom in and check how many pixels there was between the window and the screen.

It's around 8 pixels gap on the right side.
And even if I set Left and Top to 0, I get one pixel from the top and 8 from the Left.

Here is the XML code for the window that I have now:
<Window x:Class="Sales.Menu"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:local="clr-namespace:Sales"
        mc:Ignorable="d"
        Top="0"
        Left="0"
        Title="Menu" Height="450" Width="{Binding Source={x:Static SystemParameters.PrimaryScreenWidth}}"
        >
    <!--The rectangle below is just a test-->
    <Grid>
        <Rectangle Width="10"></Rectangle>
    </Grid>
</Window>


I would want it go to to the edge and there to be no gaps.

Thanks for the help so far Smile | :)
Have a nice day!
Thinking of getting a new IDE!

GeneralRe: WPF C# Make window's the same width as the screen Pin
Mycroft Holmes4-Nov-19 19:42
memberMycroft Holmes4-Nov-19 19:42 
GeneralRe: WPF C# Make window's the same width as the screen Pin
Gerry Schmitz5-Nov-19 6:25
mveGerry Schmitz5-Nov-19 6:25 
GeneralRe: WPF C# Make window's the same width as the screen Pin
Acuena8-Nov-19 6:21
memberAcuena8-Nov-19 6:21 
GeneralRe: WPF C# Make window's the same width as the screen Pin
Richard Deeming8-Nov-19 7:14
mveRichard Deeming8-Nov-19 7:14 
QuestionDataGrid with DataGridTemplateColumns - Cannot create new rows Pin
Mc_Topaz8-Oct-19 0:42
memberMc_Topaz8-Oct-19 0:42 
AnswerRe: DataGrid with DataGridTemplateColumns - Cannot create new rows Pin
Gerry Schmitz8-Oct-19 4:11
mveGerry Schmitz8-Oct-19 4:11 
NewsRe: DataGrid with DataGridTemplateColumns - Cannot create new rows Pin
Mc_Topaz8-Oct-19 4:25
memberMc_Topaz8-Oct-19 4:25 
QuestionWPF Pin
Member 145835423-Oct-19 23:29
memberMember 145835423-Oct-19 23:29 
AnswerRe: WPF Pin
Richard Deeming4-Oct-19 2:59
mveRichard Deeming4-Oct-19 2:59 
AnswerRe: WPF Pin
Richard MacCutchan4-Oct-19 4:22
protectorRichard MacCutchan4-Oct-19 4:22 
AnswerRe: WPF Pin
Gerry Schmitz4-Oct-19 7:32
mveGerry Schmitz4-Oct-19 7:32 
Questionvb.net Pin
Member 1458354220-Sep-19 22:27
memberMember 1458354220-Sep-19 22:27 
AnswerRe: vb.net Pin
Richard MacCutchan21-Sep-19 3:58
protectorRichard MacCutchan21-Sep-19 3:58 
Questionvb.net Pin
Member 1458354220-Sep-19 21:09
memberMember 1458354220-Sep-19 21:09 
AnswerRe: vb.net Pin
Richard MacCutchan20-Sep-19 22:07
protectorRichard MacCutchan20-Sep-19 22:07 
AnswerRe: vb.net Pin
Mycroft Holmes21-Sep-19 13:48
memberMycroft Holmes21-Sep-19 13:48 

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.