Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
A

Abhishek Sur

@Abhishek Sur
About
Posts
2.0k
Topics
17
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Button sizes become small in a stackpanel
    A Abhishek Sur

    You mean UniformGrid right. Anyways, good to hear that. :)

    Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


    Visit My Website-->**www.abhisheksur.com Also read my book on all ongoing latest technology .NET 4.5 Expert Cookbook

    WPF csharp asp-net com data-structures

  • Button sizes become small in a stackpanel
    A Abhishek Sur

    Hi Viswa, Why do you need to use a StackPanel? Generally if you have a fixed layout panel, go with Grid. But anyways, I dont know exactly how KinectTileButton works, but if you specify same size for MaxWidth and MinWidth, or MaxHeight and MinHeight, everything will remain same irrespective of the container. Do let me know if you are looking for something else.

    Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


    Visit My Website-->**

    www.abhisheksur.com
    Also read my book on all ongoing latest technology
    .NET 4.5 Expert Cookbook

    WPF csharp asp-net com data-structures

  • how to create YES/NO buttons in a popup?
    A Abhishek Sur

    Are you looking for simple javascript popup ? You can try

    var r=confirm("Are you sure?");
    if (r==true)
    {
    x="You pressed OK!";
    }
    else
    {
    x="You pressed Cancel!";
    }

    But here you will see OK and cancel instead of yes/no. :)

    Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


    Visit My Website-->**

    www.abhisheksur.com
    Also read my book on all ongoing latest technology
    .NET 4.5 Expert Cookbook

    ASP.NET tutorial question

  • Technical Blog Post
    A Abhishek Sur

    Hi Guys, I see my blogs are not getting posted now for 1 week. I have a couple of blogs that are already feed using #codeproject tag in my blog, but its not getting posted here. http://www.abhisheksur.com/2011/04/closures-in-csharp.html[^] http://www.abhisheksur.com/2011/04/silverlight-5-beta-lets-deal-with-its.html[^] http://www.abhisheksur.com/2011/04/internals-of-linq.html[^] None of these 3 got posted here. Is there any reason for this ? :rose:

    Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


    Visit My Website-->**

    www.abhisheksur.com

    Site Bugs / Suggestions csharp html linq com beta-testing

  • Voting system isnt working
    A Abhishek Sur

    Thanks Chris. :thumbsup:

    Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


    Visit My Website-->**

    www.abhisheksur.com

    Site Bugs / Suggestions help com beta-testing code-review

  • Voting system isnt working
    A Abhishek Sur

    Just got a feedback from few people that they cannot vote my blog articles in CP. http://www.codeproject.com/Articles/146836/Internals-of-Extension-Methods.aspx[^] http://www.codeproject.com/Articles/148691/Internals-of-loops-While-For-and-ForEach.aspx[^] It is the same error as pointed out here.[^] I dont know if this problem is with all other articles specific to me or all. :((

    Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


    Visit My Website-->**

    www.abhisheksur.com

    Site Bugs / Suggestions help com beta-testing code-review

  • Windows Phone 7 Competition asks for Android
    A Abhishek Sur

    Yes Daniel... I saw it just and was about to write for it http://www.codeproject.com/script/Awards/Conditions.aspx?cid=447 You did it before me. :)

    Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


    Visit My Website-->**

    www.abhisheksur.com

    Site Bugs / Suggestions csharp android com business tools

  • Datagrid
    A Abhishek Sur

    For datagrid you can try WPF DataGrid Practical Examples[^] Well, the example is using toolkit, but you can easily adjust the code to use your own DataGrid, as the process remains same. You can also use Grid using ListView[^] to create grid using Listview in WPF if you wish.

    Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


    Visit My Website-->**

    www.abhisheksur.com

    WPF question csharp wpf database dotnet

  • RoutedCommands
    A Abhishek Sur

    Well, generally WPF code is made data driven. So from the Usercontrol use DataContext to pass a Dataobject on the User Control. Make the adjustment so that the user control loads something whenever the data object is modified. We use this by implementing the data class from INotifyPropertyChanged. INotifyPropertyChanged[^] Other than that you can also keep a property/dependency property to help load the object from outside.

    Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


    Visit My Website-->**

    www.abhisheksur.com

    WPF csharp wpf winforms help question

  • Animation of Expander expand / collapse programmatically
    A Abhishek Sur

    Why do you need to do this in codebehind? I dont think it is a good idea to do this in codebehind. Even though you can do that easily using StoryBoard classes.

    tronix01 wrote:

    would like to have a "global" animation ( for expand /collapse) for all expander controls inside the usercontrol.

    Use Style and define the style in App.Xaml. Refer to the style using {StaticResource key} I think you could better read about WPF resources from my articles : http://www.abhisheksur.com/2010/05/new-wpf-learning-series.html[^] I hope these would help you.:rose:

    Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


    Visit My Website-->**

    www.abhisheksur.com

    WPF question wpf com help

  • WPF custom control DepencyProperty
    A Abhishek Sur

    Yes you are in right path.

    Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


    Visit My Website-->**

    www.abhisheksur.com

    WPF question csharp wpf

  • Painting on transparent background multiple times
    A Abhishek Sur

    Just use the same panel and draw the content only on it.

    Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


    Visit My Website-->**

    www.abhisheksur.com

    C# graphics help tutorial question

  • ASP.NET mobile development
    A Abhishek Sur

    This might help : http://forums.asp.net/p/1557273/4069961.aspx[^] :rose:

    Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


    Visit My Website-->**

    www.abhisheksur.com

    ASP.NET csharp visual-studio asp-net help

  • WPF custom control DepencyProperty
    A Abhishek Sur

    Well my friend, why don't you use ItemsControl in this regard. You can go for ListBox.

    <ListBox ItemsSource="{Binding}" DataContext="{StaticResource MyItems}">
    <ListBox.ItemTemplate>
    <DataTemplate>
    <TextBlock Text="{Binding MyProperty}" />
    </DataTemplate>
    </ListBox.ItemTemplate>
    </ListBox>

    If you are using List of STRING you dont need to specify property name. Use Text="{Binding}" which will eventually call ToString for the string object and get the value of it.

    Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


    Visit My Website-->**

    www.abhisheksur.com

    WPF question csharp wpf

  • Changing CommandText changes Parameters
    A Abhishek Sur

    Parameters are build based on CommandText. So if you are going to change command text, you would need to change the parameters as well.

    Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


    Visit My Website-->**

    www.abhisheksur.com

    Database csharp visual-studio tutorial question

  • WPF custom control DepencyProperty
    A Abhishek Sur

    What is the problem with List ? AFAIK, You can create a DependencyProperty of any type. Just change the Type of List to List

    Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


    Visit My Website-->**

    www.abhisheksur.com

    WPF question csharp wpf

  • custom titlebar
    A Abhishek Sur

    I think this is not the place to ask about this question. Please put it in right section as there is nothing to deal with C# on this question. :thumbsdown:

    Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


    Visit My Website-->**

    www.abhisheksur.com

    C# question adobe

  • ASP.NET mobile development
    A Abhishek Sur

    I think this is what you require http://www.asp.net/mobile/[^] You will get everything for ASP.NET mobile development from the link. You can also check : http://msdn.microsoft.com/en-us/library/ms178619.aspx[^]:thumbsup:

    Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


    Visit My Website-->**

    www.abhisheksur.com

    ASP.NET csharp visual-studio asp-net help

  • How to bind a List to a ListBox in a UserControl
    A Abhishek Sur

    Hey David, Working with listbox is very easy. You put the object in Resource, say your class which has the ObservableCollection is in X.

    class X
    {
    public ObservableCollection { get;set;} ....
    }

    in XAML

    So here the property MyText will be displayed in the list of MyObject.

    You can also use ICollectionView to do this if you wish. Check my article on it :
    http://www.abhisheksur.com/2010/08/woring-with-icollectionviewsource-in.html[^]

    :rose:

    Abhishek Sur
    **Don't forget to click "Good Answer" if you like this Solution.


    Visit My Website-->**

    www.abhisheksur.com

    WPF csharp wpf question database visual-studio

  • need help to transfer from java-script to C#
    A Abhishek Sur

    See, Javascript is a client end language that runs in the browser, while C# is the code that runs in the server. Just put all the data you need in JSON format and send it using AJAX to a handler. You can also use hiddenfield or XML or by any means. Now from Server use the handler to parse JSON object and get the data. Read about AJAX and also start learning the basics of C#.

    Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


    Visit My Website-->**

    www.abhisheksur.com

    C# csharp java javascript html tools
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups