internal void OnIsCheckedChanged(FilterVM filterVM)
 {
     // Prevent the control from shrinking in size. That will make clicking with
     // the mouse much more difficult.
     if (filters.Any(a => a.IsChecked))
     {
         control.MinHeight = control.ActualHeight;
     }
     else
     {
         control.MinHeight = 0;
     }
     Refilter();
 }
Exemple #2
0
        public string GetToolTip(FilterVM filterVM)
        {
            if (session.IsDismissed)
            {
                return(null);
            }
            var toolTip   = filterVM.ToolTip;
            var accessKey = filterVM.AccessKey;

            if (string.IsNullOrEmpty(toolTip))
            {
                return(null);
            }
            if (!string.IsNullOrEmpty(accessKey))
            {
                return(string.Format("{0} ({1})", toolTip, string.Format(dnSpy_Resources.ShortCutKeyAltPlusAnyKey, accessKey.ToUpper())));
            }
            return(toolTip);
        }
		public string GetToolTip(FilterVM filterVM) {
			if (filterVM == null)
				throw new ArgumentNullException(nameof(filterVM));
			if (session.IsDismissed)
				return null;
			var toolTip = filterVM.ToolTip;
			var accessKey = filterVM.AccessKey;
			if (string.IsNullOrEmpty(toolTip))
				return null;
			if (!string.IsNullOrEmpty(accessKey))
				return string.Format("{0} ({1})", toolTip, string.Format(dnSpy_Resources.ShortCutKeyAltPlusAnyKey, accessKey.ToUpper()));
			return toolTip;
		}
		internal void OnIsCheckedChanged(FilterVM filterVM) {
			// Prevent the control from shrinking in size. That will make clicking with
			// the mouse much more difficult.
			if (filters.Any(a => a.IsChecked))
				control.MinHeight = control.ActualHeight;
			else
				control.MinHeight = 0;
			Refilter();
		}
Exemple #5
0
 public ImageSource GetImageSource(FilterVM filterVM) => GetImageSource(filterVM.Image);