Click here to Skip to main content
15,798,111 members
Home / Discussions / WPF
   

WPF

 
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
Acuena3-Nov-19 8:44 
AnswerRe: WPF C# Make window's the same width as the screen Pin
Richard MacCutchan3-Nov-19 22:45
mveRichard 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
Acuena4-Nov-19 13:31 
GeneralRe: WPF C# Make window's the same width as the screen Pin
Mycroft Holmes4-Nov-19 19:42
professionalMycroft 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
Acuena8-Nov-19 6:21 
I was about to try Gerry's suggestion when I decided to test retriving the screen width with code and set the window size to it.
It worked, but I wonder, is there not a way to do this without using code in WPF?
Here is the code I used if someone is interested:
this.Width = System.Windows.SystemParameters.PrimaryScreenWidth+2;
Note that +2 is there since the Windows Left parameter in the XML are set to -2, had to compensate for that or I get a small gap to the right.

I put it right below the "InitializeComponent();" call.
Have a nice day!
Thinking of getting a new IDE!

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
Mc_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
Mc_Topaz8-Oct-19 4:25 
QuestionWPF Pin
RajaMohammed.A3-Oct-19 23:29
RajaMohammed.A3-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
mveRichard MacCutchan4-Oct-19 4:22 
AnswerRe: WPF Pin
Gerry Schmitz4-Oct-19 7:32
mveGerry Schmitz4-Oct-19 7:32 
Questionvb.net Pin
RajaMohammed.A20-Sep-19 22:27
RajaMohammed.A20-Sep-19 22:27 
AnswerRe: vb.net Pin
Richard MacCutchan21-Sep-19 3:58
mveRichard MacCutchan21-Sep-19 3:58 
Questionvb.net Pin
RajaMohammed.A20-Sep-19 21:09
RajaMohammed.A20-Sep-19 21:09 
AnswerRe: vb.net Pin
Richard MacCutchan20-Sep-19 22:07
mveRichard MacCutchan20-Sep-19 22:07 
AnswerRe: vb.net Pin
Mycroft Holmes21-Sep-19 13:48
professionalMycroft Holmes21-Sep-19 13:48 
QuestionHow to use DataTrigger to run Storyboard? Pin
Pew_new20-Sep-19 9:00
Pew_new20-Sep-19 9:00 
QuestionWPF Pin
RajaMohammed.A19-Sep-19 3:35
RajaMohammed.A19-Sep-19 3:35 
AnswerRe: WPF Pin
Richard Deeming19-Sep-19 3:58
mveRichard Deeming19-Sep-19 3:58 
AnswerRe: WPF Pin
Mycroft Holmes19-Sep-19 14:07
professionalMycroft Holmes19-Sep-19 14:07 

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.