日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

SilverlightCMS开发之3经典三页面CMS浮现

發(fā)布時間:2023/12/10 编程问答 23 豆豆
生活随笔 收集整理的這篇文章主要介紹了 SilverlightCMS开发之3经典三页面CMS浮现 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

隨筆思路:

  • ?CMS粗略介紹
  • ?CMS具體說明
  • ?一個ListBox的效果實例
  • ?一些RIA Service 實例
  • ?那個SL CMS 的效果。
  • ?下一步
  • ?

    1CMS粗略介紹

    @1本來昨晚就弄好了的。今天又改了一天,加入了我去年寫的一個CMS做后臺管理和與數據庫交互。

    這一下整個東西在功能上就略顯完整了。

    那個CMS是基于ASP.NET 的Web Form 和ACCESS 數據庫的環(huán)保型經典三層網站。(感謝LTP)

    特別應對小門戶和個人展示型的。跟我現在這個一樣麻雀型的。

    ?

    @2已經開源在?http://aqqcms.codeplex.com?需要的去下載各更新版本。。。

    updata:這里也可以:http://download.csdn.net/source/2841741

    或者在線查看其源碼。

    ?

    @3平心而論:這只是一個把一些知識集成的小應用,沒有太大的技術含量和思想

    更多的是給初學者一個走通一個CMS的流程的一個源碼級別的幫助

    ?

    2具體介紹

    下面來看一下解決方案:

    ?

    @1其中數據交互技術有2種

    #1 RIA SERVICE

    數據庫SQL2005 =>AEF=>RIASERVICE 交互。?

    #2 DATA SERVICE

    ACCESS =>ADO.NET =>BLL層=》DATA SERVICE

    ?

    @2

    RIAServiceLib 這個解決方案 是使用了 其分離類庫的技術。

    RIAServiceLib 類庫的代碼在兩個項目中都存在。

    這樣使其結構更清晰明了。也增加了可移植性。

    具體做法見文檔。。。。。

    (我發(fā)現自己好懶。。。

    PS:最近園子里Silverlight版塊多了好多截圖文。。我深感慚愧,但也覺得這些不太難就不

    自我裝傻了。。。已開源)

    ?

    @3他的技術含量?

    #1 首頁導航框架。 ?

    ##1 使用 URIMAP集 讓URL 友好。

    ##2 導航跳轉示例

    ?

    #2列表頁 ListBox 自定義呈現

    ##1幾種用XAML做效果的東東

    ##2分頁排序等。

    ?

    #3內容頁

    使用控件呈現 HTML。參考感謝:在Silverlight中嵌入HTML、Flash和PDF文件。

    ?

    #4交互技術?

    ?

    ?

    ?

    3一個ListBox的效果實例?

    右邊那種排法還不錯,我把整個XAML貼出來。

    <navigation:Page x:Class="SLCMS.Views.CMS.Channel"
    xmlns
    ="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x
    ="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d
    ="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc
    ="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable
    ="d"
    Style
    ="{StaticResource PageStyle}"
    xmlns:sdk
    ="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
    xmlns:toolkit
    ="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"
    xmlns:navigation
    ="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
    d:DesignWidth
    ="640"
    d:DesignHeight
    ="480"
    Title
    ="Channel Page">
    <Grid x:Name="LayoutRoot">
    <ScrollViewer x:Name="PageScrollViewer"
    Style
    ="{StaticResource PageScrollViewerStyle}">
    <Grid x:Name="ContentStackPanel">
    <Grid.ColumnDefinitions>
    <ColumnDefinition Width="498*" />
    <ColumnDefinition Width="115*" />
    </Grid.ColumnDefinitions>
    <Grid.RowDefinitions>
    <RowDefinition Height="429*" />
    <RowDefinition Height="13*" />
    <RowDefinition Height="0*" />
    </Grid.RowDefinitions>
    <!-- 圖片列表 -->
    <ListBox Height="270"
    HorizontalAlignment
    ="Left"
    Margin
    ="88,69,0,0"
    Name
    ="listBox1"
    VerticalAlignment
    ="Top"
    ItemsSource
    ="{Binding}"
    Width
    ="252"
    Grid.Column
    ="1">
    <ListBox.Style>
    <Style TargetType="ListBox">
    <Setter Property="ScrollViewer.HorizontalScrollBarVisibility"
    Value
    ="Disabled" />
    </Style>
    </ListBox.Style>
    <ListBox.ItemsPanel>
    <ItemsPanelTemplate>
    <toolkit:WrapPanel HorizontalAlignment="Left"
    VerticalAlignment
    ="Top"></toolkit:WrapPanel>
    </ItemsPanelTemplate>
    </ListBox.ItemsPanel>

    <ListBox.ItemTemplate>
    <DataTemplate>
    <Grid x:Name="LBIT"
    Width
    ="50">
    <Image Grid.Row="1"
    HorizontalAlignment
    ="Left"
    Name
    ="image1"
    Stretch
    ="Fill"
    VerticalAlignment
    ="Top"
    Source
    ="{Binding Path=_id, Converter={StaticResource NumToImg}}" />

    </Grid>
    </DataTemplate>
    </ListBox.ItemTemplate>

    </ListBox>
    <!-- 分頁控件 -->
    <sdk:DataPager Height="26"
    HorizontalAlignment
    ="Left"
    Margin
    ="298,0,0,0"
    Name
    ="dataPager1"
    PageSize
    ="10"
    VerticalAlignment
    ="Top"
    Width
    ="200"
    Grid.Row
    ="1" />
    <!--文章列表-->
    <ListBox Height="550"
    HorizontalAlignment
    ="Left"
    Margin
    ="7,9,0,0"
    Name
    ="listBox2"
    VerticalAlignment
    ="Top"
    Width
    ="491">
    <ListBox.Style>
    <Style TargetType="ListBox">
    <Setter Property="BorderThickness"
    Value
    ="0" />

    </Style>
    </ListBox.Style>

    <ListBox.ItemTemplate>
    <DataTemplate>
    <Grid x:Name="LBIT"
    Height
    ="80"
    Width
    ="400">
    <Grid.RowDefinitions>
    <RowDefinition Height="46*" />
    <RowDefinition Height="104*" />
    </Grid.RowDefinitions>
    <Grid.ColumnDefinitions>
    <ColumnDefinition Width="0*" />
    <ColumnDefinition Width="0*" />
    <ColumnDefinition Width="104*" />
    <ColumnDefinition Width="339*" />
    </Grid.ColumnDefinitions>
    <Image Grid.Column="2"
    Height
    ="61"
    HorizontalAlignment
    ="Left"
    Margin
    ="12,12,0,0"
    Name
    ="image1"
    Stretch
    ="None"
    VerticalAlignment
    ="Top"
    Width
    ="59"
    Source
    ="{Binding Path=_id, Converter={StaticResource NumToImg}}"
    Grid.RowSpan
    ="2" />
    <HyperlinkButton Grid.Column="3"
    Height
    ="26"
    HorizontalAlignment
    ="Left"
    Margin
    ="33,6,0,0"
    Name
    ="textBlock1"
    Content
    ="{Binding Path=_title}"
    VerticalAlignment
    ="Top"
    Width
    ="178"
    Tag
    ="{Binding Path=_id}"
    Click
    ="Link2Article" />
    <TextBlock Grid.Column="3"
    Grid.Row
    ="1"
    Height
    ="40"
    HorizontalAlignment
    ="Left"
    Margin
    ="16,8,0,0"
    Name
    ="textBlock2"
    Text
    ="Content"
    VerticalAlignment
    ="Top"
    Width
    ="237" />
    <TextBlock Grid.Column="3"
    Grid.Row
    ="1"
    Height
    ="23"
    HorizontalAlignment
    ="Left"
    Margin
    ="143,54,0,0"
    Name
    ="textBlock3"
    Text
    ="{Binding Path=_adddate, StringFormat=\{0:d\}}"
    VerticalAlignment
    ="Top"
    Width
    ="148" />
    </Grid>


    </DataTemplate>
    </ListBox.ItemTemplate>
    </ListBox>

    </Grid>

    </ScrollViewer>
    </Grid>


    </navigation:Page>

    =============================================?

    4 一些RIA Service 效果實例

    見源碼。

    =============================================

    5 Silverlight CMS 的樣子

    @1 導航的首頁。

    @2列表頁

    ?

    @3內容顯示頁

    =============================================

    6下一步?

    如果有時間的話把粗糙的地方做好去,增加一些必備功能。美工(...糾結...)

    有興趣的可以一起。

    總結

    以上是生活随笔為你收集整理的SilverlightCMS开发之3经典三页面CMS浮现的全部內容,希望文章能夠幫你解決所遇到的問題。

    如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。