示例#1
0
        public object ConvertBack(object value, Type targetType, object parameter, string language)
        {
            Windows.UI.Xaml.Controls.Symbol symbol = (Windows.UI.Xaml.Controls.Symbol)value;
            bool result = true;

            if (symbol.Equals(Windows.UI.Xaml.Controls.Symbol.Stop))
            {
                result = false;
            }

            return(result);
        }
示例#2
0
        private static TabViewItem CreateTabViewItem(string name, Symbol icon, bool closable = true, bool enabled = true)
        {
            var tabViewItem = new TabViewItem();

            tabViewItem.Header     = name;
            tabViewItem.IconSource = new Microsoft.UI.Xaml.Controls.SymbolIconSource()
            {
                Symbol = icon
            };
            tabViewItem.IsClosable = closable;
            tabViewItem.IsEnabled  = enabled;

            return(tabViewItem);
        }
示例#3
0
 public object Convert(object value, Type targetType, object parameter, string language)
 {
     Windows.UI.Xaml.Controls.Symbol symbol = (bool)value ? Windows.UI.Xaml.Controls.Symbol.Play : Windows.UI.Xaml.Controls.Symbol.Stop;
     return(symbol);
 }