-
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
25 changed files
with
247 additions
and
40 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,53 @@ | ||
<phone:PhoneApplicationPage | ||
x:Class="sbbs_client_wp7.HotPage" | ||
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:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit" | ||
xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" | ||
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" | ||
FontFamily="{StaticResource PhoneFontFamilyNormal}" | ||
FontSize="{StaticResource PhoneFontSizeNormal}" | ||
Foreground="{StaticResource PhoneForegroundBrush}" | ||
SupportedOrientations="Portrait" Orientation="Portrait" | ||
mc:Ignorable="d" d:DesignHeight="696" d:DesignWidth="480" | ||
toolkit:TiltEffect.IsTiltEnabled="True" | ||
shell:SystemTray.Opacity="{Binding IsLoading, Converter={StaticResource LoadedOpacityConerter}, ConverterParameter=true}" | ||
shell:SystemTray.IsVisible="True"> | ||
|
||
<!--LayoutRoot is the root grid where all page content is placed--> | ||
<Grid x:Name="LayoutRoot" Background="Transparent"> | ||
<!--Pivot Control--> | ||
<controls:Pivot Title="虎踞龙蟠BBS"> | ||
<!--Pivot item one--> | ||
<controls:PivotItem Header="分区热点"> | ||
<ListBox ItemsSource="{Binding Topics}" ItemTemplate="{StaticResource TopicDataTemplate}"> | ||
<ListBox.ItemContainerStyle> | ||
<Style TargetType="ListBoxItem"> | ||
<Setter Property="HorizontalContentAlignment" Value="Stretch"/> | ||
</Style> | ||
</ListBox.ItemContainerStyle> | ||
</ListBox> | ||
</controls:PivotItem> | ||
|
||
<!--Pivot item two--> | ||
<controls:PivotItem Header="热门版面"> | ||
<Grid/> | ||
</controls:PivotItem> | ||
</controls:Pivot> | ||
</Grid> | ||
|
||
<phone:PhoneApplicationPage.ApplicationBar> | ||
<shell:ApplicationBar IsVisible="True" IsMenuEnabled="True"> | ||
<shell:ApplicationBarIconButton x:Name="appbar_button1" IconUri="/Images/appbar_button1.png" Text="Button 1"/> | ||
<shell:ApplicationBarIconButton x:Name="appbar_button2" IconUri="/Images/appbar_button2.png" Text="Button 2"/> | ||
<shell:ApplicationBar.MenuItems> | ||
<shell:ApplicationBarMenuItem x:Name="menuItem1" Text="MenuItem 1"/> | ||
<shell:ApplicationBarMenuItem x:Name="menuItem2" Text="MenuItem 2"/> | ||
</shell:ApplicationBar.MenuItems> | ||
</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 HotPage : PhoneApplicationPage | ||
{ | ||
public HotPage() | ||
{ | ||
InitializeComponent(); | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,35 +1,34 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<Deployment xmlns="http://schemas.microsoft.com/windowsphone/2009/deployment" AppPlatformVersion="7.1"> | ||
<App xmlns="" ProductID="{df35a3b9-d6fc-475e-b676-9c4143259657}" Title="虎踞龙蟠BBS" RuntimeType="Silverlight" Version="1.0.0.0" Genre="apps.normal" Author="赵成" Description="虎踞龙蟠BBS官方客户端" Publisher="小型笨蛋"> | ||
<App xmlns="" ProductID="{df35a3b9-d6fc-475e-b676-9c4143259657}" Title="虎踞龙蟠BBS" RuntimeType="Silverlight" Version="1.0.0.0" Genre="apps.normal" Author="赵成" Description="虎踞龙蟠BBS官方客户端" Publisher="小型笨蛋"> | ||
<IconPath IsRelative="true" IsResource="false">ApplicationIcon.png</IconPath> | ||
<Capabilities> | ||
<Capability Name="ID_CAP_GAMERSERVICES"/> | ||
<Capability Name="ID_CAP_IDENTITY_DEVICE"/> | ||
<Capability Name="ID_CAP_IDENTITY_USER"/> | ||
<Capability Name="ID_CAP_LOCATION"/> | ||
<Capability Name="ID_CAP_MEDIALIB"/> | ||
<Capability Name="ID_CAP_MICROPHONE"/> | ||
<Capability Name="ID_CAP_NETWORKING"/> | ||
<Capability Name="ID_CAP_PHONEDIALER"/> | ||
<Capability Name="ID_CAP_PUSH_NOTIFICATION"/> | ||
<Capability Name="ID_CAP_SENSORS"/> | ||
<Capability Name="ID_CAP_WEBBROWSERCOMPONENT"/> | ||
<Capability Name="ID_CAP_ISV_CAMERA"/> | ||
<Capability Name="ID_CAP_CONTACTS"/> | ||
<Capability Name="ID_CAP_APPOINTMENTS"/> | ||
<Capability Name="ID_CAP_GAMERSERVICES" /> | ||
<Capability Name="ID_CAP_IDENTITY_DEVICE" /> | ||
<Capability Name="ID_CAP_IDENTITY_USER" /> | ||
<Capability Name="ID_CAP_LOCATION" /> | ||
<Capability Name="ID_CAP_MEDIALIB" /> | ||
<Capability Name="ID_CAP_MICROPHONE" /> | ||
<Capability Name="ID_CAP_NETWORKING" /> | ||
<Capability Name="ID_CAP_PHONEDIALER" /> | ||
<Capability Name="ID_CAP_PUSH_NOTIFICATION" /> | ||
<Capability Name="ID_CAP_SENSORS" /> | ||
<Capability Name="ID_CAP_WEBBROWSERCOMPONENT" /> | ||
<Capability Name="ID_CAP_ISV_CAMERA" /> | ||
<Capability Name="ID_CAP_CONTACTS" /> | ||
<Capability Name="ID_CAP_APPOINTMENTS" /> | ||
</Capabilities> | ||
<Tasks> | ||
<DefaultTask Name ="_default" NavigationPage="MainPage.xaml"/> | ||
<DefaultTask Name="_default" NavigationPage="MainPage.xaml" /> | ||
</Tasks> | ||
<Tokens> | ||
<PrimaryToken TokenID="sbbs_client_wp7Token" TaskName="_default"> | ||
<TemplateType5> | ||
<BackgroundImageURI IsRelative="true" IsResource="false">Background.png</BackgroundImageURI> | ||
<Count>0</Count> | ||
<Title>sbbs_client_wp7</Title> | ||
<Title>虎踞龙蟠BBS</Title> | ||
</TemplateType5> | ||
</PrimaryToken> | ||
</Tokens> | ||
</App> | ||
</Deployment> | ||
</Deployment> |
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,32 @@ | ||
using System; | ||
using System.ComponentModel; | ||
using System.Collections.ObjectModel; | ||
using System.Runtime.Serialization.Json; | ||
using System.Runtime.Serialization; | ||
|
||
namespace sbbs_client_wp7.Sbbs | ||
{ | ||
[DataContract] | ||
public class TopicsGroupViewModel : ObservableCollection<TopicViewModel> | ||
{ | ||
[DataMember(Name = "description")] | ||
public string Title { get; set; } | ||
|
||
[DataMember(Name = "topics")] | ||
public ObservableCollection<TopicViewModel> Topics { get; set; } | ||
|
||
public bool HasItems | ||
{ | ||
get | ||
{ | ||
return Count != 0; | ||
} | ||
|
||
private set | ||
{ | ||
} | ||
} | ||
|
||
// 将ObservableCollection的全部元素操作转向Topics | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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,75 @@ | ||
using System; | ||
using System.ComponentModel; | ||
using System.Collections.ObjectModel; | ||
|
||
namespace sbbs_client_wp7 | ||
{ | ||
using Sbbs; | ||
|
||
public class HotViewModel : INotifyPropertyChanged | ||
{ | ||
private bool isLoading; | ||
|
||
public bool IsLoading | ||
{ | ||
get | ||
{ | ||
return isLoading; | ||
} | ||
set | ||
{ | ||
if (isLoading != value) | ||
{ | ||
isLoading = value; | ||
NotifyPropertyChanged("IsLoading"); | ||
} | ||
} | ||
} | ||
|
||
// 热门版面集合 | ||
private ObservableCollection<BoardViewModel> hotboardsItems; | ||
public ObservableCollection<BoardViewModel> HotboardsItems | ||
{ | ||
get | ||
{ | ||
return hotboardsItems; | ||
} | ||
set | ||
{ | ||
if (value != hotboardsItems) | ||
{ | ||
hotboardsItems = value; | ||
NotifyPropertyChanged("HotboardsItems"); | ||
} | ||
} | ||
} | ||
|
||
// 分区热点 | ||
private ObservableCollection<TopicsGroupViewModel> topicsGroupItems; | ||
public ObservableCollection<TopicsGroupViewModel> TopicsGroupItems | ||
{ | ||
get | ||
{ | ||
return topicsGroupItems; | ||
} | ||
set | ||
{ | ||
if (value != topicsGroupItems) | ||
{ | ||
topicsGroupItems = value; | ||
NotifyPropertyChanged("TopicsGroupItems"); | ||
} | ||
} | ||
} | ||
|
||
public event PropertyChangedEventHandler PropertyChanged; | ||
private void NotifyPropertyChanged(String propertyName) | ||
{ | ||
PropertyChangedEventHandler handler = PropertyChanged; | ||
if (null != handler) | ||
{ | ||
handler(this, new PropertyChangedEventArgs(propertyName)); | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.