-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
225 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<local:CurrentTopicViewModel | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="clr-namespace:sbbs_client_wp7" | ||
xmlns:sbbs="clr-namespace:sbbs_client_wp7.Sbbs" | ||
Board="C_CPlusPlus" | ||
Title="8G的U盘现在的市场价是多少?"> | ||
|
||
<local:CurrentTopicViewModel.Topics> | ||
<sbbs:TopicViewModel Title="江南听雨BBS技术站务2011年下半年总结" Author="moqi88" Board="BBSView" Id="43647" Replies="20" Read="100" Top="False" Mark="False"/> | ||
<sbbs:TopicViewModel Title="江南听雨BBS技术站务2011年下半年总结" Author="moqi88" Board="BBSView" Id="43647" Replies="10" Read="100" Top="False" Mark="False"/> | ||
<sbbs:TopicViewModel Title="江南听雨BBS技术站务2011年下半年总结" Author="moqi88" Board="BBSView" Id="43647" Replies="10" Read="100" Top="False" Mark="False"/> | ||
<sbbs:TopicViewModel Title="江南听雨BBS技术站务2011年下半年总结" Author="moqi88" Board="BBSView" Id="43647" Replies="13" Read="100" Top="False" Mark="False"/> | ||
<sbbs:TopicViewModel Title="江南听雨BBS技术站务2011年下半年总结" Author="moqi88" Board="BBSView" Id="43647" Replies="14" Read="100" Top="False" Mark="False"/> | ||
<sbbs:TopicViewModel Title="江南听雨BBS技术站务2011年下半年总结" Author="moqi88" Board="BBSView" Id="43647" Replies="10" Read="100" Top="False" Mark="False"/> | ||
<sbbs:TopicViewModel Title="江南听雨BBS技术站务2011年下半年总结" Author="moqi88" Board="BBSView" Id="43647" Replies="10" Read="100" Top="False" Mark="False"/> | ||
<sbbs:TopicViewModel Title="江南听雨BBS技术站务2011年下半年总结" Author="moqi88" Board="BBSView" Id="43647" Replies="10" Read="100" Top="False" Mark="False"/> | ||
<sbbs:TopicViewModel Title="江南听雨BBS技术站务2011年下半年总结" Author="moqi88" Board="BBSView" Id="43647" Replies="10" Read="100" Top="False" Mark="False"/> | ||
<sbbs:TopicViewModel Title="江南听雨BBS技术站务2011年下半年总结" Author="moqi88" Board="BBSView" Id="43647" Replies="10" Read="100" Top="False" Mark="False"/> | ||
<sbbs:TopicViewModel Title="江南听雨BBS技术站务2011年下半年总结" Author="moqi88" Board="BBSView" Id="43647" Replies="10" Read="100" Top="False" Mark="False"/> | ||
</local:CurrentTopicViewModel.Topics> | ||
|
||
</local:CurrentTopicViewModel> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
<phone:PhoneApplicationPage | ||
x:Class="sbbs_client_wp7.TopicPage" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" | ||
xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit" | ||
FontFamily="{StaticResource PhoneFontFamilyNormal}" | ||
FontSize="{StaticResource PhoneFontSizeNormal}" | ||
Foreground="{StaticResource PhoneForegroundBrush}" | ||
SupportedOrientations="Portrait" Orientation="Portrait" | ||
mc:Ignorable="d" d:DesignHeight="696" d:DesignWidth="480" | ||
shell:SystemTray.IsVisible="True" | ||
toolkit:TiltEffect.IsTiltEnabled="True" | ||
d:DataContext="{d:DesignData SampleData/CurrentTopicViewModelSampleData.xaml}"> | ||
|
||
<shell:SystemTray.ProgressIndicator> | ||
<shell:ProgressIndicator Text="载入中..." | ||
IsVisible="{Binding IsLoaded, Converter={StaticResource BoolReverseConverter}}" | ||
IsIndeterminate="{Binding IsLoaded, Converter={StaticResource BoolReverseConverter}}"/> | ||
</shell:SystemTray.ProgressIndicator> | ||
|
||
<toolkit:TransitionService.NavigationInTransition> | ||
<toolkit:NavigationInTransition> | ||
<toolkit:NavigationInTransition.Backward> | ||
<toolkit:TurnstileTransition Mode="BackwardIn"/> | ||
</toolkit:NavigationInTransition.Backward> | ||
<toolkit:NavigationInTransition.Forward> | ||
<toolkit:TurnstileTransition Mode="ForwardIn"/> | ||
</toolkit:NavigationInTransition.Forward> | ||
</toolkit:NavigationInTransition> | ||
</toolkit:TransitionService.NavigationInTransition> | ||
<toolkit:TransitionService.NavigationOutTransition> | ||
<toolkit:NavigationOutTransition> | ||
<toolkit:NavigationOutTransition.Backward> | ||
<toolkit:TurnstileTransition Mode="BackwardOut"/> | ||
</toolkit:NavigationOutTransition.Backward> | ||
<toolkit:NavigationOutTransition.Forward> | ||
<toolkit:TurnstileTransition Mode="ForwardOut"/> | ||
</toolkit:NavigationOutTransition.Forward> | ||
</toolkit:NavigationOutTransition> | ||
</toolkit:TransitionService.NavigationOutTransition> | ||
|
||
<!--LayoutRoot is the root grid where all page content is placed--> | ||
<Grid x:Name="LayoutRoot" Background="Transparent"> | ||
<Grid.RowDefinitions> | ||
<RowDefinition Height="Auto"/> | ||
<RowDefinition Height="*"/> | ||
</Grid.RowDefinitions> | ||
|
||
<!--TitlePanel contains the name of the application and page title--> | ||
<StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28"> | ||
<TextBlock x:Name="BoardName" Text="{Binding Board}" Style="{StaticResource PhoneTextNormalStyle}"/> | ||
<TextBlock x:Name="BoardDescription" Text="{Binding Title}" TextWrapping="Wrap" Margin="9,-7,0,0" Foreground="{StaticResource PhoneAccentBrush}" Style="{StaticResource PhoneTextExtraLargeStyle}"/> | ||
</StackPanel> | ||
|
||
<!--ContentPanel - place additional content here--> | ||
<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0"></Grid> | ||
</Grid> | ||
|
||
<phone:PhoneApplicationPage.ApplicationBar> | ||
<shell:ApplicationBar IsVisible="True" IsMenuEnabled="True"> | ||
<shell:ApplicationBarIconButton IconUri="/Images/new.png" Text="回复"/> | ||
<shell:ApplicationBarIconButton IconUri="/Images/refresh.png" Text="刷新"/> | ||
</shell:ApplicationBar> | ||
</phone:PhoneApplicationPage.ApplicationBar> | ||
|
||
</phone:PhoneApplicationPage> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Net; | ||
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 Microsoft.Phone.Controls; | ||
|
||
namespace sbbs_client_wp7 | ||
{ | ||
public partial class TopicPage : PhoneApplicationPage | ||
{ | ||
public TopicPage() | ||
{ | ||
InitializeComponent(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
using System; | ||
using System.ComponentModel; | ||
using System.Collections.Generic; | ||
using System.Diagnostics; | ||
using System.Text; | ||
using System.Windows; | ||
using System.Windows.Controls; | ||
using System.Windows.Data; | ||
using System.Collections.ObjectModel; | ||
|
||
namespace sbbs_client_wp7 | ||
{ | ||
using Sbbs; | ||
|
||
public class CurrentTopicViewModel : INotifyPropertyChanged | ||
{ | ||
private string board; | ||
private string title; | ||
private bool isLoaded; | ||
private ObservableCollection<TopicViewModel> topics; | ||
|
||
public string Board | ||
{ | ||
get | ||
{ | ||
return board; | ||
} | ||
set | ||
{ | ||
if (board != value) | ||
{ | ||
board = value; | ||
NotifyPropertyChanged("Board"); | ||
} | ||
} | ||
} | ||
|
||
public string Title | ||
{ | ||
get | ||
{ | ||
return title; | ||
} | ||
set | ||
{ | ||
if (title != value) | ||
{ | ||
title = value; | ||
NotifyPropertyChanged("Title"); | ||
} | ||
} | ||
} | ||
|
||
public ObservableCollection<TopicViewModel> Topics | ||
{ | ||
get | ||
{ | ||
return topics; | ||
} | ||
set | ||
{ | ||
if (topics != value) | ||
{ | ||
topics = value; | ||
NotifyPropertyChanged("Topics"); | ||
} | ||
} | ||
} | ||
|
||
public bool IsLoaded | ||
{ | ||
get | ||
{ | ||
return isLoaded; | ||
} | ||
set | ||
{ | ||
if (isLoaded != value) | ||
{ | ||
isLoaded = value; | ||
NotifyPropertyChanged("IsLoaded"); | ||
} | ||
} | ||
} | ||
|
||
public event PropertyChangedEventHandler PropertyChanged; | ||
private void NotifyPropertyChanged(String propertyName) | ||
{ | ||
PropertyChangedEventHandler handler = PropertyChanged; | ||
if (null != handler) | ||
{ | ||
handler(this, new PropertyChangedEventArgs(propertyName)); | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters