in FamilyNotes/Controls/NotesCanvas.cs [144:175]
public void FilterNotes(Person person)
{
// Each child control is a ContentPresenter that's wrapping a Note control.
var children = Children;
foreach (var noteContentPresenter in children)
{
Note n = GetVisualChild<Note>(noteContentPresenter);
StickyNote sn = n.DataContext as StickyNote;
CompositeTransform ct = n.RenderTransform as CompositeTransform;
if (sn.NoteIsFor.FriendlyName == person.FriendlyName ||
person.FriendlyName == App.EVERYONE ||
sn.NoteIsFor.FriendlyName == App.EVERYONE)
{
// Make note totally not transparent.
BringNoteToFront(n);
n.Opacity = _opacityTop;
ct.ScaleX = _noteScaleTopX;
ct.ScaleY = _noteScaleTopY;
n.ExpandNote();
}
else
{
// Make note a little transparent, ideally push it back into the z-dimension.
n.Opacity = _opacityMid;
ct.ScaleX = _noteScaleMidX;
ct.ScaleY = _noteScaleMidY;
n.CollapseNote();
}
}
}