protected void CustomizeView(Domain.Functionality data)
        {
            Run       run1      = new Run(data.Name);
            Hyperlink hyperLink = new Hyperlink(run1)
            {
                NavigateUri = new Uri("http://localhost//" + data.Name),
                //DataContext = token
            };

            //this.TextBlock.Inlines.Add(hyperLink);
            //this.TextBlock.ToolTip = data.name;
            // hyperLink.RequestNavigate += OnRequestNavigate;
            this.CheckBox.Content    = data.Name;
            this.CheckBox.ToolTip    = data.Name;
            this.CheckBox.Tag        = data;
            this.CheckBox.Checked   += OnSelectFunctionnality;
            this.CheckBox.Unchecked += OnDeselectFunctionnality;
        }
 public FunctionnalityField(Domain.Functionality data) : this()
 {
     this.data = data;
     CustomizeView(data);
 }