static resources color name

essamce 621 Reputation points
2020-03-28T16:12:40.513+00:00

<sys:Double x:Key="Window.Main.Background" >1200</sys:Double>

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

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

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 Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,783 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.