Borderless Window with an option to resize but should not use windowchrome property in wpf

Hi,
I want a complete border less window with an option to resize from all sides of window in xaml but it should not use window chrome property. Can we able to achieve this with out using window chrome property? I also used allow transparency property but it 
is not working to my requirement. Help me on this
Karthik

Hi,
I hope you are using "AllowTransparency" along with "ResizeMode"
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Width="300" Height="300"
WindowStyle="None"
AllowsTransparency="True"
ResizeMode="CanResizeWithGrip">
</Window>
Now "AllowTransparency" can lead to Memory leak so you may refer to below style property
<Style TargetType="Window" x:Key="DialogWindow">
<Setter Property="AllowsTransparency" Value="True"/>
<Setter Property="WindowStyle" Value="None"/>
<Setter Property="ResizeMode" Value="CanResizeWithGrip"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Window}">
<Border BorderBrush="Black" BorderThickness="3" CornerRadius="10" Height="{TemplateBinding Height}"
Width="{TemplateBinding Width}" Background="Gray">
<DockPanel>
<Grid DockPanel.Dock="Top">
<Grid.ColumnDefinitions>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition Width="50"/>
</Grid.ColumnDefinitions>
<Label Height="35" Grid.ColumnSpan="2"
x:Name="PART_WindowHeader"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"/>
<Button Width="15" Height="15" Content="x" Grid.Column="1" x:Name="PART_CloseButton"/>
</Grid>
<Border HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
Background="LightBlue" CornerRadius="0,0,10,10"
Grid.ColumnSpan="2"
Grid.RowSpan="2">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition Width="20"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="20"></RowDefinition>
</Grid.RowDefinitions>
<ResizeGrip Width="10" Height="10" Grid.Column="1" VerticalAlignment="Bottom" Grid.Row="1"/>
</Grid>
</Border>
</DockPanel>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
The above code reference is from this
link.
I hope this helps to resolve your issue.
Thanks & Regards,
Anubhav Bajpai

