FAQ Database Discussion Community


Reusable button with datatrigger in Silverlight

xaml,silverlight,windows-phone-8
In my Windows phone 8.1 silverlight application, the user can select a date and move to the next or previous day. I would like to add the ability to gray the button to select the next day when this day is in the future (because it has no sense in...

c# how to load pictures from picture library, WP8.1 Silverlight

c#,silverlight,windows-phone-8.1
This code takes photos with name face1.jpg, face2.jpg and so on from picture library and shows them. now the problem is that it works for first 9 pictures then it stops. but it is supposed to go through all the pictures in the gallery StorageFolder picturesFolder = KnownFolders.PicturesLibrary; IReadOnlyList<IStorageFile> file...

how to check if a string is matched with another string

silverlight,windows-phone-8
I saved some user information in .txt file. every time when application launches it checks some specific things, like device id is same as saved or not? 2 type of returns are possible from device id with some character differences. if i saved this string "pWch7r1fzu tILmQIMjIylBZxJk=" in txt file....

How to get the locations of all the points on a line WP8.1 Silverlight c#

c#,silverlight,windows-phone-8.1
I am drawing a line onto the canvas, by giving it a starting and ending point. Now I want to get the X and Y location of each point of that line. how can I do that? Line line = new Line(); line.Visibility = System.Windows.Visibility.Visible; line.StrokeThickness =1; line.X1 = x[1];...

How to create the “Binding” class in that code?

c#,silverlight
I need to bind an entitycollection to my datagrid, I found a solution here: Binding binding = new Binding(); binding.Source = colecao; binding.Mode = BindingMode.OneWay; dataGrid1.SetBinding(DataGrid.ItemsSourceProperty, binding); However I'm not sure what the "Binding" class is and what library i need to import to create it. ...

Style vs inline property setting in silverlight with a custom control

c#,wpf,xaml,silverlight
I have a custom silverlight control that is pretty much a glorified text box. I have some properties in it I need to be able to set from the XAML in silverlight, so for each property I have created something like this: public bool UseCustomTooltips { get { return _useCustomTooltips;...

windows phone 8.1 silverlight calendar

xaml,silverlight,windows-phone-8.1,controls
I've been struggling to add a calendar control to my windows phone 8.1 silverlight application but i found nothing, i used syncfusion calendar control once but it was a windows phone 8.1 application not silverlight one, please anyone can provide a useful information?

Does the Silverlight player support H264/MultiView Coding (3D) Videos?

silverlight,mediaelement.js,ms-media-foundation
Given that the Player Framework allegedly supports 3D MVC encoded video via the Media Foundation, which MediaElement.js's Silverlight Player uses, Does the later support playing stereoscopic 3D video? Regards,...

Draw line in ComboBox in Silverlight

c#,silverlight,graphics,line
How can I create line in comboBoxItem programmatically in Silverlight? I would like to get something like this: Thanks. I tried to do like: var lineTypeComboBox = new ComboBox { Width = 40, Background = Background, Margin = new Thickness(0), Padding = new Thickness(0) }; lineTypeComboBox.Items.Add(new Line {X1 = 1,...

How can i add an account to Windows Phone?

silverlight,windows-phone-8,settings,account
I'm new in developing applications for Windows Phone 8. Can I add custom account from my application (to Settings => email+accounts)? Thank you.

How to get number of buttons in an Windows Phone application bar

c#,silverlight,windows-phone-8.1,application-bar
I have an application bar in my Windows Phone 8.1 Silverlight app. It contains one ApplicationBarButton and when the user scrolls to a certain point in the LongListSelector another button is added to the ApplicationBar like this: for (int i = 0; i < 1; i++) { ApplicationBarIconButton scrollToToday =...

TextBox doesnt have IsReadOnlyCaretVisible Property

wpf,silverlight,windows-phone-8
I am creating a Windows Phone 8.0 (Silverlight) app and I am trying to show the caret I a readonly TextBox, but it doesn't have such property. documentation...

Entity Framework make a field required based on data

c#,entity-framework,silverlight
I am working on a C# Silverlight application that uses Entity Framework, I was wondering if there is a way to make a field required based on other pieces of data? To make this more complicated the application has 1 save button that lives outside of the various forms and...

Enable icons in listpicker

xaml,silverlight,windows-phone-8,windows-phone
I'm having a problem with the listpicker (SelectionMode="Multiple"!!!). When i go to fullmode it doesnt show "done", "cancel" icons like if the images were not in my project. <toolkit:ListPicker Grid.Row="11" Grid.Column="2" Name="ListPickerAu" Header="" FullModeHeader="Authority Assessment" SelectionMode="Multiple" FontSize="21" Background="White" Foreground="Black" Margin="10,12,-157,12" > <sys:String>Order</sys:String> <sys:String>Distribute</sys:String> <sys:String>Price</sys:String>...

Convert StorageFile to WriteableBitmap WP8.1 Silverlight

c#,silverlight,windows-phone-8.1
I am developing this application where I am able to get all the pictures from picture library as StorageFile data type. now I want to change it to writeablebitmap, apply a sketch filter and show in image control. can someone please help me in changing the data type from StorageFile...

Siverlight: DataGridView adding items and getting selected items

c#,silverlight,datagridview
I use the DataTable for adding items to a DataGridView and the DataGridRow for getting the select items out of it in WPF but the silverlight appears not to have those types. I would like to know what the appropriate way is to add data and get them back to...

Silverlight authentication using Active Directory

c#,silverlight,authentication,active-directory
I have developed a Silverlight app, and the customer is asking me to add an authentication window at the app startup, and he would like to let the user log in if the user exists in the active directory users of the company. And depending on which group the user...

Subclass a silverlight templated control

c#,wpf,silverlight,control,custom-controls
I want to create few custom controls. Here is a screen shot of what I'm trying to achieve. Each control contains two parts, a label (TextBlock) and an editor (UIElement). The label part is common to all controls. I don't want to keep defining label in each custom controls I...

Silverlight WCF services not returning any data from database, after deploying on server

wcf,silverlight
I have one silverlight application that reads the data from the database(SQL Server) using wcf services without using entity framework, on a click of a button. I deployed on my local system and it works fine. The same i deployed on the server and published it. I opened the page...

Why does Silverlight View not throw a null exception?

c#,silverlight
Given a Silverlight View with the following binding: <TextBox Width="200" Text="{Binding Customer.FirstName, Mode=TwoWay}"/> and the code behind has the following: CustomerClass Customer {get; set;} This will not throw a NullReferenceException however the following String FirstName { get { return Customer.FirstName; } } does when I attempt to bind to FirstName...

get error wcf when return data?

c#,wcf,silverlight
[OperationContract] public List<Drug> GetAll_Drug() { List<Drug> obj_Lst_t; using (var ctx = new EpriscriptionContext()) { obj_Lst_t = ctx.Drug.ToList(); } return obj_Lst_t; } get Answer ------ but add OperationContract get error debug get return data error ...

How to create bottom to top slide menu like app bar in Windows Phone

wpf,xaml,silverlight,windows-phone-7,windows-phone-8
Hi I need to create a custom bottom to top slide menu... Similar to app bar in Windows Phone. How can I achieve this. Please any point to start? UI looks as in images below:When the user slides the botton panel the state of bottom panel should change from 1...

Consume REST API's from SilverLight application

rest,silverlight,silverlight-4.0
How can I consume REST services in a SilverLight application that do not have a Cross-domain Policy File?

Getting template view visible to outside parameters

c#,xaml,silverlight,templates
In XAML world i have an issue with exposing data of the template/style to view, which is using this template/style. Here's an example. First Style template: <Style TargetType="myStyle"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="myStyle"> <telerik:RadGridView Name="SomeName" ItemsSource="{TemplateBinding SomeSource}" <telerik:RadGridView.Columns> <telerik:GridViewDataColumn DataMemberBinding="{Binding SomeBinding}" Header="SomeHeader"/> <telerik:GridViewDataColumn...

How to read or write MP4 file from file stream in silverlight and vb.net application?

vb.net,silverlight,streaming,video-streaming,mp4
In my Silverlight web application,I am accessing mp4 audio file from client bin folder.I am saving this file stream to local folder on client machine using save file dialog box. I can play mp4 file in media element and can hear audio without any problem,But when I save file to...

Windows Phone make pushpin icon move on map between start and end location

c#,wpf,silverlight,windows-phone-8,dictionary
I am creating an app in which I am trying to move bike icon as user travel on his path. I am getting new location of the user by subscribing to position changed event of Geolocator class. I am setting the pushpin to this new location every time. But the...

Silverlight set cursor to Cursors.Wait

c#,multithreading,silverlight
I have a silverlight application. When some action is executed, i want to show a wait cursor. The problem is that i'm working with threads, and all my actions are executed in a thread. So i have a threading helper that invokes and awaits all the threads - this works...

Is the Stroke a circle?

c#,silverlight,windows-phone-8.1
Is it possible to check if the stroke drawn by the user on a canvas is a circle shape or not? I have two arrays x[] and y[], which have all the coordinates of the stroke. How can I use this information to check if the stroke is a circle...

Not able to collapse the first row in datagrid in Silverlight

silverlight,datagrid
I am using a Silverlight datagrid control which should appear 'collapsed' by default. I found the sample code in msdn. But it shows error message that "Specified argument was out of the range of valid values. Parameter name: index. " . Below is my code. private void CollapseGrid() { PagedCollectionView...

ActionNotSupportedException occurred after change EndpointAddress

c#,wcf,silverlight,silverlight-5.0,wcf-binding
I am working with WCF and Silverlight. i want to change EndpointAddress with code behind dynamically: EndpointAddress endpointAdress = new EndpointAddress(serviceUrl); var proxy = new ServerConnectionClient(context); proxy.Endpoint.Address = endpointAdress; Connection opened successful but after call a method from service occurred ActionNotSupportedException. Web.config: <configuration> <system.serviceModel> <bindings> <customBinding> <binding name="NetTcpBinding"> <binaryMessageEncoding />...

Automatically Expand RowDetails of Newly Added Rows of a RadGridView

c#,wpf,xaml,silverlight,radgridview
What I want to solve: When new items are added to a RadGridView new rows are created accordingly. I want those new rows to automatically have expanded RowDetails. What I tried so far: I tried to access the RadGridView from code-behind and register an event handler that listens for new...

Is it possible to create a good mix of MVC and Silverlight?

asp.net-mvc,silverlight
We have big Silverlight project, we want to migrate it to MVC, however - since the project is huge, we will not get the funds needed to port it all at once, so we are considering the mix of MVC and Silverlight that - over time - would become pure...

List.BinarySearch Windows Phone

c#,silverlight,windows-phone-7
I search in my list with already sorted data like this: public class ShortWord: IComparable<ShortWord> { public int id { get; set; } public string Word { get; set; } public int CompareTo(ShortWord obj) { return this.Word.CompareTo(obj.Word); } } List<ShortWord> words; words.Where(t => t.Word.IndexOf(text.ToUpper()) == 0).Take(30).ToList(); It is working very...

How do I get the child controls of a ListBox?

c#,xaml,silverlight,listbox
I have a ListBox in xaml which has a sub-ListBox inside the top-level ListBox's item template. Because the sub-ListBox is multi-select, and I can't bind the SelectedItems of the sub-ListBox to a viewmodel property for some reason, I'm trying to do a lot of this in the view code-behind. I...

Scraping Data from Silverlight Control within Browser

silverlight,excel-vba,screen-scraping
I have been using Excel VBA and WPF applications to scrape data from various websites, and all has gone well. But now I have run into something I cant get past. The website is displaying its data within a Silverlight control: <OBJECT width="100%" height=400 id=rnSilverlightGrid data="data:application/x-oleobject;base64,QfXq3+...blah blah thousands of characters...AAAA=="...

Xaml - Binding in FallBackValue

c#,xaml,silverlight,binding,telerik
How can i make two bindings on a column in grid, in the way that if first binding is empty or null, second binding will be used. I have tried to do that with FallbackValue property but you can't make binding inside it only static values. Here some code, which...

Communicate with the serial port from client web browser.

javascript,node.js,silverlight,serial-port,japplet
In my web application(sencha extjs 5) I have a user requirement to read/write data to the client PC serial port. I am aware of the client browser can not access local machine hardware without installing some binaries on the local machine(Native app, Windows Service, etc..). I have seen the same...

ContentControl (CheckBox) does not inherit Foreground

xaml,silverlight
It looks like the CheckBox control does not inherit its Foreground property: <UserControl Foreground="Orange"> <StackPanel> <!-- this shows as black - no inheritance --> <CheckBox Content="foo" /> <!-- this shows as turquoise --> <CheckBox Foreground="Turquoise" Content="bar" /> <!-- but this shows as orange - inheritance works here --> <TextBlock Text="baz"...

SignalR in WebFarm

wpf,silverlight,signalr,webfarm
I am trying to deploy my signalR based web application in ‘load balanced web farm’ using AWS Elastic load balancer and Auto Scaling. My application architecture is such that all users send messages from web browsers to server, and server send these messages to Silverlight OOB (or WPF app.) on...

Lots of namespace/assembly reference build errors - Windows Phone 8.1 Client App

c#,web-services,wcf,silverlight,windows-phone-8.1
I've just moved to a new computer and re-installed Visual Studio, Azure SDK, and Windows Phone 8.1 SDK. I'm creating a simple HelloWorld Azure Cloud Service client for my simple Service I have written, in order to test everything works. This following program/code worked on my other computer. This is...

Windows phone silverlight socket HostNotFound error

c#,sockets,silverlight,windows-phone-8,windows-phone-8-emulator
I am getting HostNotFound error while trying to connect with socket in async. I am sure, that host is working. The strangest part is that all emulator starting from "8.1 u1 *" dont give such error. They connect without any problems. Only my device (htc windows phone 8s) and emulators...

Windows Phone 8 Silverlight JSON Deserealize

c#,json,silverlight,serialization
I want to parse some json data in my Windows Phone 8.1 Silverlight project. I created classes and deserialize object. Everytime it returns null value. Where did I do wrong? Thanks in advance... JSON { "full": 1, "version": "*1.7.569*", "model": "MiCasaVerde VeraLite", "zwave_heal": 1, "temperature": "C", "skin": "mios", "serial_number": "35101436",...

Different default sorting order for columns in Silverlight DataGrid

c#,silverlight,sorting,datagrid
In my Silverlight application, I have a DataGrid that shows a list of projects. It is data-bound to a custom ObservableCollection which implements ICollectionView to provide SortDescription's. When the user clicks on a header, the data is sorted by this column in ascending order. Most users expect alphabetical sort (ASC)...

Silverlight: DataGrid.SelectedIndex always getting -1

c#,silverlight,datagrid
I have this DataGrid in my project: <sdk:DataGrid RowDetailsVisibilityChanged="dataGrid1_RowDetailsVisibilityChanged" Grid.Row="1" Loaded="dataGrid1_Loaded" ItemsSource="{Binding ElementName=getVarede_ResultDomainDataSource, Path=Data}" RowDetailsVisibilityMode="Collapsed" AutoGenerateColumns="False" Style="{StaticResource DataGridStyle}" Height="Auto" IsReadOnly="True" HorizontalAlignment="Left" Name="dataGrid1" VerticalAlignment="Top" SelectionChanged="dataGrid1_SelectionChanged" MouseEnter="dataGrid1_MouseEnter"...

CRM 2015 and Silverlight

silverlight,dynamics-crm,dynamics-crm-2015
I've previously created a Silverlight application for CRM-2011 and there has been samples for Silverlight in the CRM-2011 SDK. However, I installed CRM 2015 SDK and I couldn't find any sample codes for Silverlight, does it no longer support silverlight ? If it still supports it, how can i create...

CaptureSource.Start() throws System.UnauthorizedAccessException in Windows Phone Silverlight 8.1

c#,silverlight,windows-phone-8.1
I have problem with using camera in Windows Phone Silverlight 8.1 application. I want just to initialize camera and see its preview (for now I don't need any photos or video capture). I have found nice and simple example on MSDN and private CaptureSource captureSource; private VideoCaptureDevice videoCaptureDevice; private void...

Compose Email with attachment on Windows Phone 8.1 Silverlight application

c#,silverlight,windows-phone-8.1
Here's my function (based on this: https://msdn.microsoft.com/en-us/library/windows/apps/xaml/dn632427.aspx): private async void ComposeEmail(String subject, String messageBody, String attachmentFile) { var msg = new EmailMessage(); msg.Subject = subject; msg.Body = messageBody; msg.To.Add(new EmailRecipient("[email protected]")); if (attachmentFile != null && attachmentFile != "") { bool exists = File.Exists(attachmentFile); Debug.WriteLine("File: " + attachmentFile + (exists ?...

Change icon in validationsummary in silverlight

.net,xaml,silverlight,validationsummary
I want to change the icon at the top left corner in the validation summary because it's not company compliant. Is this possible? I found nothing on google......

Click through a transparent image in WPF or Silverlight

c#,wpf,silverlight,transparency
I need to develop a program that consist of an image (png) with an hole in the center. Under this image there will be a frame and I want that clicking on the transparent hole of the image I can click a button inside the frame. I don't know if...

Windows Silverlight or RT. What are the implications for windows phone development

c#,silverlight,windows-phone-8
I'm starting a project for Windows Phone, I never developed for windows phone nor .Net before. When I create a new project in Visual Studio Community 2013 it offers me to create it for Windows Runtime or Silverlight. I would like to follow TDD with some kind of mocking framework,...

Tile title on Windows Phone 8.1 Silverlight app

c#,silverlight,windows-phone-8,windows-phone-8.1
I migrated my app from WP8.0 to WP8.1 Silverlight. Now the tiles won't show the title/app name anymore. The Package.appxmanifest (part for tiles) currently looks as follows <m3:VisualElements DisplayName="Time Stamp" Square150x150Logo="Assets\Startscreen-Medium-Tile.png" Square44x44Logo="Assets\Applicaton-Icon.png" Description="Time Stamp work time tracker" ForegroundText="light" BackgroundColor="transparent"> <m3:DefaultTile ShortName="Time Stamp" Square71x71Logo="Assets\Startscreen-Small-Tile.png"...

String to Double Conversion (Comma to dot issue)

c#,xml,wpf,silverlight,type-conversion
Struggling with the basics - I'm trying to code a simple currency converter. The XML provided by external source uses comma as a decimal separator for exchange rate (kurs_sredni): <pozycja> <nazwa_waluty>bat (Tajlandia)</nazwa_waluty> <przelicznik>1</przelicznik> <kod_waluty>THB</kod_waluty> <kurs_sredni>0,1099</kurs_sredni> </pozycja> I already managed to load the data from XML into a nifty list of...

Cannot create an instance of the abstract class or interface on WCF Silverlight Service

c#,wcf,silverlight
I'm working through two tutorials to create a super simple WCF web service and Silverlight app. Buiding a Service Accessing a Service from Silverlight Everything was going fine. I created my service: using System; using System.Linq; using System.Runtime.Serialization; using System.ServiceModel; using System.ServiceModel.Activation; namespace TestOnline.Web.Data { [ServiceContract(Namespace = "")] [SilverlightFaultBehavior] [AspNetCompatibilityRequirements(RequirementsMode...

How To Reference a Com Object in a WCF Service

wcf,silverlight,com
I need to reference a Com DLL from within a Silverlight program. Since this is not allowed, I created a wcf service and put my reference to the Com in it. This idea seems to work fine when I ran my wcf service from my local machine but when I...

Getting Full Exception Trace for Silverlight 5 WCF Service

c#,.net,wcf,silverlight
I've got a Silverlight 5 RIA with some WCF services built-in as part of the solution. During the application run time, I get the following (rather generic) fault: at NetVisSolution.AFDiscoveryService.AFDiscoveryServiceClient.OnGetChildrenElementsFromParentCompleted(Object state) Caused by: The remote server returned an error: NotFound. I wish to get some more detailed exception code. The...

File access with C++ on WindowsPhone 8.1 Silverlight

file,silverlight,dll,windows-phone-8.1
My project use to be a WP8.1 WRT project -> C++ + Xmal, Now I convert it into a WP8.1 Silverlight project - C# + Xmal + C++DLL. Because I must use Silverlight and C++(openssl) at the same time. This is how I access the file in the WP8.1 WRT...

asynchronous UI update from ViewModel in WPF

wpf,silverlight,sharepoint,mvvm,telerik-grid
I saw an original question here. asynchronous UI update from ViewModel in WPF Although there was an accepted answer, the original author was asking a question I'm stumped on. This all boils down to the proper way to incorporate the Dispatcher object in a bound View model. So...I have a...

Silverlight: Get first TextBox in DataTemplate

vb.net,silverlight,datatemplate,children
So far I have looked at several questions and answers for how to get a TextBox within a DataTemplate, but none of it is working for me. I have xaml like so (minimal example). The data template is in my section for static resources, and the ItemsControl is in the...

Could not load type 'Telerik.Windows.Documents.Packaging.DeflaterOutputStream'

c#,wcf,silverlight,telerik
I've to export some report into pdf. I'm using telerki library PdfFormatProvider. PdfFormatProvider p = new PdfFormatProvider(); p.Export(document, stream); But I'm getting exception on p.Export. Any kind of help will be appreciated. ...

Sketch Filter - windows phone 8.1 silverlight using C#

c#,xaml,silverlight,windows-phone-8.1
I have an image in WriteableBitmap format now I want to apply a sketch filter on it and show it in an image control without saving. how can I achieve this ?

Silverlight Nested Custom Controls results in StackOverflowException

c#,xaml,silverlight,controls,stack-overflow
iam writing a reusable Controllibrary for my Silverlight Projects. At the moment i get an StackOverflowException each Time i startup my test Application wich is using the Controllibrary. I was able to reproduce the Exception in a small sample Projekt. I have two simple Custom Controls: //Control1.cs public class Control1:Control...

How to create custom controls using generic.xaml in Silverlight 5 without using WPF?

silverlight
I want to create a custom controls datagrid using the generic.xaml.I have created the custom controls using the User control template in Silverlight 5. I am not using WPF. How is it possible to create using generic.xaml?

Windows Phone 8.1 Silverlight Unique device Id

c#,silverlight,windows-phone-8.1
I would like to know if there is a way to find unique device ID for Windows phone 8.1 Silverlight applications. I tried to use Windows.Phone.System.Analytics.HostInformation.PublisherHostId that I found on one of simillar questions for this topic, but I got this error: http://pokit.org/get/?a9872a6ecf1714d138a71d835ccb8e27.jpg I went to Package.appxmanifest file and I...

Receive WNS push notfication on Windows phone silverlight 8.1

c#,silverlight,azure,windows-phone-8.1,azure-mobile-services
I have windows phone 8.1 silverlight application where I want to receive Notfications using the new framework, WNS. I have in the package.appxmanifest: <identity name="4657xxxxxxx" publisher="CN=xxxxx" version="1.0.0.0"/> and added it to the Mobile Service Hub. For this I have removed old references to MPNS usings, and added the following for...

Silverlight onLoad event doesn't fire in Firefox or Safari

javascript,silverlight,firefox,safari
I'm struggling with the Silverlight onLoad event in Firefox/Safari. In IE they fire as they should but in FF/Safari they don't. I create the Silverlight object from JavaScript supplying the necessary params incl the onError and onLoad events. I've omitted some parts of the code below for readability. Am I...

scroll able Checkboxes in windows 8 silver light Phone app

c#,xaml,silverlight,windows-phone-8
I am creating a simple app with multiple checkboxes (say 55) on a single page where user gets to scroll down to tick whatever are his preferences. How do i implement it using XAML? Longlistselector? Multiselectitem? Virtualizing stack panel? or how? This is a windows 8.0 phone app (silverlight).

How to generate OData v4 Client for Silverlight 5?

silverlight,asp.net-web-api,odata,generator,odata-v4
We're trying to get set up with Web API 2.2 and OData v4 for ASP.NET + Silverlight 5. Initiall POC had a Unit Test project connecting using Simple.OData. This worked great. But we've been unable to set up an OData Client on Silverlight 5. Using Client Code Generator v4 and...

What is an Acceptable Data Size to be Transfered using a Hidden Field

c#,asp.net,xml,wcf,silverlight
I have an ASP.NET web-forms application which is integrated with a Silverlight component. The communication between the two is done using WCF services. I want to transfer data (string) from the server to Silverlight. The size of the data is guaranteed to be less than 160 KB. I have two...

Getting content of checkboxes in xaml.cs in Silverlight

xaml,silverlight
I am new to silverlight. I am trying to generate a list of checkboxes(with content). The idea is that the user will select some of these checkboxes and will press a button. Then we try to read the content of selected checkboxes for further processing. I don't know how many...

StoreTest Kit Windows Phone 8.1

silverlight,visual-studio-2013,windows-phone-8.1,beta-testing
I'm following a tutorial regardning submitting your Windows Phone app for beta test. In the tutorial I'm propmt to use the "Store test kit" from the "Projects" menu in Visual Studio. I'm using Visual Studio Express 2013 and the option for "Store Test Kit" isn't there. Has it been replaced?...

Why is SetTarget a static method of Storyboard

c#,.net,silverlight
I wonder about one of details in MS class (Storyboard) and related class - Timeline. Here are docs for those classes: https://msdn.microsoft.com/en-us/library/System.Windows.Media.Animation.Storyboard(v=vs.110).aspx https://msdn.microsoft.com/en-us/library/system.windows.media.animation.timeline(v=vs.110).aspx According to MS documentation to set a Target on Timeline, we need to use Storyboard static method. Why is that so? Does anyone know the background of...

How to connect to CRM 2015 on-premise from a Siverlight App without depending on the Context?

c#,silverlight,dynamics-crm-2015
I'm creating a Silverlight application that should retrieve data from the CRM. I tried the tutorial here but I failed to debug my application in Visual Studio due to the invalidity of the Context when GetServerBaseUrl is called Uri serviceUrl = CombineUrl(GetServerBaseUrl(), "/XRMServices/2011/Organization.svc/web"); I understand that I can connect to...

How to set CheckBox margin dynamically in Silverlight

c#,silverlight,margin
I am creating CheckBoxes dynamically on my grid. Now I also want to set the margin(respected to the CheckBox) dynamically but not sure what would be the best way. For example, If there is only one CheckBox then the margin should be {5,0,0,0} If there are two CheckBoxes then the...

Checkbox auto uncheck

silverlight,checkbox,datagrid,radio-button
I've a data-grid with three radio button columns and one check-box column. <dataGrid:DataGridTemplateColumn Header="Local" Width="100"> <dataGrid:DataGridTemplateColumn.CellTemplate> <DataTemplate> <telerik:RadRadioButton Name="rdbtnLocal" GroupName="{Binding ToServiceAreaId}" IsChecked="{Binding Path=IsLocal, Mode=TwoWay}" Width="15" Height="15"/> </DataTemplate> </dataGrid:DataGridTemplateColumn.CellTemplate> </dataGrid:DataGridTemplateColumn> <dataGrid:DataGridTemplateColumn...

WrapPanel grabs focus from its children

c#,xaml,silverlight
I have some (homemade) controls in a wrappanel in a scrollviewer and I want my controls to get focus when I click on them or Tab through them. But the wrappanel grabs the focus and hands it to Children[0]. <ScrollViewer IsTabStop="False" > <toolkit:WrapPanel> <!-- children, filled in from code. IsTabStop="True"...

How to properly deal with Silverlight deprecation?

javascript,google-chrome,silverlight,cross-browser,npapi
Recently, Chrome deprecated NPAPI support, so that means no Silverlight. Now, I've learned to be a good web developer and prefer feature detection over browser detection to deliver a good user experience. Unfortunately, it seems impossible to do NPAPI support feature detection properly. I've built a JavaScript replacement for our...

Silverlight 5 fails the first time to consume a Web API 2 [clientaccesspolicy.xml]

c#,silverlight,asp.net-web-api,httpclient,webclient
Kindest regards, gentlemen and ladies. Bit or no information with regard to network my problem. I try to consume a Web API hosted on different server (localhost:/9000) by libraries: HttpClient in Silverlight 5 project (localhost:/8080). The detail is that with WebClient works perfectly, because before you get the "clientaccesspolicy.xml" file,...

Evaluate Binding Path Dynamically in Silverlight in XAML

silverlight,data-binding,silverlight-5.0
How can I evaluate a binding path dynamically, that is, the actual path comes from a property? For example, suppose I have a property of DisplayMemberPath, and I wanted to have something like: Content="{Binding Path=(DisplayMemberPath)}" I know that this doesn't work, it's just to explain what I wanted. I know...

Read a JSON File using silverlight

silverlight
I need to read a JSON file from my local folder. Is it possible using WebClient? Here's the code I currently have: WebClient client = new WebClient(); client.Headers["Content-Type"] = "application/json"; client.OpenReadCompleted += new OpenReadCompletedEventHandler(client_OpenReadCompleted); string url = "file - Copy.json"; client.OpenReadAsync(new Uri(url, UriKind.Relative)); } private void client_OpenReadCompleted(object sender, OpenReadCompletedEventArgs e)...

Silverlight - XamlParseException The type 'Type' was not found

xaml,silverlight,xamlreader
The type 'Type' was not found. [Line: 7 Position: 21] I'm trying to dynamically generate a datatemplate. it works fine, but if I include this attribute, I get the above exception. Width="{Binding Path=ActualWidth,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type telerik:GridViewCell}}}" And the complete method: public DataTemplate GetTextColumnTemplate(int index) { string templateValue = @"...

Can't submit XAP file in Windows Phone Store

c#,silverlight,windows-phone-8,submission,windows-phone-store
I am trying to submit a new application in the Windows Phone Store. We decided to develop a Windows Phone 8 Silverlight application to support both WP 8.0 and WP 8.1. When I upload the XAP file, I get the error that only .appx files can be uploaded. What does...

Send the user to my other apps, Windows Phone button

c#,silverlight,windows-phone-7,windows-phone,windows-phone-store
How can I give a code to the button "See my other apps on the Store" for my application? I used: private void buttonMyOtherApps_Click(object sender, RoutedEventArgs e) { MarketplaceDetailTask marketPlaceDetailTask = new MarketplaceDetailTask(); marketPlaceDetailTask.Show(); } But this opens the current app in the store, not the list of my apps......

Silverlight: Web does not exist in namespace

c#,asp.net,xaml,http,silverlight
I am a beginner in Silverlight and I am trying to create a web application that can connect to a database using their APIs. However, the connection to their API requires a reference to System.Web in my viewmodel class. How can I add this reference to my Silverlight application? When...

Simple WCF service not getting called after deploying on different machine, however works fine on my local system

wcf,silverlight
I just tried to create a very simple wcf application. That is on a click of button i am trying to print "Hello World" on the page. I published the service and as again it works fine on my local system, but same when i try to deploy on server...

How to know active control within XAML designer?

xaml,silverlight,design-time
How to know, during design-time, which control is active / focused by the user in a custom items control, so as to show the rendering for that selected item? I'm after functionality similar to TabControl: The difference in my control is that it displays a very simple, sequential workflow, and...

Draw line with high StrokeThickness in silverlight

c#,xaml,silverlight,line,stroke
I have an application where you can draw on a Canvas (like Paint). The C# code looks basically like this: private void startDrawing(object sender, System.Windows.Input.MouseButtonEventArgs e) { _drawingStart = e.GetPosition((UIElement)sender); _isDrawing = true; } private void stopDrawing(object sender, System.Windows.Input.MouseButtonEventArgs e) { _isDrawing = false; } private void doDrawing(object sender, System.Windows.Input.MouseEventArgs...

Insert a blank row into a Datagrid with dynamic columns

c#,silverlight,datagrid
I create the columns of my Silverlight DataGrid dynamically in the code behind using a List as follows: private void BuildQuotationDGColumns(List<ProductCategory> ProdCatList) { // add a template column with drop down list of products DataGridTemplateColumn ProductColumn = new DataGridTemplateColumn(); ProductColumn.Header="Choose Product"; ProductColumn.CellTemplate=(DataTemplate) Resources["ProductDDLTemplate"]; QuotationDG.Columns.Add(ProductColumn); // for each entity in ProdCatList...

Updating a property inside a LINQ clause breaks databinding to UI

c#,linq,xaml,silverlight,data-binding
I have a problem where a Silverlight UI datagrid is not updating, when the underlying data property changes. I can make it work if I introduce a temp variable and update the data in one chunk, but do not understand why the original code does not work. This is the...

Hide tooltip for all page controls Silverlight

c#,xaml,silverlight
Recently, I started to work with Silverlight 5. I need to implement the possibility to optionaly hide tooltips for all controls which present on page. For example, a page contains a group of buttons: <Button Command="{Binding Path=VerifyDocCommand}" ToolTipService.ToolTip="{Binding Source={StaticResource Trans}, Path=ToolTipSaveButton}" CommandParameter="{Binding Path=Documents.CurrentItem, FallbackValue=null}" Style="{StaticResource VerifyButton}"/> ... I create the...

Best practice for setting boolean flags

c#,asp.net,wcf,silverlight,ria
I'm looking for best practices in regards to having a class which has a flag which decides whether an operation can be performed on that class or not. This entire class will be returned in WCF REST services as well used in a Silverlight GUI via RIA Services in order...

How Does the Silverlight Client Talk to the Server in a 3 Tier Lightswitch Application?

c#,silverlight,visual-studio-lightswitch,3-tier,lightswitch-2012
I've picked up a legacy 3 tier Lightswitch application, and need to deploy it to a new server in my work. The client is a Silverlight application deployed to a file server where my clients can access it, and the Server is hosted on an IIS server. I've managed to...

Windows phone store update app package on same app version?

c#,silverlight,windows-phone-7,windows-phone-8
I have uploaded an app with version 1.0.0.1. Now I want to just update the package of this submission and not version in Windows Phone store can i do that?

How do I access MainPage class non-static members from the App class?

c#,wpf,xaml,silverlight,windows-phone-8.1
I have added an application bar to my blank Windows Phone 8.1 Silverlight app as per MSDN documentation https://msdn.microsoft.com/en-us/library/windows/apps/hh394038(v=vs.105).aspx. I have added event handlers encapsulated within the App class to each of the buttons in the application bar. I need a way of accessing the current instance of MainPage class...

How to add access-control-allow-methods to method in C# POST

c#,silverlight,post,windows-phone-8.1
I am trying to sending a POST to a java web-service with my windows phone app using this c# code: using (var client = new HttpClient()) { client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json")); var requestContent = new StringContent(json); requestContent.Headers.ContentType = new MediaTypeWithQualityHeaderValue("application/json"); var response = await client.PostAsync(requestUri, requestContent); //... } but I am getting...