From 04e73bf48831a65baebddc4f815517e9b840d476 Mon Sep 17 00:00:00 2001 From: Konstantin Date: Tue, 23 Oct 2012 22:32:02 +0400 Subject: downcase --- Juick/LoginView.xaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Juick') diff --git a/Juick/LoginView.xaml b/Juick/LoginView.xaml index db5e193..e7b61e8 100644 --- a/Juick/LoginView.xaml +++ b/Juick/LoginView.xaml @@ -22,7 +22,7 @@ - + -- cgit v1.2.3 From 2e752f5f2d45ba2dc48bb83ac725d968c58acf58 Mon Sep 17 00:00:00 2001 From: vitalyster Date: Thu, 25 Oct 2012 00:37:31 +0400 Subject: Format code --- Juick/Juick.csproj | 4 +- Juick/MainPage.xaml | 280 ++++++++++++++++++++++++++-------------------------- 2 files changed, 143 insertions(+), 141 deletions(-) (limited to 'Juick') diff --git a/Juick/Juick.csproj b/Juick/Juick.csproj index ec24b06..7bd452a 100644 --- a/Juick/Juick.csproj +++ b/Juick/Juick.csproj @@ -125,7 +125,9 @@ - + + Designer + diff --git a/Juick/MainPage.xaml b/Juick/MainPage.xaml index a713a39..87e2764 100644 --- a/Juick/MainPage.xaml +++ b/Juick/MainPage.xaml @@ -1,32 +1,32 @@ - - - - - - + phoneshell:SystemTray.IsVisible="False"> + + + + + - - + + - - - + + - + - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - + + + + + + + \ No newline at end of file -- cgit v1.2.3 From 6b84ed69bdceea6873897898144792fa4fa12cf4 Mon Sep 17 00:00:00 2001 From: Konstantin Date: Sun, 6 Jan 2013 22:22:03 +0400 Subject: splash screen --- CommonResources/Application.svg | 1 - CommonResources/SplashScreenImage.svg | 29 +++++++++++++++++++++++++++++ Juick/SplashScreenImage.jpg | Bin 9417 -> 17118 bytes 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 CommonResources/SplashScreenImage.svg (limited to 'Juick') diff --git a/CommonResources/Application.svg b/CommonResources/Application.svg index 39571bd..36a47cc 100644 --- a/CommonResources/Application.svg +++ b/CommonResources/Application.svg @@ -1,6 +1,5 @@ - diff --git a/CommonResources/SplashScreenImage.svg b/CommonResources/SplashScreenImage.svg new file mode 100644 index 0000000..5cd1632 --- /dev/null +++ b/CommonResources/SplashScreenImage.svg @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Juick/SplashScreenImage.jpg b/Juick/SplashScreenImage.jpg index 353b192..5feee2e 100644 Binary files a/Juick/SplashScreenImage.jpg and b/Juick/SplashScreenImage.jpg differ -- cgit v1.2.3 From e85ff43a7640a1c0e5bf868fa5da807880f006f0 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sun, 13 Jan 2013 12:01:30 +0400 Subject: Fix binding in LoginView --- Juick/LoginView.xaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Juick') diff --git a/Juick/LoginView.xaml b/Juick/LoginView.xaml index e7b61e8..ad1d70c 100644 --- a/Juick/LoginView.xaml +++ b/Juick/LoginView.xaml @@ -29,7 +29,7 @@ - + -- cgit v1.2.3 From 36fa05d53ddbe4731deb8df937c188b0a7d7f4c3 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sun, 13 Jan 2013 12:24:07 +0400 Subject: Fix loading data twice --- Juick/ViewModels/MessageListViewModelBase.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Juick') diff --git a/Juick/ViewModels/MessageListViewModelBase.cs b/Juick/ViewModels/MessageListViewModelBase.cs index 5dc8aed..2631a53 100644 --- a/Juick/ViewModels/MessageListViewModelBase.cs +++ b/Juick/ViewModels/MessageListViewModelBase.cs @@ -47,7 +47,7 @@ namespace Juick.ViewModels /// public void LoadData() { - if (IsDataLoading) { + if (IsDataLoading || Items.Count > 0) { return; } -- cgit v1.2.3 From d6393c7f8a5eb3a377abd7f5fadc299b1d30c293 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sun, 13 Jan 2013 14:58:53 +0400 Subject: ProgressIndicator --- Juick/MainPage.xaml | 22 +++++++++++++++------- Juick/MainPage.xaml.cs | 37 ++++++++++++++++++++++++++----------- 2 files changed, 41 insertions(+), 18 deletions(-) (limited to 'Juick') diff --git a/Juick/MainPage.xaml b/Juick/MainPage.xaml index 87e2764..a06a305 100644 --- a/Juick/MainPage.xaml +++ b/Juick/MainPage.xaml @@ -14,17 +14,25 @@ FontSize="{StaticResource PhoneFontSizeNormal}" Foreground="{StaticResource PhoneForegroundBrush}" SupportedOrientations="PortraitOrLandscape" Orientation="Portrait" - phoneshell:SystemTray.IsVisible="False"> + phoneshell:SystemTray.IsVisible="True"> - - + + - - + + + + + + + + - + @@ -153,7 +161,7 @@ - + diff --git a/Juick/MainPage.xaml.cs b/Juick/MainPage.xaml.cs index eba1635..8296b18 100644 --- a/Juick/MainPage.xaml.cs +++ b/Juick/MainPage.xaml.cs @@ -1,20 +1,12 @@ using System; using System.Collections.Generic; -using System.Linq; -using System.Net; using System.Text; using System.Windows; using System.Windows.Controls; -using System.Windows.Documents; -using System.Windows.Input; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Shapes; -using Juick.Classes; +using System.Windows.Data; using Microsoft.Phone.Controls; using Microsoft.Phone.Notification; -using Microsoft.Xna.Framework.Media; -using System.Windows.Media.Imaging; +using Microsoft.Phone.Shell; namespace Juick { @@ -30,7 +22,7 @@ namespace Juick //string channelName = "JuickChannel"; // unused variable InitializeComponent(); - + /* // Try to find the push channel. pushChannel = HttpNotificationChannel.Find(channelName); @@ -71,6 +63,29 @@ namespace Juick // Set the data context of the listbox control to the sample data Home.DataContext = App.MyFeedView; Last.DataContext = App.LastView; + Loaded += (o, args) => + { + var progressIndicator = SystemTray.ProgressIndicator; + + if (progressIndicator != null) + { + return; + } + + progressIndicator = new ProgressIndicator(); + + SystemTray.SetProgressIndicator(this, progressIndicator); + + Binding binding = new Binding("IsDataLoading") { Source = Home.DataContext }; + + BindingOperations.SetBinding( + progressIndicator, ProgressIndicator.IsVisibleProperty, binding); + + binding = new Binding("IsDataLoading") { Source = Home.DataContext }; + + BindingOperations.SetBinding( + progressIndicator, ProgressIndicator.IsIndeterminateProperty, binding); + }; } protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e) -- cgit v1.2.3 From 2eea9fd05421bbc32ff6e07d8bb34c7e3a8856bb Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sun, 13 Jan 2013 16:57:50 +0400 Subject: Fix loading data twice, take 2 --- Juick/ThreadView.xaml.cs | 2 ++ Juick/ViewModels/MessageListViewModelBase.cs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'Juick') diff --git a/Juick/ThreadView.xaml.cs b/Juick/ThreadView.xaml.cs index 958efe2..d17f8f5 100644 --- a/Juick/ThreadView.xaml.cs +++ b/Juick/ThreadView.xaml.cs @@ -21,6 +21,8 @@ namespace Juick // When page is navigated to set data context to selected item in list protected override void OnNavigatedTo(NavigationEventArgs e) { + if (Model.Items.Count > 0) + return; string _mid = ""; if (NavigationContext.QueryString.TryGetValue("mid", out _mid)) { diff --git a/Juick/ViewModels/MessageListViewModelBase.cs b/Juick/ViewModels/MessageListViewModelBase.cs index 2631a53..5dc8aed 100644 --- a/Juick/ViewModels/MessageListViewModelBase.cs +++ b/Juick/ViewModels/MessageListViewModelBase.cs @@ -47,7 +47,7 @@ namespace Juick.ViewModels /// public void LoadData() { - if (IsDataLoading || Items.Count > 0) { + if (IsDataLoading) { return; } -- cgit v1.2.3 From 0c5aac46b9cd725de31a70c00376567bb02af66b Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sun, 13 Jan 2013 18:08:09 +0400 Subject: Replace buggy ListBox with ItemsControl+HyperlinkButton, fixes #6 --- Juick/Classes/ScrollViewerMonitor.cs | 25 +--- Juick/MainPage.xaml | 215 ++++++++++++++++++----------------- Juick/MainPage.xaml.cs | 26 ----- Juick/ViewModels/MessageViewModel.cs | 15 +++ 4 files changed, 125 insertions(+), 156 deletions(-) (limited to 'Juick') diff --git a/Juick/Classes/ScrollViewerMonitor.cs b/Juick/Classes/ScrollViewerMonitor.cs index 6a65773..a985360 100644 --- a/Juick/Classes/ScrollViewerMonitor.cs +++ b/Juick/Classes/ScrollViewerMonitor.cs @@ -37,7 +37,7 @@ namespace Juick.Classes { var element = (FrameworkElement)sender; element.Loaded -= element_Loaded; - var scrollViewer = FindChildOfType(element); + var scrollViewer = (ScrollViewer)element.Parent; if (scrollViewer == null) { throw new InvalidOperationException("ScrollViewer not found."); @@ -59,28 +59,5 @@ namespace Juick.Classes var binding = new Binding("VerticalOffset") { Source = scrollViewer }; listener.Attach(scrollViewer, binding); } - - static T FindChildOfType(DependencyObject root) - where T : class - { - var queue = new Queue(); - queue.Enqueue(root); - - while (queue.Count > 0) - { - var current = queue.Dequeue(); - for (int i = VisualTreeHelper.GetChildrenCount(current) - 1; 0 <= i; i--) - { - var child = VisualTreeHelper.GetChild(current, i); - var typedChild = child as T; - if (typedChild != null) - { - return typedChild; - } - queue.Enqueue(child); - } - } - return null; - } } } diff --git a/Juick/MainPage.xaml b/Juick/MainPage.xaml index a06a305..bffd94f 100644 --- a/Juick/MainPage.xaml +++ b/Juick/MainPage.xaml @@ -15,26 +15,26 @@ Foreground="{StaticResource PhoneForegroundBrush}" SupportedOrientations="PortraitOrLandscape" Orientation="Portrait" phoneshell:SystemTray.IsVisible="True"> - - - - - - + + + + + + - - - - - + + + + + - - + - + - - - + + + - - + + - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - - + - - - - + + + - - - - - - - - - - - - + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - - - - - + + + - - - - - - - - - - + + + + + + + + + + + + + + - - - + + + - - - - - - - + + + + + + + \ No newline at end of file diff --git a/Juick/MainPage.xaml.cs b/Juick/MainPage.xaml.cs index 8296b18..d6b0b08 100644 --- a/Juick/MainPage.xaml.cs +++ b/Juick/MainPage.xaml.cs @@ -159,32 +159,6 @@ namespace Juick ); } - private void ListBoxSelectionChanged(object sender, SelectionChangedEventArgs e) - { - // If selected index is -1 (no selection) do nothing - if (((ListBox)sender).SelectedIndex == -1) - return; - - // Navigate to the new page - NavigationService.Navigate(new Uri("/ThreadView.xaml?mid=" + App.MyFeedView.Items[((ListBox)sender).SelectedIndex].MID, UriKind.Relative)); - - // Reset selected index to -1 (no selection) - ((ListBox)sender).SelectedIndex = -1; - } - - private void LastBoxSelectionChanged(object sender, SelectionChangedEventArgs e) - { - // If selected index is -1 (no selection) do nothing - if (((ListBox)sender).SelectedIndex == -1) - return; - - // Navigate to the new page - NavigationService.Navigate(new Uri(string.Format("/ThreadView.xaml?mid={0}", App.LastView.Items[((ListBox)sender).SelectedIndex].MID), UriKind.Relative)); - - // Reset selected index to -1 (no selection) - ((ListBox)sender).SelectedIndex = -1; - } - private void ApplicationBarIconButtonClick(object sender, EventArgs e) { App.MyFeedView.Items.Clear(); diff --git a/Juick/ViewModels/MessageViewModel.cs b/Juick/ViewModels/MessageViewModel.cs index e120c5d..460df38 100644 --- a/Juick/ViewModels/MessageViewModel.cs +++ b/Juick/ViewModels/MessageViewModel.cs @@ -17,6 +17,7 @@ namespace Juick.ViewModels public MessageViewModel(Message message) { MID = message.Mid; + MessageUri = string.Format("/ThreadView.xaml?mid={0}", MID); RID = message.Rid; Username = message.User.UName; MessageText = HttpUtility.HtmlDecode(message.Body); @@ -138,6 +139,8 @@ namespace Juick.ViewModels } private string _status; + + /// /// Sample _viewModelBase property; this property is used in the view to display its value using a Binding. /// @@ -158,6 +161,18 @@ namespace Juick.ViewModels } } + private string _messageUri; + + public string MessageUri + { + get { return _messageUri; } + set + { + _messageUri = value; + NotifyPropertyChanged("MessageUri"); + } + } + public event PropertyChangedEventHandler PropertyChanged; public void NotifyPropertyChanged(String propertyName) -- cgit v1.2.3 From bcb74d109f1825c84ce78bafa582dff58288599f Mon Sep 17 00:00:00 2001 From: Konstantin Date: Sun, 13 Jan 2013 18:55:30 +0400 Subject: improve tiles for store --- Juick/SubmissionInfo/ApplicationTile.png | Bin 1169 -> 0 bytes Juick/SubmissionInfo/ApplicationTileMarket.png | Bin 1589 -> 4968 bytes Juick/SubmissionInfo/ApplicationTileSmall.png | Bin 580 -> 0 bytes Juick/SubmissionInfo/Settings.xml | 2 -- 4 files changed, 2 deletions(-) delete mode 100644 Juick/SubmissionInfo/ApplicationTile.png delete mode 100644 Juick/SubmissionInfo/ApplicationTileSmall.png (limited to 'Juick') diff --git a/Juick/SubmissionInfo/ApplicationTile.png b/Juick/SubmissionInfo/ApplicationTile.png deleted file mode 100644 index 68b5849..0000000 Binary files a/Juick/SubmissionInfo/ApplicationTile.png and /dev/null differ diff --git a/Juick/SubmissionInfo/ApplicationTileMarket.png b/Juick/SubmissionInfo/ApplicationTileMarket.png index 8493707..d402061 100644 Binary files a/Juick/SubmissionInfo/ApplicationTileMarket.png and b/Juick/SubmissionInfo/ApplicationTileMarket.png differ diff --git a/Juick/SubmissionInfo/ApplicationTileSmall.png b/Juick/SubmissionInfo/ApplicationTileSmall.png deleted file mode 100644 index f48658b..0000000 Binary files a/Juick/SubmissionInfo/ApplicationTileSmall.png and /dev/null differ diff --git a/Juick/SubmissionInfo/Settings.xml b/Juick/SubmissionInfo/Settings.xml index 1f6c8f2..d425313 100644 --- a/Juick/SubmissionInfo/Settings.xml +++ b/Juick/SubmissionInfo/Settings.xml @@ -1,6 +1,4 @@ - ApplicationTileSmall.png - ApplicationTile.png ApplicationTileMarket.png scr1.png;scr2.png;scr3.png;;;;;; \ No newline at end of file -- cgit v1.2.3 From 79317212ed6b3d26c3a2e765b6f58f9d43207f8d Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sun, 13 Jan 2013 19:07:37 +0400 Subject: bump assembly version to match Store version --- Juick/Properties/AssemblyInfo.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Juick') diff --git a/Juick/Properties/AssemblyInfo.cs b/Juick/Properties/AssemblyInfo.cs index d3496e2..9a52d9e 100644 --- a/Juick/Properties/AssemblyInfo.cs +++ b/Juick/Properties/AssemblyInfo.cs @@ -32,6 +32,6 @@ using System.Resources; // // You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] +[assembly: AssemblyVersion("1.0.9.9")] +[assembly: AssemblyFileVersion("1.0.9.9")] [assembly: NeutralResourcesLanguageAttribute("en-US")] -- cgit v1.2.3