WPF: Customizing the appearence of a window n XAML
-
Hello guys. I tried to replicate a code kindly provided in this WPF customizing the appearance of a window in XAML sample in C#, XAML for Visual Studio 2013[^] and had got fails. Could someone replicate this code and upload working one from
MainWindow.xaml
and fromApp.xaml
? P.S. I'm using VS2015 Thanks in advance!No. It doesn't quite work like that. We do not do your work for you. If you want someone to write your code, you have to pay - I suggest you go to Freelancer.com and ask there. But be aware: you get what you pay for. Pay peanuts, get monkeys. The idea of "development" is as the word suggests: "The systematic use of scientific and technical knowledge to meet specific objectives or requirements." BusinessDictionary.com[^] That's not the same thing as "have a quick google and give up if I can't find exactly the right code". So either pay someone to do it, or learn how to write it yourself. We aren't here to do it for you.
Sent from my Amstrad PC 1640 Never throw anything away, Griff Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!
-
No. It doesn't quite work like that. We do not do your work for you. If you want someone to write your code, you have to pay - I suggest you go to Freelancer.com and ask there. But be aware: you get what you pay for. Pay peanuts, get monkeys. The idea of "development" is as the word suggests: "The systematic use of scientific and technical knowledge to meet specific objectives or requirements." BusinessDictionary.com[^] That's not the same thing as "have a quick google and give up if I can't find exactly the right code". So either pay someone to do it, or learn how to write it yourself. We aren't here to do it for you.
Sent from my Amstrad PC 1640 Never throw anything away, Griff Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!
Talk of money? If I were Moderator I would ban such posts (where there are talks of money). Because it is a sure sign of soon dying of the resource. PostScriptum: One of the principles of Free Internet sounds right about "peanuts and useful monkeys". Otherwise, a resource will die. Hope this helps.
-
Talk of money? If I were Moderator I would ban such posts (where there are talks of money). Because it is a sure sign of soon dying of the resource. PostScriptum: One of the principles of Free Internet sounds right about "peanuts and useful monkeys". Otherwise, a resource will die. Hope this helps.
We have a very firm policy on spam (and yes, I'm a moderator) and my post doesn't even come close to approaching it. You are demanding that someone here should do your work for you, and provide you the code. That isn't what we as a site are here for: it's your homework or your "paid work" (it doesn't matter which it is) and that means that it's your task, not ours. We are willing to help, but not to the extent of you getting rewarded for our effort! :laugh:
Sent from my Amstrad PC 1640 Never throw anything away, Griff Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!
-
Hello guys. I tried to replicate a code kindly provided in this WPF customizing the appearance of a window in XAML sample in C#, XAML for Visual Studio 2013[^] and had got fails. Could someone replicate this code and upload working one from
MainWindow.xaml
and fromApp.xaml
? P.S. I'm using VS2015 Thanks in advance!Perhaps if you tell us what problems you're having - the full details of the error, and the line it occurs on - then someone might be able to help you. Otherwise, you might want to take a look at a MahApps.Metro[^], which provides a relatively easy way to customize your WPF windows.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
-
We have a very firm policy on spam (and yes, I'm a moderator) and my post doesn't even come close to approaching it. You are demanding that someone here should do your work for you, and provide you the code. That isn't what we as a site are here for: it's your homework or your "paid work" (it doesn't matter which it is) and that means that it's your task, not ours. We are willing to help, but not to the extent of you getting rewarded for our effort! :laugh:
Sent from my Amstrad PC 1640 Never throw anything away, Griff Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!
Here's my
App.xaml
<Setter Property="WindowStyle" Value="None"/> <Setter Property="AllowsTransparency" Value="True"/> <Setter Property="MinWidth" Value="100"/> <Setter Property="MinHeight" Value="46"/> <!--CaptionHeight + ResizeBorderThickness \* 2--> <Setter Property="Background" Value="Yellow"/> <Setter Property="BorderBrush" Value="Green"/> <Setter Property="BorderThickness" Value="5"/> <Setter Property="Foreground" Value="DarkRed"/> <Setter Property="Template" Value="{StaticResource WindowTemplate}"/>
Here's my
MainWindow.xaml
I've got a fail in
MainWindow.xaml
where Style="{StaticResource RedWindow}" is highlighted inred
. I understand that I have noRedWindow
resource at all. However, what I need to do in this case. Thanks in advance! -
Perhaps if you tell us what problems you're having - the full details of the error, and the line it occurs on - then someone might be able to help you. Otherwise, you might want to take a look at a MahApps.Metro[^], which provides a relatively easy way to customize your WPF windows.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
-
Here's my
App.xaml
<Setter Property="WindowStyle" Value="None"/> <Setter Property="AllowsTransparency" Value="True"/> <Setter Property="MinWidth" Value="100"/> <Setter Property="MinHeight" Value="46"/> <!--CaptionHeight + ResizeBorderThickness \* 2--> <Setter Property="Background" Value="Yellow"/> <Setter Property="BorderBrush" Value="Green"/> <Setter Property="BorderThickness" Value="5"/> <Setter Property="Foreground" Value="DarkRed"/> <Setter Property="Template" Value="{StaticResource WindowTemplate}"/>
Here's my
MainWindow.xaml
I've got a fail in
MainWindow.xaml
where Style="{StaticResource RedWindow}" is highlighted inred
. I understand that I have noRedWindow
resource at all. However, what I need to do in this case. Thanks in advance!Pew_new wrote:
<Style x:Key="CustomWindow"
Pew_new wrote:
Style="{StaticResource RedWindow}"
That's a mistake in the text of the sample you're following. The
{StaticResource ...}
key needs to match the<Style x:Key="..."
key. Change the window style to:Style="{StaticResource CustomWindow}"
Resources - The complete WPF tutorial[^]
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
-
Pew_new wrote:
<Style x:Key="CustomWindow"
Pew_new wrote:
Style="{StaticResource RedWindow}"
That's a mistake in the text of the sample you're following. The
{StaticResource ...}
key needs to match the<Style x:Key="..."
key. Change the window style to:Style="{StaticResource CustomWindow}"
Resources - The complete WPF tutorial[^]
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
-
And I've got a fail in
App.xaml
right after changing toCustomWindow
. Value="{StaticResource WindowTemplate}"/>That resource seems to be missing from the text of the code sample. You'll probably need to download the code to see it.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
-
That resource seems to be missing from the text of the code sample. You'll probably need to download the code to see it.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer