silverlight

How can I use custom cursor C#?

天涯浪子 提交于 2020-03-01 04:37:25
问题 well i wanna ask you first how can I add a custom cursor to my c# application where i have the (.cur) file? second i want to add two custom cursors which are open hand and closed hand (like the ones used in the adobe acrobat reader or the ones used in windows photo viewr) because i have a drag n drop functionality. So please where can i find the .cur files to those curosrs, i have searched the whole web but i got nothing. i have found one on a forum said that i can find the open hand cursor

silverlight多文件断点续传

梦想与她 提交于 2020-03-01 04:37:20
最近在做silverlight项目的时候经常性会遇到文件上传,看到163邮箱的断点续传,感觉用户体验真的很好,所有花了点时间研究了一下silverlight的断点续传功能。 在博客园中找了一下没有这样的功能,后来看到 代震军BLOG 的博客中有一篇 DiscuzNT使用Silverlight进行多文件上传 ,能上传多文件,可是没有实现断点续传,就自己动手修改了一下代码,实现简单的暂停后在续传功能,如果想做成如163邮箱那样的下次登录后还能在续传,就需要保存当时暂停的状态。首先感谢这些大牛们的技术支持和无私的代码奉献,好了,下面谈谈对代码的理解和更改。 在里面利用的是依赖属性的状态改变来时时更新一些数据,如已上传的文件大小,以及文件上传的状态等,由于代码很多,挑选部分类似的代码如下,后面将源代码公布。 /// <summary> /// 当前已上传的字节数(这里与FileCollection中的同名属性意义不同,FileCollection中的是已上传的所有文件的字节总数) /// </summary> public double BytesUploaded { get { return _bytesUploaded; } set { _bytesUploaded = value; NotifyPropertyChanged("BytesUploaded"); Percentage

SilverLight:基础控件使用(2)-ComboBox,ListBox控件

a 夏天 提交于 2020-02-29 04:32:32
ylbtech-SilverLight-Basic-Control:基础控件使用(2)-ComboBox,ListBox控件 直接在 XAML 代码中设置 Items 和通过后台代码绑定数据源 ComboBox,ListBox 1.A, 返回顶部 ComboBox(下拉列表框) 1, <ComboBox Height="23" HorizontalAlignment="Left" Margin="46,45,0,0" Name="comboBox1" VerticalAlignment="Top" Width="120" ItemsSource="{Binding}"> <ComboBoxItem Content="北京" /> <ComboBoxItem Content="上海" IsSelected="True" /> <ComboBoxItem Content="济南" /> </ComboBox> <dataInput:Label Height="18" HorizontalAlignment="Left" Margin="46,82,0,0" Name="label1" VerticalAlignment="Top" Width="100" /> <ComboBox Height="23" HorizontalAlignment="Left" Margin="48,111

SilverLight:基础控件使用(5)-TreeView控件-基本使用

谁都会走 提交于 2020-02-29 04:27:05
ylbtech-SilverLight-Basic-Control:基础控件使用(5)-TreeView控件-基本使用 前台编辑 后台逐个添加 后台绑定数据源 1.A, 返回顶部 TreeView控件(树形视图控件)-前台编辑 1, <controls:TreeView Height="133" HorizontalAlignment="Left" Margin="29,23,0,0" Name="treeView1" VerticalAlignment="Top" Width="200"> <controls:TreeViewItem Header="中国" IsExpanded="True"> <controls:TreeViewItem Header="北京" /> <controls:TreeViewItem Header="上海" IsSelected="True" /> <controls:TreeViewItem Header="济南" /> </controls:TreeViewItem> <controls:TreeViewItem Header="美国" /> <controls:TreeViewItem Header="日本"> <controls:TreeViewItem Header="大阪" /> <controls:TreeViewItem

Add TabItem in tabcontrol at runtime using Silverlight

故事扮演 提交于 2020-02-28 08:23:31
问题 Hi friends, i am new to silverlight app. i have created tabcontrol with 4 tabitem .Name of the tabitems are like tab1 tab2 tab3 tab4 . i need to add one more tabitem at run item . it added successfully by following code TabItem tabItem = new TabItem(); tabItem.Header = "tab5"; tabControl.Items.Add(tabItem); my problem is, tab5 added next to tab4 . but my requirement is ,it should added next my current selected tabitem .that is, if am in tab1 it should between tab1 and tab2 and so on. i have

