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
S

salon

@salon
About
Posts
175
Topics
72
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • how to set relative image path of image source from style
    S salon

    Hi All, I have one image control, Currently I am setting the image path as absolute. Since the image is at the server side where the Silverlight application is hosted.The source set as follows: <Image x:Name="imgMyImage" Source="http://localhost/MyImage.JPG" > I want to set the relative source from the server in the style. I followed following link and I succeed giving the relative path from the Image tag itself. http://wildermuth.com/2008/03/31/Silverlight_2_Bugs_and_Issues.aspx

    <Style x:Key="MyImageSetter" TargetType="Image">

    <Setter Property="Source" Value="MyImage.JPG"></Setter>

    </Style>

    But how can I do this with style? Something like this: When I set with this way it gives me image error

    WPF question com sysadmin help tutorial

  • Catastrophic failure while running thread with BackgroundWorker
    S salon

    I got a link http://msdn.microsoft.com/en-us/library/system.componentmodel.backgroundworker.cancellationpending%28VS.95%29.aspx[^] I have written

    if ((worker.CancellationPending == true))
    {
    e.Cancel = true;

        }
    

    in bw_DoWork(object sender, DoWorkEventArgs e) but still getting the same exception. I think this is because bw_DoWork not getting that the browser is getting closed. How can I tell it that? Do I have some flag so that it is conveyed to this event that browser is getting closed?

    WPF help question workspace

  • Catastrophic failure while running thread with BackgroundWorker
    S salon

    How can i close all the threads before closing the window?

    WPF help question workspace

  • Catastrophic failure while running thread with BackgroundWorker
    S salon

    I have one button added each time when the thread gets completed for each time. It means if it brings one chunk of data in one thread then one button added, then it brings another chunk then another button added, brings third chunk third button added, brings fourth chunk fourth button added and so on..... But in between if we close the browser then exception occurs at the constructor of button control

    WPF help question workspace

  • Catastrophic failure while running thread with BackgroundWorker
    S salon

    I am running some threads so that data initially gets loaded partially and then with the threads, the should get loaded at runtime. But if I close the browser and the thread is not get completed at a certain point then it throws following error: System.Exception was unhandled by user code Message="Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))" StackTrace: at MS.Internal.XcpImports.CheckHResult(UInt32 hr) at MS.Internal.XcpImports.CreateObjectByTypeIndex(UInt32 typeIndex) at System.Windows.DependencyObject..ctor(UInt32 nativeTypeIndex, IntPtr constructDO) at System.Windows.DependencyObject..ctor(UInt32 nativeTypeIndex) at System.Windows.UIElement..ctor(UInt32 nKnownTypeIndex) at System.Windows.FrameworkElement..ctor(UInt32 nKnownTypeIndex) at System.Windows.Controls.Control..ctor(UInt32 nKnownTypeIndex) at System.Windows.Controls.UserControl..ctor() at ReeleezeeFormsEngine.Silverlight.CommonControls.Pager..ctor(String sectionCount) at ReeleezeeFormsEngine.Silverlight.FormsRenderer.AutoLayoutGridManager..ctor(AutoLayoutGridManagerConfiguration configuration, String sectionCount) at ReeleezeeFormsEngine.Silverlight.FormsRenderer.SequentialRenderer.backgroundWorkerForSection_RunWorkerCompleted(Object sender, RunWorkerCompletedEventArgs e) at System.ComponentModel.BackgroundWorker.OnRunWorkerCompleted(RunWorkerCompletedEventArgs e) at System.ComponentModel.BackgroundWorker.<OnRun>b__1(Object state) InnerException: I am using BackgroundWorker for threading?

    WPF help question workspace

  • Yes/No Dialog Box for saving data in Silverlight...Urgent!!!
    S salon

    Got the solution from http://bdotnet.in/forums/p/1089/2271.aspx[^]

    WPF question

  • Yes/No Dialog Box for saving data in Silverlight...Urgent!!!
    S salon

    Hi All, I want to show one dialog box when user closes the browser. I have added the code in Application_Exit :

    HtmlPage.Window.Confirm("Do u want to save your data?");

    So that It shows me the OK/Cancel box, which is fine for me. But I want the event for YES so that if user says YES then I could save the data and if he says NO then I do not save the data. Can anybody have any idea????

    WPF question

  • Getting null event in delegate
    S salon

    Getting 'System.StackOverflowException' at line

    void OnButtonClicked()

    {}

    when I do

    ButtonClicked += OnButtonClicked;

    ...

    void OnButtonClicked(...) {
    ...
    }

    C# question

  • Getting null event in delegate
    S salon

    Hi all, I want to raise an event with delegates my code is like this: delcaration:

    public delegate void ButtonClickedDelegate(string path);
    public event ButtonClickedDelegate ButtonClicked;

    call:

    GetData(path);

    raise:

    private void GetData(string path)
    {
    try
    {
    if (ButtonClicked!= null)
    ButtonClicked(path);
    }
    catch
    {
    }
    }

    But I am getting ButtonClicked = null at the line

    if (ButtonClicked!= null)

    so that

    ButtonClicked(path);

    is not getting executed.... Do anybody have idea what is the wrong with the code?

    C# question

  • Not able to set the default style for the controls with generic.xaml
    S salon

    Hi Derek, I have solved this problem with the above code given by Mark...

    WPF wpf com tutorial question

  • How to create a tool to generate xslt to transform one xml to another?
    S salon

    I want to create one tool which will genereate the xslt... The input will be an xml file and xslt will be generated to transofrm that xml to another.... Do anybody have any idea/code snippet/link to share? Any help will be appreciated...

    XML / XSL xml help tutorial question

  • Can I put Polygon inside Button Template Dynamically?
    S salon

    Do u have any code snippet/link to just give me some idea and make things clear? Also one thing to note that this polygon should be inside buttton template so that I can give the animation?

    WPF question

  • Can I put Polygon inside Button Template Dynamically?
    S salon

    I have a togglebutton template which have vsm to do something on checked, pressed etc. I want to add Polygon inside that template and add storyboard to it.... I want to add it from .cs file...so that I can change the coordinates of polygon dynamically as the size of the button content.... How can I do that?

    WPF question

  • How to get event of button inside stackpanel?very urgent....
    S salon

    Thanks for kind and quick reply.... Problem is solved :laugh:

    WPF question help tutorial

  • How to get event of button inside stackpanel?very urgent....
    S salon

    I have a stackpanel having one image and one stackpanel having button control..... I want to do the same thing on StackPanel click as the button click which is the child of that stackpanel How can I do that....? I have wrote something on MouseLeftButtonDown event of stackpanel but not able to get the button name and content... Anyhow i need the button name and content inside the stackpanel on MouseLeftButtonDown event of that stackpanel... Can i get that? Please help me, its very urgent....

    WPF question help tutorial

  • Create datetime, time and duration control?
    S salon

    I want to create datetime, time and duration control... I have created the datecontrol by using datepicker available in Silverlight.... Do we have any existing controls available in Silverlight 2.0 so that I can make datetime, time and duration controls...? Or have to extend some controls to get above controls? Can anybody have some code / hyperlinks from where I can get the idea?

    WPF question

  • How to get the control position to add another control below that?
    S salon

    I have a custom control which dynamically add texboxes...This control is inherited from StackPanel.... Now I have a collection of textboxes which will dynamically added to the StackPanel. I want to add a message control below each text box and manually hide and show that...which will have hanging kind of look... My question is that, how can I add the message control dynamically below each textbox control? I think I am trying to get the X, Y coordinates of the textbox on mousemove event and trying to place the message control but not able to get any result... Can anybody help me? Thanks in advance,

    WPF question help tutorial

  • How to get current project path from silverlight page?
    S salon

    Hi all, Thanks for ur kind and quick support.... My problem is solved....

    WPF wpf tutorial question

  • How to get current project path from silverlight page?
    S salon

    Thanks for Quick Reply, I want physical path ....like "C:/Documents/MyDocuments/" in a string variable i do not want localhost path.........

    WPF wpf tutorial question

  • How to get current project path from silverlight page?
    S salon

    Hi all, I have a silverlight project folder and need to refer an file inside a folder(named as "MyFolder") which is at the same level of the silverlight projec, but not inside the solution. I want to get the path for that folder so that I can access the contents of "MyFolder"? I have tried :

    string path = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);

    but its giving me "Access denied exception" I want to do it from xaml.cs file.... Can anybody know how to get the project path so that I can access the "MyFolder"? Thanks in advance,

    WPF wpf tutorial question
  • Login

  • Don't have an account? Register

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