question

essamce avatar image
0 Votes"
essamce asked AlexLi-MSFT commented

static resources color name

<sys:Double x:Key=&#34;Window.Main.Background&#34; >1200</sys:Double>

/////////////////////////////////////////////////////////////////////////////////////

<Window x:Class=&#34;DCAD.MainWindow&#34;
xmlns=&#34;http://schemas.microsoft.com/winfx/2006/xaml/presentation&#34;
xmlns:x=&#34;http://schemas.microsoft.com/winfx/2006/xaml&#34;
xmlns:d=&#34;http://schemas.microsoft.com/expression/blend/2008&#34;
xmlns:mc=&#34;http://schemas.openxmlformats.org/markup-compatibility/2006&#34;
xmlns:local=&#34;clr-namespace:DCAD&#34;
mc:Ignorable=&#34;d&#34;
WindowStartupLocation=&#34;CenterScreen&#34;
Title=&#34;MainWindow&#34;
Width=&#34;{StaticResource Window.Main.Background}&#34;>


it works , since i copied/pasted it i don't feel comfortable to the name Window.Main.Background the dot,
is it different from WindowMainBackground?
thanks in advance

windows-wpf
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I test your code,it also works well.What do you say you don't feel comfortable to the name Window.Main.Background?Please give your screenshot about your issue.

1 Vote 1 ·

0 Answers