Based upon your clarifications, the effect you want to achieve is to place a translucent veneer over the client area, and adjust its appearance programmatically. The technique for this is to use the WPF Grid. This control allows for layering. Here's a Xaml fragment that sets up two layers...
<Window.Resources>
<SolidColorBrush Color="Yellow" x:Key="MyVeneerBrush"/>
</Window.Resources>
<Grid>
<Grid Background="{StaticResource MyVeneerBrush}" Opacity="{Binding VeneerOpacity}"/>
<Grid>
<DockPanel>
<!--Layout goes here-->
<TextBlock Text="Hello" FontSize="52"/>
</DockPanel>
</Grid>
</Grid>
The first layer contains the veneer and the second layer contains the content. Opacity on the first layer can be set from 0 (totally transparent) to 1 (totally visible), and in between values will give a translucent quality. You would need to write your ViewModel along these lines...
public class ViewModel :INotifyPropertyChanged
{
public ViewModel()
{
TurnVeneerOn();
}
private void TurnVeneerOff()
{
VeneerOpacity = 0;
}
private void TurnVeneerOn()
{
VeneerOpacity = 0.4;
}
private double _veneerOpacity;
public double VeneerOpacity
{
[DebuggerStepThrough]
get { return _veneerOpacity; }
[DebuggerStepThrough]
set
{
if (value != _veneerOpacity)
{
_veneerOpacity = value;
OnPropertyChanged("VeneerOpacity");
}
}
}
#region INotifyPropertyChanged Implementation
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void OnPropertyChanged(string name)
{
var handler = System.Threading.Interlocked.CompareExchange(ref PropertyChanged, null, null);
if (handler != null)
{
handler(this, new PropertyChangedEventArgs(name));
}
}
#endregion
}
This VM exposes a property that binds to the View and controls the opacity of they first layer in the Xaml. There's two indicative methods thrown in to help get you started.
You will need to experiment with the window background and the brush and various levels of opacity to get the exact effect you are after, but there's enough here to get how it works.
The key is to use the Grid's layering capability.