Hi All,
In WPF application, I want to set dialog property to be always present in background(windowA), even though it is obscured by some other window in the foreground due to some help button click, Once the foreground window is closed (windowB) the background windowA should be visible, and hence, I had made following code changes to WPF XAML code
Xaml code for WindowA
Window x:Class="UI.Windows.WindowA"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="windowA" Height="410" Width="468" WindowStyle="SingleBorderWindow" ResizeMode="NoResize" Visibility="Visible" WindowStartupLocation="CenterScreen" IsTabStop="True" Background="#E8EDF0" KeyUp="Window_KeyUp">
...............
in WindowsA.Xaml.cs file
......
publicVisibilityVisibility { get; set; }
......
I get the below error on compilation, even though all namespaces are mentioned.
error MC3029: 'Visibility' member is not valid because it does not have a qualifying type name
Also, I had added the following attributes to XAML code in WindowA
(Windows_Status=Normal; Visibility=Visible, IsFocusable=True; IsdisplayedInTaskbar=false)
even though the above settings does not enable the windowA once, I close the windowB,
(Always WindowA is either hidden/Invisible) when WindowB is closed.
Details: Windows 7 O/S, VS 2010 IDE
Any help in resolving the above would be much appreciable,
Regards,
VishalK_90