Similar Messages

  • Downloaded Acrobat Assistant but the window with language option does not appear and Acrobat Pro II free trial does not download. Why?

    Downloaded Acrobat Assistant but the window with language option does not appear and Acrobat Pro II free trial does not download. I have signed in successfully. Why?

    Hi irenedix,
    After Adobe Download Assistant is installed, you can start it at any time and select a product to download at the bottom of the window. The list updates as new products become available to download with the Adobe Download Assistant.
    Please refer : http://helpx.adobe.com/x-productkb/policy-pricing/download-assistant-faq.html#main_How_do_ I_download_a_trial_version_of_Creative_Suite_or_Elements_software_
    Alternatively you can try downloading it from the direct download links available at: http://helpx.adobe.com/acrobat/kb/acrobat-downloads.html
    Regards,
    Rave

  • I would like to ONLY buy Lightroom, but it seems like there is some problems with this option. Or is it not an option anymore? (I already have photoshop installed)

    I would like to ONLY buy Lightroom, but it seems like there is some problems with this option. Or is it not an option anymore? (I already have photoshop installed)

    Photo editor app | Download free Adobe Photoshop Lightroom 5 trial
    At the above link go down to the bottom of the page right hand side. There is a button to purchase the Lightroom Perpetual License.

  • If i download windows with bootcamp does that mean i can still use Macintosh and if so how

    if i download windows with bootcamp does that mean i can still use Macintosh and if so how

    Welcome to Apple Support Communities
    If you installed Windows properly, you can still start in OS X and use it whenever you want. However, Boot Camp changes the startup partition to Windows, so you may note that you can't use Mac OS X.
    There are two ways of starting in OS X:
    1. Hold the Option (Alt) key while your computer is starting until you see all the bootable partitions in the screen, and choose your OS X partition.
    2. Hold the X key while your computer is starting.
    If you have a iMac or a Bluetooth keyboard, make sure you hold the key after hearing the startup chime.
    If you want to start in OS X by default, after starting in OS X, open System Preferences > Startup Disk, and choose the OS X partition

  • Resetting Airport Extreme disabled my home network. Now when i attempt to get to internet with iPad, or iPhone, I see an Earthlink (ISP) window with message: The internet connection is currently in use by another computer (nun.nn.n.nn)

    Resetting Airport Extreme disabled my home network. Now when i attempt to get to internet with iPad, or iPhone, I see an Earthlink (ISP) window with message: The internet connection is currently in use by another computer (nun.nn.n.nn) Enter your DSL Account logon psassword to switch the internet connection to this computer. If I do that, other messages follow. I am usually able to switch connection, but can have only one device on internet at a time. Tried to correct problem using Airport Utility, but failed.

    Unfortunately, there is mass confusion about whether a device might be a modem or a modem/router since the terms are mixed up all the time. Even though a device might have only one Ethernet port, it can still be a router.
    If this is your "modem".......
    http://reviews.cnet.com/routers/netopia-cayman-3341-router/4507-3319_7-30484785. html
    It is not a modem.....it is a modem/router. If that is the case, then the AirPort Extreme is not the only router on your network....it is one of two routers, and it should be configured to operate in Bridge Mode.
    Does this device appear to be your "modem"?

  • Firefox 5 updated - now it does not function - just a blank window. Pull down menus appear but do not function. Am I missing an obvious point to allow this browser to function?

    I do not understand how to correct this malfunction.
    Operating on MacBook Pro using Mac OSX 10.6.8. Firefox 5 updated - now it does not function - just a blank window. Pull down menus appear but do not function. Am I missing an obvious point to allow this browser to function?

    I suspect it has something to do with the java but not sure
    Just so you'll know, there is no Java on that page.  There is, however JavaScript.  You should know that those two things are different as night and day.
    To fix your problem, change this -
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
      </script>
    </head>
    to this -
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    -->
      </script>
    </head>

  • I have a USB cable for my iPod touch 4th gen. I have tried almost everything to make my windows computer find my iPod touch but its not finding it. Any help on this issue?

    I have a USB cable for my iPod touch 4th gen. I have tried almost everything to make my windows computer find my iPod touch but its not finding it. Any help on this issue?

    If not successful:
    Try DFU mode and then restore
      How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    Try another USB port and cable
    Try another computer to help determine if you have an iPod or computer problem

  • I am using iPhoto '09 Version 8.1.2 but can not use iCloud with it. I've looked for updates in iPhoto and iLife'11 but no luck. Suggestions very welcome.

    I am using iPhoto '09 Version 8.1.2 but can not use iCloud with it. I've looked for updates in iPhoto and iLife'11 but no luck. Suggestions very welcome.

    No you won't necessarily lose your photos when upgrading but it's very very unwise not to back up first. Backing up is like using a seat belt in a car. You can drive without one for years and have no issues, but if you do have a problem the outcome will be a lot worse. So, too, with back ups. And upgrading is one of those times when the risks of a problem are higher.
    Most Simple Back Up:
    Drag the iPhoto Library from your Pictures Folder to another Disk. This will make a copy on that disk.
    Slightly more complex: Use an app that will do incremental back ups. This is a very good way to work. The first time you run the back up the app will make a complete copy of the Library. Thereafter it will update the back up with the changes you have made. That makes subsequent back ups much faster. Many of these apps also have scheduling capabilities: So set it up and it will do the back up automatically.
    Example of such apps: Chronosync - but there are many others. Search on MacUpdate or the App Store

  • I have an ipod 3g with version 4.2.1 but will not let me update that

    I have an ipod 3g with version 4.2.1 but will not let me update that, I get a sign with the legend "This version of the iPod software (4.2.1) is the current version."
    but when I want to download apps actualize asks me to ios 5

    I suspect you have a 2G iPod. Those can only go to iOS 4.2.1.
    Identifying iPod models
    iPod touch (3rd generation)
    iPod touch (3rd generation) features a 3.5-inch (diagonal) widescreen multi-touch display and 32 GB or 64 GB flash drive. You can browse the web with Safari and watch YouTube videos with Wi-Fi. You can also search, preview, and buy songs from the iTunes Wi-Fi Music Store on iPod touch.
    The iPod touch (3rd generation) can be distinguished from iPod touch (2nd generation) by looking at the back of the device. In the text below the engraving, look for the model number. iPod touch (2nd generation) is model A1288, and iPod touch (3rd generation) is model A1318.

  • I can't run activity monitor application. It just processes with the multicolored disc spinning, but does not open.

    I can't run activity monitor application. It just processes with the multicolored disc spinning, but does not open.  It also won't close without using "Force Quit." When I access it in Force Quit it's listed as not responding. I am getting the messase that my start-up disc is full, but I can't assess the status without using the activity monitor app. Thanks for any assistance you can give. -F.J.

    Welcome to Apple Support Communities
    If your hard drive is full, you have to delete files. Open Finder, search in all your user's folders and delete files that you don't need, or move them to an external drive.
    When the hard drive is full, OS X works slow and applications may freeze, so I wouldn't be surprised if this is the reason why Activity Monitor isn't working

  • How come when i sync my iphone5 to laptop window 7 it will shut down , but when m using ipad it will not shut down

    how come when i sync my iphone5 to laptop window 7 it will shut down , but when m using ipad it will not shut down, so it means th problem is my iphone5

    Hello vina8sy,
    After reviewing your post, it sounds like the iPhone will turn off after a sync but the iPad will not. I would recommend that you read this article, it may be able to help the issue.
    If your iOS device restarts, displays the Apple logo, or powers off while you're using it - Apple Support
    Thanks for using Apple Support Communities.
    Have a nice day,
    Mario

  • HT1338 I am trying to use FaceTime with my partner in Mexico but is not connecting. We do get the call, but it just does not connect. What should I do?

    I am trying to use FaceTime with my partner in Mexico but is not connecting. We do get the call, but it just does not connect. What should I do?

    Try turning off the Firewall in System Preferences > Security & Privacy
    Apple - Support - FaceTime

  • I do not have an apple computer,  I have had Itunes  Previously but had not used it for some time.  when I try to use it now the following message keeps coming up no matter how many times  install Itunes.  "The Itunes library is locked on a locked disc ?

    I do not have an Apple computer,  I have had Itunes previously but had not used it for some time,  I have Itunes gift cards but can not get ,on to use them.  I have tried to download Itunes again but the following keeps poping up, "The Itunes library is locked on a locked disc, oryou do not have write permission for this file."  How can I overcome this?

    To solve this issue all I did was check to ensure that the file permissions were set as described by the earlier posts, followed by simply deleting the iTunes Library Genius.itdb file.  Once the file was deleted I was able to open iTunes without difficulty.  Note that I am running Windows 8.  Hope this helps!

  • Trying to upgrade from snow leopard to lion. Father already purchased Lion online a few months ago but did not use upgrade (did not know cmp was already running on lion). How can I use his upgrade on my computer without having to buy another Lion upgrade?

    Hi,
    Basically my computer is running on Snow Leopard. My father bought the Lion upgrade to install on his computer, however, it ended up being that his newly purchased lap top already came running with Lion -- thus, he never ended up using the Lion upgrade he purchased. Now, I would like to use the Lion upgrade he purchased but did not use to upgrade my computer to Snow Leopard. The information he gave me for this was the Web Order Number, Part Number, and Content Code for the Lion upgrade. How do I redeem/use his upgrade to update my computer to Lion without having to purchase another copy of the Lion software from the App store? Is that possible?
    Thank you so much!!!

    Unless he controls your machine (same household), you can't. At $30 USD, pop for your own copy.

  • I have an apple id but ı can not use it for sign in to itunes connect account while publishing my ibook document. Why ı can not login? What can ı do to figure out this problem?

    I have an apple id but ı can not use it for sign in to itunes connect account while publishing my ibook document. Why ı can not login? What can ı do to figure out this problem?

    As note already on the iBA forum [ AppleID for ibooks publishing ], you need two IDs. You can't use your developer ID.
    If you already signed up for books with that ID, you need to talk to Apple to straighten things out.

Maybe you are looking for