public GameLogicViewModel(DependencyObject progressBar) { this.progressBar = progressBar; initGameData(); visiblityOfReplayButton = Visibility.Collapsed; ColorList = new List <KeyValuePair <string, string> >(ColorDictionary.ColorDict); toBeSelectMessages = new string[] { "Background", "Color", "Meaning" }; r = new Random(DateTime.Now.Day * DateTime.Now.Hour * DateTime.Now.Minute * DateTime.Now.Second); setDataToLayout(); timerOn(); }
public object ConvertBack(object value, Type targetType, object parameter, string language) { Windows.UI.Xaml.Visibility v = (Windows.UI.Xaml.Visibility)value; return(v == Windows.UI.Xaml.Visibility.Visible); }
private void ConfigurarItensStackPanel(string v_sNome, string v_sDescricao, string v_sURLSite, string v_sURLImagem, Windows.UI.Xaml.Visibility v_eVisibility) { txbNomePodcast.Text = v_sNome; txbDescricaoPodcast.Text = v_sDescricao; txbSite.Text = v_sURLSite; if (String.IsNullOrEmpty(v_sURLSite) == false) { hprSite.NavigateUri = new Uri(v_sURLSite); } if (String.IsNullOrEmpty(v_sNome) == true) //quando é limpeza { imgPodcast.Source = null; } else { if (String.IsNullOrEmpty(v_sURLImagem) == false) { imgPodcast.Source = new BitmapImage(new Uri(v_sURLImagem)); } else { ConfigurarImagem("Assets\\Images\\Podcast\\Podcast200x200.png"); } } stackPanelVerificar.Visibility = v_eVisibility; }
public object Convert(object value, Type targetType, object parameter, string language) { Windows.UI.Xaml.Visibility mode = (Windows.UI.Xaml.Visibility)value; return(mode.ToString()); }