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

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 编程资源 > 编程问答 >内容正文

编程问答

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

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

隨筆思路:

  • ?CMS粗略介紹
  • ?CMS具體說(shuō)明
  • ?一個(gè)ListBox的效果實(shí)例
  • ?一些RIA Service 實(shí)例
  • ?那個(gè)SL CMS 的效果。
  • ?下一步
  • ?

    1CMS粗略介紹

    @1本來(lái)昨晚就弄好了的。今天又改了一天,加入了我去年寫(xiě)的一個(gè)CMS做后臺(tái)管理和與數(shù)據(jù)庫(kù)交互。

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

    那個(gè)CMS是基于ASP.NET 的Web Form 和ACCESS 數(shù)據(jù)庫(kù)的環(huán)保型經(jīng)典三層網(wǎng)站。(感謝LTP)

    特別應(yīng)對(duì)小門戶和個(gè)人展示型的。跟我現(xiàn)在這個(gè)一樣麻雀型的。

    ?

    @2已經(jīng)開(kāi)源在?http://aqqcms.codeplex.com?需要的去下載各更新版本。。。

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

    或者在線查看其源碼。

    ?

    @3平心而論:這只是一個(gè)把一些知識(shí)集成的小應(yīng)用,沒(méi)有太大的技術(shù)含量和思想。

    更多的是給初學(xué)者一個(gè)走通一個(gè)CMS的流程的一個(gè)源碼級(jí)別的幫助。

    ?

    2具體介紹

    下面來(lái)看一下解決方案:

    ?

    @1其中數(shù)據(jù)交互技術(shù)有2種

    #1 RIA SERVICE

    數(shù)據(jù)庫(kù)SQL2005 =>AEF=>RIASERVICE 交互。?

    #2 DATA SERVICE

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

    ?

    @2

    RIAServiceLib 這個(gè)解決方案 是使用了 其分離類庫(kù)的技術(shù)。

    RIAServiceLib 類庫(kù)的代碼在兩個(gè)項(xiàng)目中都存在。

    這樣使其結(jié)構(gòu)更清晰明了。也增加了可移植性。

    具體做法見(jiàn)文檔。。。。。

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

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

    自我裝傻了。。。已開(kāi)源)

    ?

    @3他的技術(shù)含量?

    #1 首頁(yè)導(dǎo)航框架。 ?

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

    ##2 導(dǎo)航跳轉(zhuǎn)示例

    ?

    #2列表頁(yè) ListBox 自定義呈現(xiàn)

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

    ##2分頁(yè)排序等。

    ?

    #3內(nèi)容頁(yè)

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

    ?

    #4交互技術(shù)?

    ?

    ?

    ?

    3一個(gè)ListBox的效果實(shí)例?

    右邊那種排法還不錯(cuò),我把整個(gè)XAML貼出來(lái)。

    <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>
    <!-- 分頁(yè)控件 -->
    <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 效果實(shí)例

    見(jiàn)源碼。

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

    5 Silverlight CMS 的樣子

    @1 導(dǎo)航的首頁(yè)。

    @2列表頁(yè)

    ?

    @3內(nèi)容顯示頁(yè)

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

    6下一步?

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

    有興趣的可以一起。

    總結(jié)

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

    如果覺(jué)得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。