silverlight

while dragging, I don't see helper-lines in Silverlight

回眸只為那壹抹淺笑 提交于 2020-01-23 18:54:05
问题 Silverlight 4, Toolkit During dragging an item on TARGET CONTROL, there are NOT visible lines showing (during mouse move) actual position where will be dragged item put on (for example, between items, inside item, before item, …) source control <toolkit:ListBoxDragDropTarget AllowDrop="False" AllowedSourceEffects="Copy, Link, Scroll"> <ListBox ItemsSource="{Binding ToolboxItems}"> <ListBox.ItemTemplate> <DataTemplate> <!-- some binding --> </DataTemplate> </ListBox.ItemTemplate> </ListBox> <

How to access WPF class library from Silverlight using iron python. Is it possible?

a 夏天 提交于 2020-01-23 17:19:05
问题 I'm having a class library. I'm able to access that assembly from iron python console as normal. My goal is to create a Silverlight class library which uses a python script to access that WPF class library what I'm having. Is it possible? Is there any other way to achieve this or any work around. I can provide a sample of what I'm doing now, If more details are needed. Thanks 回答1: You will not be able to use the class library unless its code is compatible with Silverlight libraries and is re

Calculating distance between 2 points with sql

蓝咒 提交于 2020-01-23 12:06:21
问题 I have to calculate the distance between 2 points, X and Y being the coordinates of the first point while axisX and axisY are the coordinates of the second point. My only lead is this SQL statement, however this SQL does not return the result I'm looking for. So can anyone help me identify any mistake I may have made with this statement? string x = "SELECT TownName,Address,SUBSTRING(X, 1, 2) AS Xaxis, SUBSTRING(Y, 1, 2) AS Yaxis,Type,Availability,Price,Size,Bedrooms,Bathrooms,Contact

Calculating distance between 2 points with sql

对着背影说爱祢 提交于 2020-01-23 12:03:01
问题 I have to calculate the distance between 2 points, X and Y being the coordinates of the first point while axisX and axisY are the coordinates of the second point. My only lead is this SQL statement, however this SQL does not return the result I'm looking for. So can anyone help me identify any mistake I may have made with this statement? string x = "SELECT TownName,Address,SUBSTRING(X, 1, 2) AS Xaxis, SUBSTRING(Y, 1, 2) AS Yaxis,Type,Availability,Price,Size,Bedrooms,Bathrooms,Contact

Silverlight XAML Binding ElementName

会有一股神秘感。 提交于 2020-01-23 09:49:50
问题 I have the following XAML: <sdk:Label Content="{Binding RefreshTextToggle, Converter={StaticResource enumToText}, ConverterParameter=ItemsOfInterest,FallbackValue='Please select items of interest to you'}" Style="{StaticResource StandardLabel}" Height="{Binding ElementName=ItemsOfInterest,Path=Height}"/> <ListBox Name="ItemsOfInterest" ItemsSource="{Binding Path=ItemsOfInterest}" Margin="5" MinHeight="25" Width="250" HorizontalAlignment="Left"> The height of the ItemsOfInterest is dynamic

WCF error serializing cycle reference

為{幸葍}努か 提交于 2020-01-23 09:19:13
问题 I'm trying to return lists of objects that have references to another objects and viceversa. I only want the lazy load to get the "first level children", I mean, if I have a "Person" object with a "Place" property, I want the place data to be loaded but not every object in "Place" object needs to be loaded... because this would ahead to a cyclic reference... I've read that I could do this by using [DataContract(IsReference = true)] on every Object. I've set every object in the model (auto

Silverlight: How do I disable to browser's refresh button?

℡╲_俬逩灬. 提交于 2020-01-23 07:52:21
问题 I'm working on a Silverlight application (i.e. no HTML content at all) and one of biggest complaints is that if the user accidentally hits F5 the application restarts. So is there any way I can disable the Refresh button in the browser? Or at least handle F5? 回答1: Here are couple of options http://forums.silverlight.net/forums/p/105879/243232.aspx From link: One option is to hook into the window object 'onbeforeunload' event and prompt the user to confirm the refresh/exit intent. Here is a

Silverlight: How do I disable to browser's refresh button?

房东的猫 提交于 2020-01-23 07:51:35
问题 I'm working on a Silverlight application (i.e. no HTML content at all) and one of biggest complaints is that if the user accidentally hits F5 the application restarts. So is there any way I can disable the Refresh button in the browser? Or at least handle F5? 回答1: Here are couple of options http://forums.silverlight.net/forums/p/105879/243232.aspx From link: One option is to hook into the window object 'onbeforeunload' event and prompt the user to confirm the refresh/exit intent. Here is a

IsolatedStorageFileStream exception is throw when file is opened?

你离开我真会死。 提交于 2020-01-23 06:27:31
问题 when I attempt to open a file in a WP7 app: IsolatedStorageFile isf = IsolatedStorageFile.GetUserStoreForApplication(); IsolatedStorageFileStream nameXmlFile = new IsolatedStorageFileStream("Names.xml", System.IO.FileMode.Open, isf); I recieve the following error: Operation not permitted on IsolatedStorageFileStream. I'm not sure why it isn't opening because I used the exact code somewhere else in my app and it works fine. Any leads as to why this is happening? EDIT I used the following code

IsolatedStorageFileStream exception is throw when file is opened?

半世苍凉 提交于 2020-01-23 06:27:06
问题 when I attempt to open a file in a WP7 app: IsolatedStorageFile isf = IsolatedStorageFile.GetUserStoreForApplication(); IsolatedStorageFileStream nameXmlFile = new IsolatedStorageFileStream("Names.xml", System.IO.FileMode.Open, isf); I recieve the following error: Operation not permitted on IsolatedStorageFileStream. I'm not sure why it isn't opening because I used the exact code somewhere else in my app and it works fine. Any leads as to why this is happening? EDIT I used the following code