Add TabItem in tabcontrol at runtime using Silverlight

女生的网名这么多〃 提交于 2020-02-28 08:23:13
问题 Hi friends, i am new to silverlight app. i have created tabcontrol with 4 tabitem .Name of the tabitems are like tab1 tab2 tab3 tab4 . i need to add one more tabitem at run item . it added successfully by following code TabItem tabItem = new TabItem(); tabItem.Header = "tab5"; tabControl.Items.Add(tabItem); my problem is, tab5 added next to tab4 . but my requirement is ,it should added next my current selected tabitem .that is, if am in tab1 it should between tab1 and tab2 and so on. i have

找不到默认端点元素

半城伤御伤魂 提交于 2020-02-28 05:56:14
我已将代理添加到VS2008 / .NET 3.5解决方案的Web服务。 构造客户端.NET时,会引发以下错误: 在ServiceModel客户端配置部分中找不到引用合同'IMySOAPWebService'的默认终结点元素。 这可能是因为没有为您的应用程序找到配置文件,或者是在client元素中找不到与该协定匹配的端点元素。 搜索此错误告诉我在合同中使用完整的名称空间。 这是带有完整名称空间的我的app.config: <client> <endpoint address="http://192.168.100.87:7001/soap/IMySOAPWebService" binding="basicHttpBinding" bindingConfiguration="IMySOAPWebServicebinding" contract="Fusion.DataExchange.Workflows.IMySOAPWebService" name="IMySOAPWebServicePort" /> </client> 我在本地运行XP(我之所以这么说是因为许多Google命中都提到了win2k3)app.config已复制到app.exe.config,所以这也不是问题。 有什么线索吗? #1楼 如果您使用的是使用PRISM框架的WPF应用程序,则配置应存在于您的启动项目中(即

Silverlight TreeView通过HierarchicalDataTemplate直接绑定多级数据源

不羁岁月 提交于 2020-02-27 05:50:43
< UserControl xmlns:controls ="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls" xmlns:Common ="clr-namespace:System.Windows;assembly=System.Windows.Controls" x:Class ="SilverlightApplication1.Page1" 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" d:DesignWidth ="640" d:DesignHeight ="480" > < UserControl.Resources > < Common

SilverLight 中ListBox获取选中项

◇◆丶佛笑我妖孽 提交于 2020-02-27 04:18:43
View Code private void TongZhiGG_SelectionChanged(object sender, SelectionChangedEventArgs e) { ListBoxItem _selectedItem = (ListBoxItem)(TongZhiGG.ItemContainerGenerator.ContainerFromItem(this.TongZhiGG.SelectedItem)); TextBlock myTxt = FindFirstVisualChild<TextBlock>(_selectedItem, "MyOID"); string Select_value = myTxt.Text.ToString(); //MessageBox.Show(Select_value.ToString()); Aggregator.SendMessage<MessageToKranthi, string>( new MessageToKranthi { Payload = "页面跳转"+Select_value} ); } #endregion public T FindFirstVisualChild<T>(DependencyObject obj, string childName) where T :

稳扎稳打Silverlight(35) - 3.0控件之ChildWindow, SaveFileDialog, HeaderedItemsControl, VirtualizingStackPanel

ε祈祈猫儿з 提交于 2020-02-27 03:39:46
[索引页] [源码下载] 稳扎稳打Silverlight(35) - 3.0控件之ChildWindow, SaveFileDialog, HeaderedItemsControl, VirtualizingStackPanel 作者: webabcd 介绍 Silverlight 3.0 控件一览: ChildWindow - 用于在父窗体前弹出一个的子窗体 SaveFileDialog - 用户发起的保存文件对话框(OpenFileDialog - 打开文件对话框) HeaderedItemsControl - 呈现标题和集合数据的控件 VirtualizingStackPanel - 虚拟化的 StackPanel(即仅生成需要显示的 UI 元素。当绑定了大量数据,而某时仅显示其中一小部分的时候,使用此控件则可大幅提高呈现效率) 在线DEMO http://www.cnblogs.com/webabcd/archive/2009/08/04/1538238.html 示例 1、演示 ChildWindow 的应用 ChildWindowDemo.xaml < navigation:Page x:Class ="Silverlight30.Control.ChildWindowDemo" xmlns ="http://schemas.microsoft.com/winfx